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(org.apache.jackrabbit.spi.Path srcPath,
org.apache.jackrabbit.spi.Path destPath,
HierarchyManager hierMgr,
org.apache.jackrabbit.spi.commons.conversion.PathResolver resolver,
boolean sessionMove) |
org.apache.jackrabbit.spi.Name |
getDestinationName() |
org.apache.jackrabbit.spi.NodeId |
getDestinationParentId() |
NodeState |
getDestinationParentState() |
org.apache.jackrabbit.spi.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 org.apache.jackrabbit.spi.NodeId getSourceId()
public org.apache.jackrabbit.spi.NodeId getDestinationParentId()
public NodeState getSourceState()
public NodeState getSourceParentState()
public NodeState getDestinationParentState()
public org.apache.jackrabbit.spi.Name getDestinationName()
public static Operation create(org.apache.jackrabbit.spi.Path srcPath, org.apache.jackrabbit.spi.Path destPath, HierarchyManager hierMgr, org.apache.jackrabbit.spi.commons.conversion.PathResolver resolver, boolean sessionMove) throws ItemExistsException, NoSuchNodeTypeException, RepositoryException
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.