Interface ConsolidatingChangeLog.CancelableOperation
-
- All Superinterfaces:
Operation
- All Known Implementing Classes:
ConsolidatingChangeLog.CancelableOperations.AddNode,ConsolidatingChangeLog.CancelableOperations.AddProperty,ConsolidatingChangeLog.CancelableOperations.Empty,ConsolidatingChangeLog.CancelableOperations.Move,ConsolidatingChangeLog.CancelableOperations.Remove,ConsolidatingChangeLog.CancelableOperations.ReorderNodes,ConsolidatingChangeLog.CancelableOperations.SetMixins,ConsolidatingChangeLog.CancelableOperations.SetPrimaryType,ConsolidatingChangeLog.CancelableOperations.SetTree,ConsolidatingChangeLog.CancelableOperations.SetValue
- Enclosing class:
- ConsolidatingChangeLog
protected static interface ConsolidatingChangeLog.CancelableOperation extends Operation
This class represent anOperationwhich can be cancelled by another operation or which cancels another operation.
-
-
Field Summary
Fields Modifier and Type Field Description static intCANCEL_BOTHThis operation and the other operation cancel each other mutuallystatic intCANCEL_NONENo cancellationstatic intCANCEL_OTHERThis operation cancels the other operationstatic intCANCEL_THISThe other operation cancels this operations
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcancel(ConsolidatingChangeLog.CancelableOperation other)Determines the cancellation behavior of theotheroperation on this operation.
-
-
-
Field Detail
-
CANCEL_THIS
static final int CANCEL_THIS
The other operation cancels this operations- See Also:
- Constant Field Values
-
CANCEL_OTHER
static final int CANCEL_OTHER
This operation cancels the other operation- See Also:
- Constant Field Values
-
CANCEL_BOTH
static final int CANCEL_BOTH
This operation and the other operation cancel each other mutually- See Also:
- Constant Field Values
-
CANCEL_NONE
static final int CANCEL_NONE
No cancellation- See Also:
- Constant Field Values
-
-
Method Detail
-
cancel
int cancel(ConsolidatingChangeLog.CancelableOperation other) throws RepositoryException
Determines the cancellation behavior of theotheroperation on this operation.- Parameters:
other-- Returns:
- Either
CANCEL_THIS,CANCEL_OTHER,CANCEL_OTHERorCANCEL_NONE - Throws:
RepositoryException
-
-