public class RestorePreviousVersionCommand extends BaseRepositoryCommand
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor and Description |
---|
RestorePreviousVersionCommand(VersionManager versionManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Context context)
This is the actual method to be overridden in descendant classes.
|
boolean |
isParentNodeTypeOnly() |
protected void |
restoreAllChildren(javax.jcr.Node node,
String parentNodeType)
Restores all descendants whose type is in the
mgnl: namespace (default behavior) or will only restore descendants of the same types of the parent. |
getJCRNode, getNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
clone, execute, isEnabled, setEnabled
@Inject public RestorePreviousVersionCommand(VersionManager versionManager)
public boolean execute(Context context) throws Exception
MgnlCommand
execute
in class MgnlCommand
Exception
protected void restoreAllChildren(javax.jcr.Node node, String parentNodeType) throws javax.jcr.RepositoryException
mgnl:
namespace (default behavior) or will only restore descendants of the same types of the parent.javax.jcr.RepositoryException
isParentNodeTypeOnly()
public boolean isParentNodeTypeOnly()
parentNodeTypeOnly
parameter whose value is true, false (default setting) otherwise.Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.