Package org.apache.jackrabbit.api
Interface JackrabbitNodeTypeManager
- All Superinterfaces:
NodeTypeManager
Deprecated.
The Jackrabbit node type manager interface. This interface contains the
Jackrabbit-specific extensions to the JCR
NodeTypeManager interface.
Currently Jackrabbit provides a mechanism to register new node types, but it is not possible to modify or remove existing node types.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNodeType(String name) Deprecated.Checks if a node type with the given name is registered.NodeType[]registerNodeTypes(InputStream in, String contentType) Deprecated.Registers node types from the given input stream of the given type.NodeType[]Deprecated.Registers node types from the given node type XML stream.Methods inherited from interface javax.jcr.nodetype.NodeTypeManager
createNodeDefinitionTemplate, createNodeTypeTemplate, createNodeTypeTemplate, createPropertyDefinitionTemplate, getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes, registerNodeType, registerNodeTypes, unregisterNodeType, unregisterNodeTypes
-
Field Details
-
TEXT_XML
Deprecated.The standard XML content type to be used with XML-formatted node type streams.- See Also:
-
TEXT_X_JCR_CND
Deprecated.The experimental content type for the compact node type definition files.- See Also:
-
-
Method Details
-
registerNodeTypes
Deprecated.Registers node types from the given node type XML stream.- Parameters:
in- node type XML stream- Returns:
- registered node types
- Throws:
SAXException- if the XML stream could not be read or parsedRepositoryException- if the node types are invalid or another repository error occurs
-
registerNodeTypes
NodeType[] registerNodeTypes(InputStream in, String contentType) throws IOException, RepositoryException Deprecated.Registers node types from the given input stream of the given type.- Parameters:
in- node type streamcontentType- type of the input stream- Returns:
- registered node types
- Throws:
IOException- if the input stream could not be read or parsedRepositoryException- if the node types are invalid or another repository error occurs
-
hasNodeType
Deprecated.Checks if a node type with the given name is registered.- Specified by:
hasNodeTypein interfaceNodeTypeManager- Parameters:
name- node type name- Returns:
trueif the named node type is registeredfalseotherwise- Throws:
RepositoryException- if an error occurs
-
NodeTypeManagerinstead.