org.apache.jackrabbit.spi.commons.batch
Class Operations.ReorderNodes
java.lang.Object
org.apache.jackrabbit.spi.commons.batch.Operations.ReorderNodes
- All Implemented Interfaces:
- Operation
- Direct Known Subclasses:
- ConsolidatingChangeLog.CancelableOperations.ReorderNodes
- Enclosing class:
- Operations
public static class Operations.ReorderNodes
- extends Object
- implements Operation
Representative of a reorder-nodes Operation
which calls
Batch.reorderNodes(NodeId, NodeId, NodeId)
when applied to a Batch
.
parentId
protected final NodeId parentId
srcNodeId
protected final NodeId srcNodeId
beforeNodeId
protected final NodeId beforeNodeId
Operations.ReorderNodes
public Operations.ReorderNodes(NodeId parentId,
NodeId srcNodeId,
NodeId beforeNodeId)
- Create a new reorder-nodes
Operation
for the given arguments.
- Parameters:
parentId
- srcNodeId
- beforeNodeId
- - See Also:
Batch.reorderNodes(NodeId, NodeId, NodeId)
apply
public void apply(Batch batch)
throws RepositoryException
- Apply this operation to the given
Batch
- Specified by:
apply
in interface Operation
- Throws:
RepositoryException
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
equals
public boolean equals(Operations.ReorderNodes other)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.