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.
|
protected void |
cleanComment(javax.jcr.Node node)
Deprecated.
|
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)
@MgnlDeprecated(since="5.6.2", description="Comment is set by info.magnolia.cms.core.version.BaseVersionManager.addVersion(javax.jcr.Node, info.magnolia.cms.util.Rule, java.lang.String, java.lang.String) instead.") @Deprecated protected void addComment(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@MgnlDeprecated(since="5.6.2", description="No need to call since #addComment should not be called.") @Deprecated protected void cleanComment(javax.jcr.Node node) throws javax.jcr.RepositoryException
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.