Interface ItemStateFactory

    • Method Detail

      • createNodeState

        NodeState createNodeState​(org.apache.jackrabbit.spi.NodeId nodeId,
                                  NodeEntry entry)
                           throws ItemNotFoundException,
                                  RepositoryException
        Creates the child NodeState with the given nodeId.
        Parameters:
        nodeId - the id of the NodeState to create.
        entry - the HierarchyEntry the new state should be attached to.
        Returns:
        the created NodeState.
        Throws:
        ItemNotFoundException - if there is no such NodeState.
        RepositoryException - if an error occurs while retrieving the NodeState.
      • createDeepNodeState

        NodeState createDeepNodeState​(org.apache.jackrabbit.spi.NodeId nodeId,
                                      NodeEntry anyParent)
                               throws ItemNotFoundException,
                                      RepositoryException
        Tries to retrieve the NodeState with the given NodeId and if the state exists, fills in the NodeEntries missing between the last known NodeEntry marked by anyParent.
        Parameters:
        nodeId -
        anyParent -
        Returns:
        the created NodeState.
        Throws:
        ItemNotFoundException - if there is no such NodeState.
        RepositoryException - if an error occurs while retrieving the NodeState.
      • createPropertyState

        PropertyState createPropertyState​(org.apache.jackrabbit.spi.PropertyId propertyId,
                                          PropertyEntry entry)
                                   throws ItemNotFoundException,
                                          RepositoryException
        Creates the PropertyState with the given propertyId.
        Parameters:
        propertyId - the id of the PropertyState to create.
        entry - the HierarchyEntry the new state should be attached to.
        Returns:
        the created PropertyState.
        Throws:
        ItemNotFoundException - if there is no such PropertyState.
        RepositoryException - if an error occurs while retrieving the PropertyState.
      • createDeepPropertyState

        PropertyState createDeepPropertyState​(org.apache.jackrabbit.spi.PropertyId propertyId,
                                              NodeEntry anyParent)
                                       throws ItemNotFoundException,
                                              RepositoryException
        Tries to retrieve the PropertyState with the given PropertyId and if the state exists, fills in the HierarchyEntries missing between the last known NodeEntry marked by anyParent.
        Parameters:
        propertyId -
        anyParent -
        Returns:
        Throws:
        ItemNotFoundException - if there is no such NodeState.
        RepositoryException - if an error occurs while retrieving the NodeState.
      • getNodeReferences

        Iterator<org.apache.jackrabbit.spi.PropertyId> getNodeReferences​(NodeState nodeState,
                                                                         org.apache.jackrabbit.spi.Name propertyName,
                                                                         boolean weak)
        Returns the identifiers of all reference properties that point to the given node.
        Parameters:
        nodeState - reference target
        propertyName -
        weak - Boolean flag indicating whether weak references should be returned or not.
        Returns:
        reference property identifiers
      • addCreationListener

        void addCreationListener​(ItemStateCreationListener listener)
        Adds the given ItemStateCreationListener.
        Parameters:
        listener -
      • removeCreationListener

        void removeCreationListener​(ItemStateCreationListener listener)
        Removes the given ItemStateCreationListener.
        Parameters:
        listener -