|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.jcr2spi.operation.AbstractOperation
org.apache.jackrabbit.jcr2spi.operation.Restore
public class Restore
Restore
...
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.jcr2spi.operation.AbstractOperation |
---|
status |
Fields inherited from interface org.apache.jackrabbit.jcr2spi.operation.Operation |
---|
STATUS_PENDING, STATUS_PERSISTED, STATUS_UNDO |
Method Summary | |
---|---|
void |
accept(OperationVisitor visitor)
Calls the appropriate visit method on visitor
based on the type of this operation. |
static Operation |
create(NodeState[] versionStates,
boolean removeExisting)
|
static Operation |
create(NodeState nodeState,
Path relQPath,
NodeState versionState,
boolean removeExisting)
|
NodeId |
getNodeId()
Returns id of state or the closest existing state of the restore target or null in case of a Workspace.restore(Version[], boolean) |
Path |
getRelativePath()
Relative path to the non-existing restore target or null
if the state identified by getNodeId() is the target. |
NodeId[] |
getVersionIds()
|
void |
persisted()
In case of a workspace-restore or 'removeExisting' the complete tree gets invalidated, otherwise the given NodeState that has been
updated and all its descendants. |
boolean |
removeExisting()
|
Methods inherited from class org.apache.jackrabbit.jcr2spi.operation.AbstractOperation |
---|
addAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatus, undo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void accept(OperationVisitor visitor) throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
Operation
visit
method on visitor
based on the type of this operation.
visitor
- the visitor to call back.
PathNotFoundException
ItemExistsException
VersionException
ConstraintViolationException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
Operation.accept(OperationVisitor)
public void persisted()
NodeState
that has been
updated and all its descendants.
Operation.persisted()
public NodeId getNodeId() throws RepositoryException
null
in case of a Workspace.restore(Version[], boolean)
RepositoryException
public Path getRelativePath()
null
if the state identified by getNodeId()
is the target.
Node.restore(Version, String, boolean)
public NodeId[] getVersionIds() throws RepositoryException
RepositoryException
public boolean removeExisting()
public static Operation create(NodeState nodeState, Path relQPath, NodeState versionState, boolean removeExisting)
nodeState
- versionState
-
public static Operation create(NodeState[] versionStates, boolean removeExisting)
versionStates
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |