Class ConsolidatingChangeLog.CancelableOperations.AddNode
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.batch.Operations.AddNode
-
- org.apache.jackrabbit.spi.commons.batch.ConsolidatingChangeLog.CancelableOperations.AddNode
-
- All Implemented Interfaces:
ConsolidatingChangeLog.CancelableOperation
,Operation
- Enclosing class:
- ConsolidatingChangeLog.CancelableOperations
public static class ConsolidatingChangeLog.CancelableOperations.AddNode extends Operations.AddNode implements ConsolidatingChangeLog.CancelableOperation
AnAddNode
operation is is cancelled by aRemove
operation higher up the tree. The remove operation is also cancelled if it is targeted at the same node than this add operation.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.spi.commons.batch.Operations.AddNode
nodeName, nodetypeName, parentId, uuid
-
Fields inherited from interface org.apache.jackrabbit.spi.commons.batch.ConsolidatingChangeLog.CancelableOperation
CANCEL_BOTH, CANCEL_NONE, CANCEL_OTHER, CANCEL_THIS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
cancel(ConsolidatingChangeLog.CancelableOperation other)
Determines the cancellation behavior of theother
operation on this operation.-
Methods inherited from class org.apache.jackrabbit.spi.commons.batch.Operations.AddNode
apply, equals, equals, hashCode, toString
-
-
-
-
Method Detail
-
cancel
public int cancel(ConsolidatingChangeLog.CancelableOperation other) throws RepositoryException
Description copied from interface:ConsolidatingChangeLog.CancelableOperation
Determines the cancellation behavior of theother
operation on this operation.- Specified by:
cancel
in interfaceConsolidatingChangeLog.CancelableOperation
- Returns:
CANCEL_BOTH
ifother
is an instance ofRemove
and has this node as target.CANCEL_THIS
ifother
is an instance ofRemove
and has an node higher up the hierarchy as target.CANCEL_NONE
otherwise.
- Throws:
RepositoryException
-
-