public class VersionCommand extends RuleBasedCommand
ATTRIBUTE_RULE
log
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor and Description |
---|
VersionCommand()
Deprecated.
since 5.4.4, use
VersionCommand(VersionManager) . |
VersionCommand(VersionManager versionManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
addComment(javax.jcr.Node node)
Deprecated.
since 5.5.9. Comment is set by
BaseVersionManager.addVersion(Node, info.magnolia.cms.util.Rule, String, String) instead. |
protected void |
cleanComment(javax.jcr.Node node)
Deprecated.
since 5.5.9. No need to call since
addComment(javax.jcr.Node) should not be called. |
boolean |
execute(Context ctx)
This is the actual method to be overridden in descendant classes.
|
String |
getComment() |
String |
getUserName() |
boolean |
isRecursive() |
void |
release()
If a clone is passivated we call this method.
|
void |
setComment(String comment) |
void |
setRecursive(boolean recursive) |
void |
setUserName(String userName) |
getDefaultRule, getItemTypes, getRule, setItemTypes, setRule
getJCRNode, getNode, getPath, getRepository, getUuid, setPath, setRepository, setUuid
clone, execute, isEnabled, setEnabled
@Inject public VersionCommand(VersionManager versionManager)
@Deprecated public VersionCommand()
VersionCommand(VersionManager)
.public boolean execute(Context ctx) throws Exception
MgnlCommand
execute
in class MgnlCommand
Exception
MgnlCommand.execute(info.magnolia.context.Context)
@Deprecated protected void addComment(javax.jcr.Node node) throws javax.jcr.RepositoryException
BaseVersionManager.addVersion(Node, info.magnolia.cms.util.Rule, String, String)
instead.javax.jcr.RepositoryException
@Deprecated protected void cleanComment(javax.jcr.Node node) throws javax.jcr.RepositoryException
addComment(javax.jcr.Node)
should not be called.javax.jcr.RepositoryException
public boolean isRecursive()
public void setRecursive(boolean recursive)
public String getComment()
public void setComment(String comment)
public void release()
MgnlCommand
release
in class RuleBasedCommand
public String getUserName()
public void setUserName(String userName)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.