org.apache.jackrabbit.spi.commons.logging
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 a Batch.
|
Constructor Summary |
BatchLogger(org.apache.jackrabbit.spi.Batch batch,
LogWriter writer)
Create a new instance for the given batch which uses
writer for persisting log messages. |
|
Method Summary |
void |
addNode(org.apache.jackrabbit.spi.NodeId parentId,
org.apache.jackrabbit.spi.Name nodeName,
org.apache.jackrabbit.spi.Name nodetypeName,
String uuid)
|
void |
addProperty(org.apache.jackrabbit.spi.NodeId parentId,
org.apache.jackrabbit.spi.Name propertyName,
org.apache.jackrabbit.spi.QValue value)
|
void |
addProperty(org.apache.jackrabbit.spi.NodeId parentId,
org.apache.jackrabbit.spi.Name propertyName,
org.apache.jackrabbit.spi.QValue[] values)
|
org.apache.jackrabbit.spi.Batch |
getBatch()
|
void |
move(org.apache.jackrabbit.spi.NodeId srcNodeId,
org.apache.jackrabbit.spi.NodeId destParentNodeId,
org.apache.jackrabbit.spi.Name destName)
|
void |
remove(org.apache.jackrabbit.spi.ItemId itemId)
|
void |
reorderNodes(org.apache.jackrabbit.spi.NodeId parentId,
org.apache.jackrabbit.spi.NodeId srcNodeId,
org.apache.jackrabbit.spi.NodeId beforeNodeId)
|
void |
setMixins(org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.Name[] mixinNodeTypeNames)
|
void |
setPrimaryType(org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.Name primaryNodeTypeName)
|
void |
setValue(org.apache.jackrabbit.spi.PropertyId propertyId,
org.apache.jackrabbit.spi.QValue value)
|
void |
setValue(org.apache.jackrabbit.spi.PropertyId propertyId,
org.apache.jackrabbit.spi.QValue[] values)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchLogger
public BatchLogger(org.apache.jackrabbit.spi.Batch batch,
LogWriter writer)
- Create a new instance for the given
batch which uses
writer for persisting log messages.
- Parameters:
batch - writer -
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:
addNode in interface org.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:
addProperty in interface org.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:
addProperty in interface org.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:
setValue in interface org.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:
setValue in interface org.apache.jackrabbit.spi.Batch
- Throws:
RepositoryException
remove
public void remove(org.apache.jackrabbit.spi.ItemId itemId)
throws RepositoryException
- Specified by:
remove in interface org.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:
reorderNodes in interface org.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:
setMixins in interface org.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:
setPrimaryType in interface org.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:
move in interface org.apache.jackrabbit.spi.Batch
- Throws:
RepositoryException
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.