Interface NodeTypeStorage

  • All Known Implementing Classes:
    NodeTypeStorageImpl

    public interface NodeTypeStorage
    NodeTypeStorage provides means for storing QNodeTypeDefinitions.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> getAllDefinitions()
      Returns an Iterator over all node type definitions registered.
      Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> getDefinitions​(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
      Returns the QNodeTypeDefinitions for the given node type names.
      void registerNodeTypes​(org.apache.jackrabbit.spi.QNodeTypeDefinition[] nodeTypeDefs, boolean allowUpdate)
      Add all QNodeTypeDefinitions provided to the store.
      void unregisterNodeTypes​(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
      Remove all QNodeTypeDefinitions provided from the store.
    • Method Detail

      • registerNodeTypes

        void registerNodeTypes​(org.apache.jackrabbit.spi.QNodeTypeDefinition[] nodeTypeDefs,
                               boolean allowUpdate)
                        throws RepositoryException,
                               NodeTypeExistsException
        Add all QNodeTypeDefinitions provided to the store. If allowUpdate is true previously registered node QNodeTypeDefinitions will be overwritten.
        Parameters:
        nodeTypeDefs - QNodeTypeDefinitions to add to the store
        allowUpdate - Whether to overwrite existing QNodeTypeDefinitions
        Throws:
        RepositoryException
        NodeTypeExistsException - If allowUpdate is true and a QNodeTypeDefinitions of that name already exists. In this case, none of the provided QNodeTypeDefinitions is registered.
      • unregisterNodeTypes

        void unregisterNodeTypes​(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
                          throws NoSuchNodeTypeException,
                                 RepositoryException
        Remove all QNodeTypeDefinitions provided from the store.
        Parameters:
        nodeTypeNames - QNodeTypeDefinitions to remove from the store
        Throws:
        RepositoryException
        NoSuchNodeTypeException - If any of the QNodeTypeDefinitions does not exist. In this case none of the provided is unregistered.