Class BatchLogger
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.logging.AbstractLogger
-
- org.apache.jackrabbit.spi.commons.logging.BatchLogger
-
- All Implemented Interfaces:
org.apache.jackrabbit.spi.Batch
public class BatchLogger extends AbstractLogger implements org.apache.jackrabbit.spi.Batch
Log wrapper for aBatch.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
AbstractLogger.Callable, AbstractLogger.SafeCallable
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
writer
-
-
Constructor Summary
Constructors Constructor Description BatchLogger(org.apache.jackrabbit.spi.Batch batch, LogWriter writer)Create a new instance for the givenbatchwhich useswriterfor persisting log messages.
-
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.BatchgetBatch()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)voidsetMixins(org.apache.jackrabbit.spi.NodeId nodeId, org.apache.jackrabbit.spi.Name[] mixinNodeTypeNames)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)-
Methods inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
execute, execute
-
-
-
-
Constructor Detail
-
BatchLogger
public BatchLogger(org.apache.jackrabbit.spi.Batch batch, LogWriter writer)Create a new instance for the givenbatchwhich useswriterfor persisting log messages.- Parameters:
batch-writer-
-
-
Method Detail
-
getBatch
public org.apache.jackrabbit.spi.Batch getBatch()
- Returns:
- the wrapped 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) throws RepositoryException- Specified by:
addNodein interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
addProperty
public void addProperty(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name propertyName, org.apache.jackrabbit.spi.QValue value) throws RepositoryException- Specified by:
addPropertyin interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
addProperty
public void addProperty(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name propertyName, org.apache.jackrabbit.spi.QValue[] values) throws RepositoryException- Specified by:
addPropertyin interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
setValue
public void setValue(org.apache.jackrabbit.spi.PropertyId propertyId, org.apache.jackrabbit.spi.QValue value) throws RepositoryException- Specified by:
setValuein interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
setValue
public void setValue(org.apache.jackrabbit.spi.PropertyId propertyId, org.apache.jackrabbit.spi.QValue[] values) throws RepositoryException- Specified by:
setValuein interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
remove
public void remove(org.apache.jackrabbit.spi.ItemId itemId) throws RepositoryException- Specified by:
removein interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
reorderNodes
public void reorderNodes(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.NodeId srcNodeId, org.apache.jackrabbit.spi.NodeId beforeNodeId) throws RepositoryException- Specified by:
reorderNodesin interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
setMixins
public void setMixins(org.apache.jackrabbit.spi.NodeId nodeId, org.apache.jackrabbit.spi.Name[] mixinNodeTypeNames) throws RepositoryException- Specified by:
setMixinsin interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
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) throws RepositoryException- Specified by:
movein interfaceorg.apache.jackrabbit.spi.Batch- Throws:
RepositoryException
-
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
-
-