NodeTypeManager
instead.public interface JackrabbitNodeTypeManager extends NodeTypeManager
NodeTypeManager
interface.
Currently Jackrabbit provides a mechanism to register new node types, but it is not possible to modify or remove existing node types.
Modifier and Type | Field and Description |
---|---|
static String |
TEXT_X_JCR_CND
Deprecated.
The experimental content type for the compact node type definition
files.
|
static String |
TEXT_XML
Deprecated.
The standard XML content type to be used with XML-formatted
node type streams.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNodeType(String name)
Deprecated.
Checks if a node type with the given name is registered.
|
NodeType[] |
registerNodeTypes(InputSource in)
Deprecated.
Registers node types from the given node type XML stream.
|
NodeType[] |
registerNodeTypes(InputStream in,
String contentType)
Deprecated.
Registers node types from the given input stream of the given type.
|
createNodeDefinitionTemplate, createNodeTypeTemplate, createNodeTypeTemplate, createPropertyDefinitionTemplate, getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes, registerNodeType, registerNodeTypes, unregisterNodeType, unregisterNodeTypes
static final String TEXT_XML
static final String TEXT_X_JCR_CND
NodeType[] registerNodeTypes(InputSource in) throws SAXException, RepositoryException
in
- node type XML streamSAXException
- if the XML stream could not be read or parsedRepositoryException
- if the node types are invalid or another
repository error occursNodeType[] registerNodeTypes(InputStream in, String contentType) throws IOException, RepositoryException
in
- node type streamcontentType
- type of the input streamIOException
- if the input stream could not be read or parsedRepositoryException
- if the node types are invalid or another
repository error occursboolean hasNodeType(String name) throws RepositoryException
hasNodeType
in interface NodeTypeManager
name
- node type nametrue
if the named node type is registered
false
otherwiseRepositoryException
- if an error occursCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.