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
public class VersionCommand
- extends RuleBasedCommand
Creates a version for the passed path in the website repository.
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)
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
@Deprecated
protected void addComment(Content node)
throws AccessDeniedException,
javax.jcr.RepositoryException
- Deprecated. since 5.0 - use
addComment(Node)
instead
- Throws:
AccessDeniedException
javax.jcr.RepositoryException
addComment
protected void addComment(javax.jcr.Node node)
throws AccessDeniedException,
javax.jcr.RepositoryException
- Throws:
AccessDeniedException
javax.jcr.RepositoryException
cleanComment
@Deprecated
protected void cleanComment(Content node)
throws AccessDeniedException,
javax.jcr.RepositoryException
- Deprecated. since 5.0 - use
cleanComment(Node)
instead
- Throws:
AccessDeniedException
javax.jcr.RepositoryException
cleanComment
protected void cleanComment(javax.jcr.Node node)
throws AccessDeniedException,
javax.jcr.RepositoryException
- Throws:
AccessDeniedException
javax.jcr.RepositoryException
getFilter
@Deprecated
protected Content.ContentFilter getFilter()
- Deprecated. since 5.0 - use the
RuleBasedCommand.setRule(info.magnolia.cms.util.Rule)
to specify allowed
node types. Or override the method in your command, if you need more complicated behavior.
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-2013 Magnolia International Ltd.. All Rights Reserved.