public abstract class AbstractRemove extends AbstractOperation
AbstractRemove
is the base class for non-transient remove
operations executed on the workspace such as removing versions or activities.Modifier and Type | Field and Description |
---|---|
protected NodeState |
parent |
protected ItemState |
removeState |
status
STATUS_PENDING, STATUS_PERSISTED, STATUS_UNDO
Modifier | Constructor and Description |
---|---|
protected |
AbstractRemove(ItemState removeState,
NodeState parent) |
Modifier and Type | Method and Description |
---|---|
NodeState |
getParentState() |
ItemId |
getRemoveId() |
void |
undo()
Revert changes made by this operation.
|
addAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatus
public void undo() throws javax.jcr.RepositoryException
Operation
undo
in interface Operation
undo
in class AbstractOperation
javax.jcr.RepositoryException
Operation.undo()
public ItemId getRemoveId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public NodeState getParentState()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.