org.apache.jackrabbit.jcr2spi.operation
Interface Operation

All Known Implementing Classes:
AbstractCopy, AbstractOperation, AddLabel, AddNode, AddProperty, Checkin, Checkout, Clone, Copy, LockOperation, LockRefresh, LockRelease, Merge, Move, Remove, RemoveLabel, RemoveVersion, ReorderNodes, ResolveMergeConflict, Restore, SetMixin, SetPropertyValue, Update, WorkspaceImport

public interface Operation

Operation...


Method Summary
 void accept(OperationVisitor visitor)
          Calls the appropriate visit method on visitor based on the type of this operation.
 Collection getAffectedItemStates()
          A collection of ItemStates that are affected by this operation.
 String getName()
          Returns the name of this operation.
 void persisted()
          Informs this Operation that it has been successfully executed.
 

Method Detail

getName

String getName()
Returns the name of this operation.

Returns:
the name of this operation.

accept

void accept(OperationVisitor visitor)
            throws RepositoryException,
                   ConstraintViolationException,
                   AccessDeniedException,
                   ItemExistsException,
                   NoSuchNodeTypeException,
                   UnsupportedRepositoryOperationException,
                   VersionException
Calls the appropriate visit method on visitor based on the type of this operation.

Parameters:
visitor - the visitor to call back.
Throws:
RepositoryException
ConstraintViolationException
AccessDeniedException
ItemExistsException
NoSuchNodeTypeException
UnsupportedRepositoryOperationException
VersionException

getAffectedItemStates

Collection getAffectedItemStates()
A collection of ItemStates that are affected by this operation.

Returns:
collection of affected ItemStates.

persisted

void persisted()
Informs this Operation that it has been successfully executed.



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