org.apache.jackrabbit.spi.commons.batch
Class ConsolidatingChangeLog.CancelableOperations.ReorderNodes
java.lang.Object
org.apache.jackrabbit.spi.commons.batch.Operations.ReorderNodes
org.apache.jackrabbit.spi.commons.batch.ConsolidatingChangeLog.CancelableOperations.ReorderNodes
- All Implemented Interfaces:
- ConsolidatingChangeLog.CancelableOperation, Operation
- Enclosing class:
- ConsolidatingChangeLog.CancelableOperations
public static class ConsolidatingChangeLog.CancelableOperations.ReorderNodes
- extends Operations.ReorderNodes
- implements ConsolidatingChangeLog.CancelableOperation
A ReorderNodes
operation might cancel with
Remove
and
ReorderNodes
operations.
Methods inherited from interface org.apache.jackrabbit.spi.commons.batch.Operation |
apply |
ConsolidatingChangeLog.CancelableOperations.ReorderNodes
public ConsolidatingChangeLog.CancelableOperations.ReorderNodes(NodeId parentId,
NodeId srcNodeId,
NodeId beforeNodeId)
cancel
public int cancel(ConsolidatingChangeLog.CancelableOperation other)
throws RepositoryException
- Description copied from interface:
ConsolidatingChangeLog.CancelableOperation
- Determines the cancellation behavior of the
other
operation
on this operation.
- Specified by:
cancel
in interface ConsolidatingChangeLog.CancelableOperation
- Returns:
CANCEL_THIS
if
other
is an instance of
Remove
and has an node higher up
the hierarchy or this node as target. Or if other
is an instance of
ReorderNodes
which
has this node as target and neither srcNodeId
nor beforeNodeId
has same name siblings.
CANCEL_NONE
otherwise.
- Throws:
RepositoryException
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.