Class ConsolidatingChangeLog.CancelableOperations
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.batch.ConsolidatingChangeLog.CancelableOperations
-
- Enclosing class:
- ConsolidatingChangeLog
protected static final class ConsolidatingChangeLog.CancelableOperations extends Object
Factory for creatingCancelableOperation
s. The inner classes of this class all implement theCancelableOperation
interface.- See Also:
Operation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConsolidatingChangeLog.CancelableOperations.AddNode
AnAddNode
operation is is cancelled by aRemove
operation higher up the tree.static class
ConsolidatingChangeLog.CancelableOperations.AddProperty
static class
ConsolidatingChangeLog.CancelableOperations.Empty
AnEmpty
operation never cancels another operation and is never cancelled by any other operation.static class
ConsolidatingChangeLog.CancelableOperations.Move
AnMove
operation never cancels another operation and is never cancelled by any other operation.static class
ConsolidatingChangeLog.CancelableOperations.Remove
AnRemove
operation never cancels another operation and is never cancelled by any other operation.static class
ConsolidatingChangeLog.CancelableOperations.ReorderNodes
static class
ConsolidatingChangeLog.CancelableOperations.SetMixins
static class
ConsolidatingChangeLog.CancelableOperations.SetPrimaryType
static class
ConsolidatingChangeLog.CancelableOperations.SetTree
static class
ConsolidatingChangeLog.CancelableOperations.SetValue
-
Method Summary
-
-
-
Method Detail
-
empty
public static ConsolidatingChangeLog.CancelableOperation empty()
Factory method for creating anEmpty
operation.- Returns:
-
addNode
public static ConsolidatingChangeLog.CancelableOperation addNode(NodeId parentId, Name nodeName, Name nodetypeName, String uuid)
Factory method for creating anAddNode
operation.- Parameters:
parentId
-nodeName
-nodetypeName
-uuid
-- Returns:
- See Also:
Batch.addNode(NodeId, Name, Name, String)
-
addProperty
public static ConsolidatingChangeLog.CancelableOperation addProperty(NodeId parentId, Name propertyName, QValue value)
Factory method for creating anAddProperty
operation.- Parameters:
parentId
-propertyName
-value
-- Returns:
- See Also:
Batch.addProperty(NodeId, Name, QValue)
-
addProperty
public static ConsolidatingChangeLog.CancelableOperation addProperty(NodeId parentId, Name propertyName, QValue[] values)
Factory method for creating anAddProperty
operation.- Parameters:
parentId
-propertyName
-values
-- Returns:
- See Also:
Batch.addProperty(NodeId, Name, QValue[])
-
move
public static ConsolidatingChangeLog.CancelableOperation move(NodeId srcNodeId, NodeId destParentNodeId, Name destName)
Factory method for creating aMove
operation.- Parameters:
srcNodeId
-destParentNodeId
-destName
-- Returns:
- See Also:
Batch.move(NodeId, NodeId, Name)
-
remove
public static ConsolidatingChangeLog.CancelableOperation remove(ItemId itemId)
Factory method for creating aRemove
operation.- Parameters:
itemId
-- Returns:
- See Also:
Batch.move(NodeId, NodeId, Name)
-
reorderNodes
public static ConsolidatingChangeLog.CancelableOperation reorderNodes(NodeId parentId, NodeId srcNodeId, NodeId beforeNodeId)
Factory method for creating aReorderNodes
operation.- Parameters:
parentId
-srcNodeId
-beforeNodeId
-- Returns:
- See Also:
Batch.reorderNodes(NodeId, NodeId, NodeId)
-
setMixins
public static ConsolidatingChangeLog.CancelableOperation setMixins(NodeId nodeId, Name[] mixinNodeTypeNames)
Factory method for creating aConsolidatingChangeLog.CancelableOperations.SetMixins
operation.- Parameters:
nodeId
-mixinNodeTypeNames
-- Returns:
- See Also:
Batch.setMixins(NodeId, Name[])
-
setPrimaryType
public static ConsolidatingChangeLog.CancelableOperation setPrimaryType(NodeId nodeId, Name primaryTypeName)
Factory method for creating aConsolidatingChangeLog.CancelableOperations.SetPrimaryType
operation.- Parameters:
nodeId
-primaryTypeName
-- Returns:
- See Also:
Batch.setPrimaryType(NodeId, Name)
-
setValue
public static ConsolidatingChangeLog.CancelableOperation setValue(PropertyId propertyId, QValue value)
Factory method for creating aSetValue
operation.- Parameters:
propertyId
-value
-- Returns:
- See Also:
Batch.setValue(PropertyId, QValue)
-
setValue
public static ConsolidatingChangeLog.CancelableOperation setValue(PropertyId propertyId, QValue[] values)
Factory method for creating aSetValue
operation.- Parameters:
propertyId
-values
-- Returns:
- See Also:
Batch.setValue(PropertyId, QValue[])
-
setTree
public static ConsolidatingChangeLog.CancelableOperation setTree(NodeId parentId, Tree tree)
Factory method for creating anConsolidatingChangeLog.CancelableOperations.SetTree
operation.- Parameters:
parentId
-tree
-- Returns:
- See Also:
Batch.setTree(NodeId, Tree)
-
-