public class Move extends TransientOperation
Move
...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. |
static Operation |
create(Path srcPath,
Path destPath,
HierarchyManager hierMgr,
PathResolver resolver,
boolean sessionMove) |
Name |
getDestinationName() |
NodeId |
getDestinationParentId() |
NodeState |
getDestinationParentState() |
NodeId |
getSourceId() |
NodeState |
getSourceParentState() |
NodeState |
getSourceState() |
void |
persisted()
Throws UnsupportedOperationException if this Move Operation is a transient
modification.
|
void |
undo()
Revert changes made by this operation.
|
getOptions
addAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatus
public void accept(OperationVisitor visitor) throws 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
Operation
undo
in interface Operation
undo
in class AbstractOperation
RepositoryException
Operation.undo()
public NodeId getSourceId()
public NodeId getDestinationParentId()
public NodeState getSourceState()
public NodeState getSourceParentState()
public NodeState getDestinationParentState()
public Name getDestinationName()
public static Operation create(Path srcPath, Path destPath, HierarchyManager hierMgr, PathResolver resolver, boolean sessionMove) throws ItemExistsException, NoSuchNodeTypeException, RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.