org.apache.jackrabbit.spi.commons.batch
Class ChangeLogImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.batch.AbstractChangeLog<Operation>
      extended by org.apache.jackrabbit.spi.commons.batch.ChangeLogImpl
All Implemented Interfaces:
org.apache.jackrabbit.spi.Batch, ChangeLog

public class ChangeLogImpl
extends AbstractChangeLog<Operation>

This ChangeLog implementation simply keeps back all calls to its Batch methods as a list of AbstractChangeLog.operations (with item of type Operation). When applied to a batch, all operations in the list are applied to that batch.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.spi.commons.batch.AbstractChangeLog
operations
 
Constructor Summary
ChangeLogImpl()
           
 
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)
           
 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 org.apache.jackrabbit.spi.commons.batch.AbstractChangeLog
addOperation, apply, equals, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeLogImpl

public ChangeLogImpl()
Method Detail

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
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
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
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
Throws:
RepositoryException

remove

public void remove(org.apache.jackrabbit.spi.ItemId itemId)
            throws RepositoryException
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
Throws:
RepositoryException

setMixins

public void setMixins(org.apache.jackrabbit.spi.NodeId nodeId,
                      org.apache.jackrabbit.spi.Name[] mixinNodeTypeNames)
               throws RepositoryException
Throws:
RepositoryException

setPrimaryType

public void setPrimaryType(org.apache.jackrabbit.spi.NodeId nodeId,
                           org.apache.jackrabbit.spi.Name primaryNodeTypeName)
                    throws RepositoryException
Throws:
RepositoryException

setValue

public void setValue(org.apache.jackrabbit.spi.PropertyId propertyId,
                     org.apache.jackrabbit.spi.QValue value)
              throws RepositoryException
Throws:
RepositoryException

setValue

public void setValue(org.apache.jackrabbit.spi.PropertyId propertyId,
                     org.apache.jackrabbit.spi.QValue[] values)
              throws RepositoryException
Throws:
RepositoryException


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.