info.magnolia.commands.impl
Class VersionCommand
java.lang.Object
info.magnolia.commands.MgnlCommand
info.magnolia.commands.impl.BaseRepositoryCommand
info.magnolia.commands.impl.RuleBasedCommand
info.magnolia.commands.impl.VersionCommand
- All Implemented Interfaces:
- Command, Cloneable
public class VersionCommand
- extends RuleBasedCommand
Creates a version for the passed path in the website repository.
VersionCommand
public VersionCommand()
execute
public boolean execute(Context ctx)
throws Exception
- Description copied from class:
MgnlCommand
- This is the actual method to be overridden in descendant classes.
- Specified by:
execute
in class MgnlCommand
- Throws:
Exception
- See Also:
MgnlCommand.execute(info.magnolia.context.Context)
addComment
protected void addComment(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
cleanComment
protected void cleanComment(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
isRecursive
public boolean isRecursive()
- Returns:
- is recursive versioning
setRecursive
public void setRecursive(boolean recursive)
getComment
public String getComment()
setComment
public void setComment(String comment)
release
public void release()
- Description copied from class:
MgnlCommand
- If a clone is passivated we call this method. Please clean up private
properties.
- Overrides:
release
in class RuleBasedCommand
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.