Class AbstractRemove
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.operation.AbstractOperation
-
- org.apache.jackrabbit.jcr2spi.operation.AbstractRemove
-
- All Implemented Interfaces:
Operation
- Direct Known Subclasses:
RemoveActivity
,RemoveVersion
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected NodeState
parent
protected ItemState
removeState
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRemove(ItemState removeState, NodeState parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeState
getParentState()
ItemId
getRemoveId()
void
undo()
Revert changes made by this operation.-
Methods inherited from class org.apache.jackrabbit.jcr2spi.operation.AbstractOperation
addAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatus
-
-
-
-
Constructor Detail
-
AbstractRemove
protected AbstractRemove(ItemState removeState, NodeState parent) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
undo
public void undo() throws RepositoryException
Description copied from interface:Operation
Revert changes made by this operation.- Specified by:
undo
in interfaceOperation
- Overrides:
undo
in classAbstractOperation
- Throws:
RepositoryException
- See Also:
Operation.undo()
-
getRemoveId
public ItemId getRemoveId() throws RepositoryException
- Throws:
RepositoryException
-
getParentState
public NodeState getParentState()
-
-