org.apache.jackrabbit.spi.commons.batch
Class ConsolidatingChangeLog.CancelableOperations

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.batch.ConsolidatingChangeLog.CancelableOperations
Enclosing class:
ConsolidatingChangeLog

protected static final class ConsolidatingChangeLog.CancelableOperations
extends Object

Factory for creating CancelableOperations. The inner classes of this class all implement the CancelableOperation interface.

See Also:
Operation

Nested Class Summary
static class ConsolidatingChangeLog.CancelableOperations.AddNode
          An AddNode operation is is cancelled by a Remove operation higher up the tree.
static class ConsolidatingChangeLog.CancelableOperations.AddProperty
          AddProperty operations might cancel with Remove and SetValue operations.
static class ConsolidatingChangeLog.CancelableOperations.Empty
          An Empty operation never cancels another operation and is never cancelled by any other operation.
static class ConsolidatingChangeLog.CancelableOperations.Move
          An Move operation never cancels another operation and is never cancelled by any other operation.
static class ConsolidatingChangeLog.CancelableOperations.Remove
          An Remove operation never cancels another operation and is never cancelled by any other operation.
static class ConsolidatingChangeLog.CancelableOperations.ReorderNodes
          A ReorderNodes operation might cancel with Remove and ReorderNodes operations.
static class ConsolidatingChangeLog.CancelableOperations.SetMixins
          A SetMixins operation might cancel with Remove and SetMixins operations.
static class ConsolidatingChangeLog.CancelableOperations.SetPrimaryType
          A SetPrimaryType operation might cancel with Remove and SetPrimaryType operations.
static class ConsolidatingChangeLog.CancelableOperations.SetValue
          A SetValue operation might cancel with Remove and SetValue operations.
 
Method Summary
static ConsolidatingChangeLog.CancelableOperation addNode(NodeId parentId, Name nodeName, Name nodetypeName, String uuid)
          Factory method for creating an AddNode operation.
static ConsolidatingChangeLog.CancelableOperation addProperty(NodeId parentId, Name propertyName, QValue value)
          Factory method for creating an AddProperty operation.
static ConsolidatingChangeLog.CancelableOperation addProperty(NodeId parentId, Name propertyName, QValue[] values)
          Factory method for creating an AddProperty operation.
static ConsolidatingChangeLog.CancelableOperation empty()
          Factory method for creating an Empty operation.
static ConsolidatingChangeLog.CancelableOperation move(NodeId srcNodeId, NodeId destParentNodeId, Name destName)
          Factory method for creating a Move operation.
static ConsolidatingChangeLog.CancelableOperation remove(ItemId itemId)
          Factory method for creating a Remove operation.
static ConsolidatingChangeLog.CancelableOperation reorderNodes(NodeId parentId, NodeId srcNodeId, NodeId beforeNodeId)
          Factory method for creating a ReorderNodes operation.
static ConsolidatingChangeLog.CancelableOperation setMixins(NodeId nodeId, Name[] mixinNodeTypeNames)
          Factory method for creating a ConsolidatingChangeLog.CancelableOperations.SetMixins operation.
static ConsolidatingChangeLog.CancelableOperation setPrimaryType(NodeId nodeId, Name primaryTypeName)
          Factory method for creating a ConsolidatingChangeLog.CancelableOperations.SetPrimaryType operation.
static ConsolidatingChangeLog.CancelableOperation setValue(PropertyId propertyId, QValue value)
          Factory method for creating a SetValue operation.
static ConsolidatingChangeLog.CancelableOperation setValue(PropertyId propertyId, QValue[] values)
          Factory method for creating a SetValue operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

empty

public static ConsolidatingChangeLog.CancelableOperation empty()
Factory method for creating an Empty operation.

Returns:

addNode

public static ConsolidatingChangeLog.CancelableOperation addNode(NodeId parentId,
                                                                 Name nodeName,
                                                                 Name nodetypeName,
                                                                 String uuid)
Factory method for creating an AddNode 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 an AddProperty 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 an AddProperty 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 a Move 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 a Remove 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 a ReorderNodes 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 a ConsolidatingChangeLog.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 a ConsolidatingChangeLog.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 a SetValue 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 a SetValue operation.

Parameters:
propertyId -
values -
Returns:
See Also:
Batch.setValue(PropertyId, QValue[])


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.