org.apache.jackrabbit.jcr2spi.operation
Class AbstractRemove

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.operation.AbstractOperation
      extended by 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
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
protected AbstractRemove(ItemState removeState, NodeState parent)
           
 
Method Summary
 NodeState getParentState()
           
 org.apache.jackrabbit.spi.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.jcr2spi.operation.Operation
accept, persisted
 

Field Detail

removeState

protected ItemState removeState

parent

protected NodeState parent
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 interface Operation
Overrides:
undo in class AbstractOperation
Throws:
RepositoryException
See Also:
Operation.undo()

getRemoveId

public org.apache.jackrabbit.spi.ItemId getRemoveId()
                                             throws RepositoryException
Throws:
RepositoryException

getParentState

public NodeState getParentState()


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.