public class Move extends TransientOperation
Move...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. |
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.
|
getOptionsaddAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatuspublic void accept(OperationVisitor visitor) throws 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
Operationundo in interface Operationundo in class AbstractOperationRepositoryExceptionOperation.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.