public class SetTree extends TransientOperation
status
STATUS_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.
|
getOptions
addAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatus
public 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
Operation
visit
method on visitor
based on the type of this operation.visitor
- 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
public void persisted() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Operation.persisted()
public void undo() throws javax.jcr.RepositoryException
undo
in interface Operation
undo
in class AbstractOperation
javax.jcr.RepositoryException
Operation.undo()
public NodeId getParentId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public NodeState getParentState() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public NodeState getTreeState() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Operation addChildNode(NodeState parentState, Name nodeName, Name nodeTypeName, String uuid) throws javax.jcr.RepositoryException
setTree
instance.parentState
- nodeName
- nodeTypeName
- uuid
- javax.jcr.RepositoryException
public 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.RepositoryException
public static SetTree create(NodeState treeState) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.