Class NodeTypeStorageImpl

    • Constructor Detail

      • NodeTypeStorageImpl

        public NodeTypeStorageImpl()
    • Method Detail

      • getAllDefinitions

        public java.util.Iterator<QNodeTypeDefinition> getAllDefinitions()
                                                                  throws javax.jcr.RepositoryException
        Description copied from interface: NodeTypeStorage
        Returns an Iterator over all node type definitions registered.
        Specified by:
        getAllDefinitions in interface NodeTypeStorage
        Returns:
        Throws:
        javax.jcr.RepositoryException
      • getDefinitions

        public java.util.Iterator<QNodeTypeDefinition> getDefinitions​(Name[] nodeTypeNames)
                                                               throws javax.jcr.nodetype.NoSuchNodeTypeException,
                                                                      javax.jcr.RepositoryException
        This implementation returns an iterator over all registered QNodeTypeDefinitions if nodeTypeNames is null. Returns the QNodeTypeDefinitions for the given node type names. The implementation is free to return additional definitions e.g. dependencies.
        Specified by:
        getDefinitions in interface NodeTypeStorage
        Returns:
        Throws:
        javax.jcr.nodetype.NoSuchNodeTypeException
        javax.jcr.RepositoryException
      • registerNodeTypes

        public void registerNodeTypes​(QNodeTypeDefinition[] nodeTypeDefs,
                                      boolean allowUpdate)
                               throws javax.jcr.RepositoryException
        Description copied from interface: NodeTypeStorage
        Add all QNodeTypeDefinitions provided to the store. If allowUpdate is true previously registered node QNodeTypeDefinitions will be overwritten.
        Specified by:
        registerNodeTypes in interface NodeTypeStorage
        Parameters:
        nodeTypeDefs - QNodeTypeDefinitions to add to the store
        allowUpdate - Whether to overwrite existing QNodeTypeDefinitions
        Throws:
        javax.jcr.RepositoryException
        javax.jcr.nodetype.NodeTypeExistsException - If allowUpdate is true and a QNodeTypeDefinitions of that name already exists. In this case, none of the provided QNodeTypeDefinitions is registered.
      • unregisterNodeTypes

        public void unregisterNodeTypes​(Name[] nodeTypeNames)
                                 throws javax.jcr.nodetype.NoSuchNodeTypeException,
                                        javax.jcr.RepositoryException
        Description copied from interface: NodeTypeStorage
        Remove all QNodeTypeDefinitions provided from the store.
        Specified by:
        unregisterNodeTypes in interface NodeTypeStorage
        Parameters:
        nodeTypeNames - QNodeTypeDefinitions to remove from the store
        Throws:
        javax.jcr.nodetype.NoSuchNodeTypeException - If any of the QNodeTypeDefinitions does not exist. In this case none of the provided is unregistered.
        javax.jcr.RepositoryException