Class Operations
- java.lang.Object
- 
- org.apache.jackrabbit.spi.commons.batch.Operations
 
- 
 public final class Operations extends Object Factory for creatingOperations. The inner classes of this class all implement theOperationinterface. They are representatives for the method calls on aBatch. In additionOperations.Emptyrepresents the empty operation which does nothing.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classOperations.AddNodeRepresentative of an add-nodeOperationwhich callsBatch.addNode(NodeId, Name, Name, String)when applied to aBatch.static classOperations.AddPropertyRepresentative of an add-propertyOperationwhich callsBatch.addProperty(NodeId, Name, QValue)orBatch.addProperty(NodeId, Name, QValue[])depending on whether the property is multi valued or not when applied to aBatch.static classOperations.Emptystatic classOperations.MoveRepresentative of a moveOperationwhich callsBatch.move(NodeId, NodeId, Name)when applied to aBatch.static classOperations.Removestatic classOperations.ReorderNodesRepresentative of a reorder-nodesOperationwhich callsBatch.reorderNodes(NodeId, NodeId, NodeId)when applied to aBatch.static classOperations.SetMixinsRepresentative of a set-mixinOperationwhich callsBatch.setMixins(NodeId, Name[])when applied to aBatch.static classOperations.SetPrimaryTypeRepresentative of a set-mixinOperationwhich callsBatch.setMixins(NodeId, Name[])when applied to aBatch.static classOperations.SetTreestatic classOperations.SetValueRepresentative of a set-valueOperationwhich callsBatch.setValue(PropertyId, QValue)orBatch.setValue(PropertyId, QValue[])depending on whether the property is multi valued or not when applied to aBatch.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static OperationaddNode(NodeId parentId, Name nodeName, Name nodetypeName, String uuid)Factory method for creating anOperations.AddNodeoperation.static OperationaddProperty(NodeId parentId, Name propertyName, QValue value)Factory method for creating anOperations.AddPropertyoperation.static OperationaddProperty(NodeId parentId, Name propertyName, QValue[] values)Factory method for creating anOperations.AddPropertyoperation.static Operationempty()Factory method for creating anOperations.Emptyoperation.protected static booleanequals(Object o1, Object o2)protected static inthashCode(Object o)static Operationmove(NodeId srcNodeId, NodeId destParentNodeId, Name destName)Factory method for creating aOperations.Moveoperation.static Operationremove(ItemId itemId)Factory method for creating aOperations.Removeoperation.static OperationreorderNodes(NodeId parentId, NodeId srcNodeId, NodeId beforeNodeId)Factory method for creating a reorder-nodesOperationfor the given arguments.static OperationsetMixins(NodeId nodeId, Name[] mixinNodeTypeNames)Factory method for creating a set-mixinOperationfor the given arguments.static OperationsetPrimaryType(NodeId nodeId, Name primaryTypeName)Factory method for creating a set-primaryTypeOperationfor the given arguments.static OperationsetTree(NodeId parentId, Tree contentTree)Factory method for creating anOperations.SetTreeoperation.static OperationsetValue(PropertyId propertyId, QValue value)Factory method for creating set-valueOperationfor the given arguments.static OperationsetValue(PropertyId propertyId, QValue[] values)Factory method for creating a set-valueOperationfor the given arguments.
 
- 
- 
- 
Method Detail- 
emptypublic static Operation empty() Factory method for creating anOperations.Emptyoperation.- Returns:
 
 - 
addNodepublic static Operation addNode(NodeId parentId, Name nodeName, Name nodetypeName, String uuid) Factory method for creating anOperations.AddNodeoperation.- Parameters:
- parentId-
- nodeName-
- nodetypeName-
- uuid-
- Returns:
- See Also:
- Batch.addNode(NodeId, Name, Name, String)
 
 - 
addPropertypublic static Operation addProperty(NodeId parentId, Name propertyName, QValue value) Factory method for creating anOperations.AddPropertyoperation.- Parameters:
- parentId-
- propertyName-
- value-
- Returns:
- See Also:
- Batch.addProperty(NodeId, Name, QValue)
 
 - 
addPropertypublic static Operation addProperty(NodeId parentId, Name propertyName, QValue[] values) Factory method for creating anOperations.AddPropertyoperation.- Parameters:
- parentId-
- propertyName-
- values-
- Returns:
- See Also:
- Batch.addProperty(NodeId, Name, QValue[])
 
 - 
movepublic static Operation move(NodeId srcNodeId, NodeId destParentNodeId, Name destName) Factory method for creating aOperations.Moveoperation.- Parameters:
- srcNodeId-
- destParentNodeId-
- destName-
- Returns:
- See Also:
- Batch.move(NodeId, NodeId, Name)
 
 - 
removepublic static Operation remove(ItemId itemId) Factory method for creating aOperations.Removeoperation.- Parameters:
- itemId-
- Returns:
- See Also:
- Batch.move(NodeId, NodeId, Name)
 
 - 
reorderNodespublic static Operation reorderNodes(NodeId parentId, NodeId srcNodeId, NodeId beforeNodeId) Factory method for creating a reorder-nodesOperationfor the given arguments.- Parameters:
- parentId-
- srcNodeId-
- beforeNodeId-
- Returns:
- See Also:
- Batch.reorderNodes(NodeId, NodeId, NodeId)
 
 - 
setMixinspublic static Operation setMixins(NodeId nodeId, Name[] mixinNodeTypeNames) Factory method for creating a set-mixinOperationfor the given arguments.- Parameters:
- nodeId-
- mixinNodeTypeNames-
- Returns:
- See Also:
- Batch.setMixins(NodeId, Name[])
 
 - 
setPrimaryTypepublic static Operation setPrimaryType(NodeId nodeId, Name primaryTypeName) Factory method for creating a set-primaryTypeOperationfor the given arguments.- Parameters:
- nodeId-
- primaryTypeName-
- Returns:
- See Also:
- Batch.setPrimaryType(NodeId, Name)
 
 - 
setValuepublic static Operation setValue(PropertyId propertyId, QValue value) Factory method for creating set-valueOperationfor the given arguments.- Parameters:
- propertyId-
- value-
- Returns:
- See Also:
- Batch.setValue(PropertyId, QValue)
 
 - 
setValuepublic static Operation setValue(PropertyId propertyId, QValue[] values) Factory method for creating a set-valueOperationfor the given arguments.- Parameters:
- propertyId-
- values-
- Returns:
- See Also:
- Batch.setValue(PropertyId, QValue[])
 
 - 
hashCodeprotected static int hashCode(Object o) 
 - 
setTreepublic static Operation setTree(NodeId parentId, Tree contentTree) Factory method for creating anOperations.SetTreeoperation.
 
- 
 
-