info.magnolia.module.admininterface.commands
Class VersionCommand
java.lang.Object
info.magnolia.commands.MgnlCommand
info.magnolia.module.admininterface.commands.BaseRepositoryCommand
info.magnolia.module.admininterface.commands.RuleBasedCommand
info.magnolia.module.admininterface.commands.VersionCommand
- All Implemented Interfaces:
- org.apache.commons.chain.Command
public class VersionCommand
- extends RuleBasedCommand
Creates a version for the passed path in the website repository.
- Version:
- $Id: VersionCommand.java 41137 2011-01-06 18:19:25Z gjoseph $
- Author:
- Philipp Bracher
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionCommand
public VersionCommand()
execute
public boolean execute(Context ctx)
- Specified by:
execute
in class MgnlCommand
- See Also:
MgnlCommand.execute(org.apache.commons.chain.Context)
addComment
protected void addComment(Content node)
throws AccessDeniedException,
javax.jcr.RepositoryException
- Throws:
AccessDeniedException
javax.jcr.RepositoryException
getFilter
protected Content.ContentFilter getFilter()
isRecursive
public boolean isRecursive()
- Returns:
- is recursive versioning
setRecursive
public void setRecursive(boolean recursive)
- Parameters:
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-2012 Magnolia International Ltd.. All Rights Reserved.