Class ConsolidatingChangeLog

    • Constructor Summary

      Constructors 
      Constructor Description
      ConsolidatingChangeLog()
      Create a new instance of a consolidating change log.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addNode​(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name nodeName, org.apache.jackrabbit.spi.Name nodetypeName, String uuid)  
      void addOperation​(ConsolidatingChangeLog.CancelableOperation op)
      Determines the cancellation behavior from the list of operations and the current operation op: When the current operation is cancelled by the last operation, the list of operations is not modified. When the current operation and the last operation cancel each other, the last operation is removed from the list of operations. When the last operation is cancelled by this operation, the last operation is removed from the list of operations and determination of cancellation starts from scratch. Otherwise add the current operation to the list of operations.
      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)  
      protected static org.apache.jackrabbit.spi.Path getPath​(org.apache.jackrabbit.spi.ItemId itemId)
      Determine the Path from an ItemId.
      protected static org.apache.jackrabbit.spi.Path getPath​(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name name)
      Create a Path from the NodeId of a parent and the Name of a child.
      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 setTree​(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Tree contentTree)  
      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)  
    • Constructor Detail

      • ConsolidatingChangeLog

        public ConsolidatingChangeLog()
        Create a new instance of a consolidating change log.
    • Method Detail

      • getPath

        protected static org.apache.jackrabbit.spi.Path getPath​(org.apache.jackrabbit.spi.NodeId parentId,
                                                                org.apache.jackrabbit.spi.Name name)
                                                         throws RepositoryException
        Create a Path from the NodeId of a parent and the Name of a child.
        Parameters:
        parentId - node id of the parent
        name - name of the child
        Returns:
        the path of the item name or null if parentId's path is not absolute
        Throws:
        RepositoryException
      • getPath

        protected static org.apache.jackrabbit.spi.Path getPath​(org.apache.jackrabbit.spi.ItemId itemId)
        Determine the Path from an ItemId.
        Parameters:
        itemId -
        Returns:
        path of the item itemId or null if itemId's path is not absolute
      • 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
      • 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
      • setPrimaryType

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