org.apache.jackrabbit.jcr2spi.nodetype
Interface NodeTypeStorage


public interface NodeTypeStorage

NodeTypeStorage...


Method Summary
 java.util.Iterator getAllDefinitions()
          Returns an Iterator over all node type definitions registered.
 java.util.Iterator getDefinitions(Name[] nodeTypeNames)
          Returns the QNodeTypeDefinitions for the given node type names.
 void registerNodeTypes(QNodeTypeDefinition[] nodeTypeDefs)
           
 void reregisterNodeTypes(QNodeTypeDefinition[] nodeTypeDefs)
           
 void unregisterNodeTypes(Name[] nodeTypeNames)
           
 

Method Detail

getAllDefinitions

java.util.Iterator getAllDefinitions()
                                     throws javax.jcr.RepositoryException
Returns an Iterator over all node type definitions registered.

Returns:
Throws:
javax.jcr.RepositoryException

getDefinitions

java.util.Iterator getDefinitions(Name[] nodeTypeNames)
                                  throws javax.jcr.nodetype.NoSuchNodeTypeException,
                                         javax.jcr.RepositoryException
Returns the QNodeTypeDefinitions for the given node type names. The implementation is free to return additional definitions e.g. dependencies.

Parameters:
nodeTypeNames -
Returns:
Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException

registerNodeTypes

void registerNodeTypes(QNodeTypeDefinition[] nodeTypeDefs)
                       throws javax.jcr.nodetype.NoSuchNodeTypeException,
                              javax.jcr.RepositoryException
Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException

reregisterNodeTypes

void reregisterNodeTypes(QNodeTypeDefinition[] nodeTypeDefs)
                         throws javax.jcr.nodetype.NoSuchNodeTypeException,
                                javax.jcr.RepositoryException
Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException

unregisterNodeTypes

void unregisterNodeTypes(Name[] nodeTypeNames)
                         throws javax.jcr.nodetype.NoSuchNodeTypeException,
                                javax.jcr.RepositoryException
Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.