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 ValueFormatException, LockException, ConstraintViolationException, AccessDeniedException, ItemExistsException, UnsupportedRepositoryOperationException, VersionException, RepositoryException
Operationvisit method on visitor
based on the type of this operation.public void persisted()
throws RepositoryException
RepositoryExceptionOperation.persisted()public void undo()
throws RepositoryException
undo in interface Operationundo in class AbstractOperationRepositoryExceptionOperation.undo()public NodeId getParentId() throws RepositoryException
RepositoryExceptionpublic NodeState getParentState() throws RepositoryException
RepositoryExceptionpublic NodeState getTreeState() throws RepositoryException
RepositoryExceptionpublic Operation addChildNode(NodeState parentState, Name nodeName, Name nodeTypeName, String uuid) throws RepositoryException
setTree instance.parentState - nodeName - nodeTypeName - uuid - RepositoryExceptionpublic Operation addChildProperty(NodeState parentState, Name propName, int propertyType, QValue[] values, QPropertyDefinition definition) throws RepositoryException
setTree instance.parentState - propName - propertyType - values - definition - RepositoryExceptionpublic static SetTree create(NodeState treeState) throws RepositoryException
RepositoryExceptionpublic static SetTree create(UpdatableItemStateManager itemStateMgr, NodeState parent, Name nodeName, Name nodeTypeName, String uuid) throws RepositoryException
RepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.