Class Operations
java.lang.Object
org.apache.jackrabbit.spi.commons.batch.Operations
Factory for creating
Operations. The inner classes of this class
all implement the Operation interface. They are representatives
for the method calls on a Batch. In addition Operations.Empty represents
the empty operation which does nothing.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresentative of an add-nodeOperationwhich callsBatch.addNode(NodeId, Name, Name, String)when applied to aBatch.static classRepresentative 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 classstatic classRepresentative of a moveOperationwhich callsBatch.move(NodeId, NodeId, Name)when applied to aBatch.static classstatic classRepresentative of a reorder-nodesOperationwhich callsBatch.reorderNodes(NodeId, NodeId, NodeId)when applied to aBatch.static classRepresentative of a set-mixinOperationwhich callsBatch.setMixins(NodeId, Name[])when applied to aBatch.static classRepresentative of a set-mixinOperationwhich callsBatch.setMixins(NodeId, Name[])when applied to aBatch.static classstatic classRepresentative 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 Summary
Modifier and TypeMethodDescriptionstatic OperationFactory 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.static OperationFactory method for creating aOperations.Moveoperation.static OperationFactory method for creating aOperations.Removeoperation.static OperationreorderNodes(NodeId parentId, NodeId srcNodeId, NodeId beforeNodeId) Factory method for creating a reorder-nodesOperationfor the given arguments.static OperationFactory 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 OperationFactory 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 Details
-
empty
Factory method for creating anOperations.Emptyoperation.- Returns:
-
addNode
Factory method for creating anOperations.AddNodeoperation.- Parameters:
parentId-nodeName-nodetypeName-uuid-- Returns:
- See Also:
-
addProperty
Factory method for creating anOperations.AddPropertyoperation.- Parameters:
parentId-propertyName-value-- Returns:
- See Also:
-
addProperty
Factory method for creating anOperations.AddPropertyoperation.- Parameters:
parentId-propertyName-values-- Returns:
- See Also:
-
move
Factory method for creating aOperations.Moveoperation.- Parameters:
srcNodeId-destParentNodeId-destName-- Returns:
- See Also:
-
remove
Factory method for creating aOperations.Removeoperation.- Parameters:
itemId-- Returns:
- See Also:
-
reorderNodes
Factory method for creating a reorder-nodesOperationfor the given arguments.- Parameters:
parentId-srcNodeId-beforeNodeId-- Returns:
- See Also:
-
setMixins
Factory method for creating a set-mixinOperationfor the given arguments.- Parameters:
nodeId-mixinNodeTypeNames-- Returns:
- See Also:
-
setPrimaryType
Factory method for creating a set-primaryTypeOperationfor the given arguments.- Parameters:
nodeId-primaryTypeName-- Returns:
- See Also:
-
setValue
Factory method for creating set-valueOperationfor the given arguments.- Parameters:
propertyId-value-- Returns:
- See Also:
-
setValue
Factory method for creating a set-valueOperationfor the given arguments.- Parameters:
propertyId-values-- Returns:
- See Also:
-
setTree
Factory method for creating anOperations.SetTreeoperation.- See Also:
-