public class SetTree extends TransientOperation
statusSTATUS_PENDING, STATUS_PERSISTED, STATUS_UNDO| Modifier and Type | Method and Description |
|---|---|
void |
accept(OperationVisitor visitor)
Calls the appropriate
visit method on visitor
based on the type of this operation. |
Operation |
addChildNode(NodeState parentState,
Name nodeName,
Name nodeTypeName,
String uuid)
Add a child node operation to this
setTree instance. |
Operation |
addChildProperty(NodeState parentState,
Name propName,
int propertyType,
QValue[] values,
QPropertyDefinition definition)
Add a child property operation to this
setTree instance. |
static SetTree |
create(NodeState treeState) |
static SetTree |
create(UpdatableItemStateManager itemStateMgr,
NodeState parent,
Name nodeName,
Name nodeTypeName,
String uuid) |
NodeId |
getParentId() |
NodeState |
getParentState() |
NodeState |
getTreeState() |
void |
persisted()
Persisting a SetPolicy operation involves persisting each individual operation added
by this policy.
|
void |
undo()
Undoing a SetPolicy operation involves undoing all operations added by the SetPolicy.
|
getOptionsaddAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatuspublic void accept(OperationVisitor visitor) throws javax.jcr.ValueFormatException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.AccessDeniedException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
Operationvisit method on visitor
based on the type of this operation.visitor - javax.jcr.ValueFormatExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.version.VersionExceptionjavax.jcr.RepositoryExceptionpublic void persisted()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionOperation.persisted()public void undo()
throws javax.jcr.RepositoryException
undo in interface Operationundo in class AbstractOperationjavax.jcr.RepositoryExceptionOperation.undo()public NodeId getParentId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic NodeState getParentState() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic NodeState getTreeState() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic Operation addChildNode(NodeState parentState, Name nodeName, Name nodeTypeName, String uuid) throws javax.jcr.RepositoryException
setTree instance.parentState - nodeName - nodeTypeName - uuid - javax.jcr.RepositoryExceptionpublic Operation addChildProperty(NodeState parentState, Name propName, int propertyType, QValue[] values, QPropertyDefinition definition) throws javax.jcr.RepositoryException
setTree instance.parentState - propName - propertyType - values - definition - javax.jcr.RepositoryExceptionpublic static SetTree create(NodeState treeState) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.