Interface Operation
-
- All Known Implementing Classes:
AbstractCopy,AbstractOperation,AbstractRemove,AddLabel,AddNode,AddProperty,Checkin,Checkout,Checkpoint,Clone,Copy,CreateActivity,CreateConfiguration,LockOperation,LockRefresh,LockRelease,Merge,Move,Remove,RemoveActivity,RemoveLabel,RemoveVersion,ReorderNodes,ResolveMergeConflict,Restore,SetMixin,SetPrimaryType,SetPropertyValue,SetTree,TransientOperation,Update,WorkspaceImport
public interface OperationOperation...
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_PENDINGstatic intSTATUS_PERSISTEDstatic intSTATUS_UNDO
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(OperationVisitor visitor)Calls the appropriatevisitmethod onvisitorbased on the type of this operation.Collection<ItemState>getAffectedItemStates()A collection ofItemStates that are affected by this operation.StringgetName()Returns the name ofthisoperation.intgetStatus()Returns the status of this operation.voidpersisted()Informs this Operation that it has been successfully executed.voidundo()Revert changes made by this operation.
-
-
-
Field Detail
-
STATUS_PENDING
static final int STATUS_PENDING
- See Also:
- Constant Field Values
-
STATUS_PERSISTED
static final int STATUS_PERSISTED
- See Also:
- Constant Field Values
-
STATUS_UNDO
static final int STATUS_UNDO
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
Returns the name ofthisoperation.- Returns:
- the name of
thisoperation.
-
accept
void accept(OperationVisitor visitor) throws RepositoryException, ConstraintViolationException, AccessDeniedException, ItemExistsException, NoSuchNodeTypeException, UnsupportedRepositoryOperationException, VersionException
Calls the appropriatevisitmethod onvisitorbased on the type of this operation.- Parameters:
visitor- the visitor to call back.- Throws:
RepositoryExceptionConstraintViolationExceptionAccessDeniedExceptionItemExistsExceptionNoSuchNodeTypeExceptionUnsupportedRepositoryOperationExceptionVersionException
-
getAffectedItemStates
Collection<ItemState> getAffectedItemStates()
A collection ofItemStates that are affected by this operation.- Returns:
- collection of affected
ItemStates.
-
persisted
void persisted() throws RepositoryExceptionInforms this Operation that it has been successfully executed.- Throws:
RepositoryException
-
undo
void undo() throws RepositoryException
Revert changes made by this operation.- Throws:
RepositoryException
-
getStatus
int getStatus()
Returns the status of this operation.- Returns:
- status of this operation.
-
-