Class SerializableBatch
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.SerializableBatch
-
- All Implemented Interfaces:
Serializable,org.apache.jackrabbit.spi.Batch
public class SerializableBatch extends Object implements org.apache.jackrabbit.spi.Batch, Serializable
SerializableBatchimplements a serializable SPI Batch, which simply records all calls and replays them when asked for. The client of this batch must ensure that the passedQValueinstances are serializable, otherwise the serializing theBatchwill fail!- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSerializableBatch.Operation
-
Constructor Summary
Constructors Constructor Description SerializableBatch(org.apache.jackrabbit.spi.ItemId itemId)Creates a newSerializableBatch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNode(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name nodeName, org.apache.jackrabbit.spi.Name nodetypeName, String uuid)voidaddProperty(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name propertyName, org.apache.jackrabbit.spi.QValue value)voidaddProperty(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name propertyName, org.apache.jackrabbit.spi.QValue[] values)org.apache.jackrabbit.spi.ItemIdgetSaveTarget()voidmove(org.apache.jackrabbit.spi.NodeId srcNodeId, org.apache.jackrabbit.spi.NodeId destParentNodeId, org.apache.jackrabbit.spi.Name destName)voidremove(org.apache.jackrabbit.spi.ItemId itemId)voidreorderNodes(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.NodeId srcNodeId, org.apache.jackrabbit.spi.NodeId beforeNodeId)voidreplay(org.apache.jackrabbit.spi.Batch batch)Replays this batch on the givenbatch.voidsetMixins(org.apache.jackrabbit.spi.NodeId nodeId, org.apache.jackrabbit.spi.Name[] mixinNodeTypeIds)voidsetPrimaryType(org.apache.jackrabbit.spi.NodeId nodeId, org.apache.jackrabbit.spi.Name primaryNodeTypeName)voidsetTree(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Tree contentTree)voidsetValue(org.apache.jackrabbit.spi.PropertyId propertyId, org.apache.jackrabbit.spi.QValue value)voidsetValue(org.apache.jackrabbit.spi.PropertyId propertyId, org.apache.jackrabbit.spi.QValue[] values)
-
-
-
Method Detail
-
getSaveTarget
public org.apache.jackrabbit.spi.ItemId getSaveTarget()
- Returns:
- the item id where save was called for this batch.
-
replay
public void replay(org.apache.jackrabbit.spi.Batch batch) throws PathNotFoundException, ItemNotFoundException, NoSuchNodeTypeException, ValueFormatException, VersionException, LockException, ConstraintViolationException, AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryExceptionReplays this batch on the givenbatch. For a description of the exception seeRepositoryService.submit(Batch).
-
addNode
public void addNode(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name nodeName, org.apache.jackrabbit.spi.Name nodetypeName, String uuid)- Specified by:
addNodein interfaceorg.apache.jackrabbit.spi.Batch
-
addProperty
public void addProperty(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name propertyName, org.apache.jackrabbit.spi.QValue value)- Specified by:
addPropertyin interfaceorg.apache.jackrabbit.spi.Batch
-
addProperty
public void addProperty(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name propertyName, org.apache.jackrabbit.spi.QValue[] values)- Specified by:
addPropertyin interfaceorg.apache.jackrabbit.spi.Batch
-
setValue
public void setValue(org.apache.jackrabbit.spi.PropertyId propertyId, org.apache.jackrabbit.spi.QValue value)- Specified by:
setValuein interfaceorg.apache.jackrabbit.spi.Batch
-
setValue
public void setValue(org.apache.jackrabbit.spi.PropertyId propertyId, org.apache.jackrabbit.spi.QValue[] values)- Specified by:
setValuein interfaceorg.apache.jackrabbit.spi.Batch
-
remove
public void remove(org.apache.jackrabbit.spi.ItemId itemId)
- Specified by:
removein interfaceorg.apache.jackrabbit.spi.Batch
-
reorderNodes
public void reorderNodes(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.NodeId srcNodeId, org.apache.jackrabbit.spi.NodeId beforeNodeId)- Specified by:
reorderNodesin interfaceorg.apache.jackrabbit.spi.Batch
-
setMixins
public void setMixins(org.apache.jackrabbit.spi.NodeId nodeId, org.apache.jackrabbit.spi.Name[] mixinNodeTypeIds)- Specified by:
setMixinsin interfaceorg.apache.jackrabbit.spi.Batch
-
setPrimaryType
public void setPrimaryType(org.apache.jackrabbit.spi.NodeId nodeId, org.apache.jackrabbit.spi.Name primaryNodeTypeName) throws RepositoryException- Specified by:
setPrimaryTypein interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
move
public void move(org.apache.jackrabbit.spi.NodeId srcNodeId, org.apache.jackrabbit.spi.NodeId destParentNodeId, org.apache.jackrabbit.spi.Name destName)- Specified by:
movein interfaceorg.apache.jackrabbit.spi.Batch
-
setTree
public void setTree(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Tree contentTree) throws RepositoryException- Specified by:
setTreein interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
-