Class AbstractNodeTypeManager
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.AbstractNodeTypeManager
-
- All Implemented Interfaces:
NodeTypeManager
- Direct Known Subclasses:
NodeTypeManagerImpl,NodeTypeManagerImpl
public abstract class AbstractNodeTypeManager extends Object implements NodeTypeManager
AbstractNodeTypeManagercovers creation of node type templates and definition templates.
-
-
Constructor Summary
Constructors Constructor Description AbstractNodeTypeManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description NodeDefinitionTemplatecreateNodeDefinitionTemplate()NodeTypeTemplatecreateNodeTypeTemplate()NodeTypeTemplatecreateNodeTypeTemplate(NodeTypeDefinition ntd)PropertyDefinitionTemplatecreatePropertyDefinitionTemplate()abstract NamePathResolvergetNamePathResolver()Returns the NamePathResolver used to validate JCR names.abstract NodeDefinitiongetNodeDefinition(QNodeDefinition nd)Retrieve theNodeDefinitionfor the givenQNodeDefinition.abstract NodeTypegetNodeType(Name ntName)Return the node type with the specifiedntName.abstract PropertyDefinitiongetPropertyDefinition(QPropertyDefinition pd)Retrieve thePropertyDefinitionfor the givenQPropertyDefinition.NodeTyperegisterNodeType(NodeTypeDefinition ntd, boolean allowUpdate)voidunregisterNodeType(String name)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.nodetype.NodeTypeManager
getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes, hasNodeType, registerNodeTypes, unregisterNodeTypes
-
-
-
-
Method Detail
-
getNodeType
public abstract NodeType getNodeType(Name ntName) throws NoSuchNodeTypeException
Return the node type with the specifiedntName.- Parameters:
ntName- Name of the node type to be returned.- Returns:
- the node type with the specified
ntName. - Throws:
NoSuchNodeTypeException- If no such node type exists.
-
getNodeDefinition
public abstract NodeDefinition getNodeDefinition(QNodeDefinition nd)
Retrieve theNodeDefinitionfor the givenQNodeDefinition.- Parameters:
nd- the QNodeDefinition.- Returns:
- the node definition.
-
getPropertyDefinition
public abstract PropertyDefinition getPropertyDefinition(QPropertyDefinition pd)
Retrieve thePropertyDefinitionfor the givenQPropertyDefinition.- Parameters:
pd- the QPropertyDefinition.- Returns:
- the property definition.
-
getNamePathResolver
public abstract NamePathResolver getNamePathResolver()
Returns the NamePathResolver used to validate JCR names.- Returns:
- the NamePathResolver used to convert JCR names/paths to internal onces and vice versa. The resolver may also be used to validate names passed to the various templates.
-
createNodeTypeTemplate
public NodeTypeTemplate createNodeTypeTemplate() throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
createNodeTypeTemplatein interfaceNodeTypeManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
NodeTypeManager.createNodeTypeTemplate()
-
createNodeTypeTemplate
public NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd) throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
createNodeTypeTemplatein interfaceNodeTypeManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
NodeTypeManager.createNodeTypeTemplate(NodeTypeDefinition)
-
createNodeDefinitionTemplate
public NodeDefinitionTemplate createNodeDefinitionTemplate() throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
createNodeDefinitionTemplatein interfaceNodeTypeManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
NodeTypeManager.createNodeDefinitionTemplate()
-
createPropertyDefinitionTemplate
public PropertyDefinitionTemplate createPropertyDefinitionTemplate() throws UnsupportedRepositoryOperationException, RepositoryException
- Specified by:
createPropertyDefinitionTemplatein interfaceNodeTypeManager- Throws:
UnsupportedRepositoryOperationExceptionRepositoryException- See Also:
NodeTypeManager.createPropertyDefinitionTemplate()
-
registerNodeType
public NodeType registerNodeType(NodeTypeDefinition ntd, boolean allowUpdate) throws RepositoryException
- Specified by:
registerNodeTypein interfaceNodeTypeManager- Throws:
RepositoryException- See Also:
NodeTypeManager.registerNodeType(NodeTypeDefinition, boolean)
-
unregisterNodeType
public void unregisterNodeType(String name) throws UnsupportedRepositoryOperationException, NoSuchNodeTypeException, RepositoryException
- Specified by:
unregisterNodeTypein interfaceNodeTypeManager- Throws:
UnsupportedRepositoryOperationExceptionNoSuchNodeTypeExceptionRepositoryException- See Also:
NodeTypeManager.unregisterNodeType(String)
-
-