org.apache.jackrabbit.jcr2spi.operation
Class AbstractOperation

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.operation.AbstractOperation
All Implemented Interfaces:
Operation
Direct Known Subclasses:
AbstractCopy, AddLabel, AddNode, AddProperty, Checkin, Checkout, LockOperation, LockRefresh, LockRelease, Merge, Move, Remove, RemoveLabel, ReorderNodes, ResolveMergeConflict, Restore, SetMixin, SetPropertyValue, Update, WorkspaceImport

public abstract class AbstractOperation
extends Object
implements Operation

AbstractOperation...


Constructor Summary
AbstractOperation()
           
 
Method Summary
protected  void addAffectedItemState(ItemState affectedState)
          Adds an affected ItemState.
 Collection getAffectedItemStates()
          A collection of ItemStates that are affected by this operation.
 String getName()
          Returns the name of the class
protected static NodeState getNodeState(Path nodePath, HierarchyManager hierMgr, PathResolver resolver)
           
 
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
 

Constructor Detail

AbstractOperation

public AbstractOperation()
Method Detail

getName

public String getName()
Returns the name of the class

Specified by:
getName in interface Operation
Returns:
the class name
See Also:
Object.getClass()

getAffectedItemStates

public Collection getAffectedItemStates()
Description copied from interface: Operation
A collection of ItemStates that are affected by this operation.

Specified by:
getAffectedItemStates in interface Operation
Returns:
collection of affected ItemStates.

addAffectedItemState

protected void addAffectedItemState(ItemState affectedState)
Adds an affected ItemState.

Parameters:
affectedState - the ItemStates of the affected item.

getNodeState

protected static NodeState getNodeState(Path nodePath,
                                        HierarchyManager hierMgr,
                                        PathResolver resolver)
                                 throws PathNotFoundException,
                                        RepositoryException
Parameters:
nodePath -
hierMgr -
resolver -
Returns:
Throws:
PathNotFoundException
RepositoryException


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