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