public interface NodeTypeManager extends NodeTypeManager
NodeTypeManager
interface, with methods to support registering node type
definitions from CND and Jackrabbit XML files.Modifier and Type | Method and Description |
---|---|
NodeTypeIterator |
registerNodeTypes(File file,
boolean allowUpdate)
Registers or updates the node type definitions per the Compact Node Definition
(CND) file given by the supplied file.
|
NodeTypeIterator |
registerNodeTypes(InputStream stream,
boolean allowUpdate)
Registers or updates the node type definitions per the Compact Node Definition
(CND) file given by the supplied stream.
|
NodeTypeIterator |
registerNodeTypes(URL url,
boolean allowUpdate)
Registers or updates the node type definitions per the Compact Node Definition
(CND) file given by the supplied URL.
|
createNodeDefinitionTemplate, createNodeTypeTemplate, createNodeTypeTemplate, createPropertyDefinitionTemplate, getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes, hasNodeType, registerNodeType, registerNodeTypes, unregisterNodeType, unregisterNodeTypes
NodeTypeIterator registerNodeTypes(InputStream stream, boolean allowUpdate) throws IOException, InvalidNodeTypeDefinitionException, NodeTypeExistsException, UnsupportedRepositoryOperationException, RepositoryException
NodeType
objects.
The effect of the method is "all or nothing"; if an error occurs, no node types are registered or updated.
stream
- the stream containing the node type definitions in CND formatallowUpdate
- a boolean stating whether existing node type definitions should be modified/updatedIOException
- if there is a problem reading from the supplied streamInvalidNodeTypeDefinitionException
- if a NodeTypeDefinition
within the Collection
is invalid or if the
Collection
contains an object of a type other than
NodeTypeDefinition
.NodeTypeExistsException
- if allowUpdate
is
false
and a NodeTypeDefinition
within the
Collection
specifies a node type name that is already
registered.UnsupportedRepositoryOperationException
- if this implementation
does not support node type registration.RepositoryException
- if another error occurs.NodeTypeIterator registerNodeTypes(File file, boolean allowUpdate) throws IOException, InvalidNodeTypeDefinitionException, NodeTypeExistsException, UnsupportedRepositoryOperationException, RepositoryException
NodeType
objects.
The effect of the method is "all or nothing"; if an error occurs, no node types are registered or updated.
file
- the file containing the node typesallowUpdate
- a boolean stating whether existing node type definitions should be modified/updatedIOException
- if there is a problem reading from the supplied streamInvalidNodeTypeDefinitionException
- if a NodeTypeDefinition
within the Collection
is invalid or if the
Collection
contains an object of a type other than
NodeTypeDefinition
.NodeTypeExistsException
- if allowUpdate
is
false
and a NodeTypeDefinition
within the
Collection
specifies a node type name that is already
registered.UnsupportedRepositoryOperationException
- if this implementation
does not support node type registration.RepositoryException
- if another error occurs.NodeTypeIterator registerNodeTypes(URL url, boolean allowUpdate) throws IOException, InvalidNodeTypeDefinitionException, NodeTypeExistsException, UnsupportedRepositoryOperationException, RepositoryException
NodeType
objects.
The effect of the method is "all or nothing"; if an error occurs, no node types are registered or updated.
url
- the URL that can be resolved to the file containing the node type definitions in CND formatallowUpdate
- a boolean stating whether existing node type definitions should be modified/updatedIOException
- if there is a problem reading from the supplied streamInvalidNodeTypeDefinitionException
- if a NodeTypeDefinition
within the Collection
is invalid or if the
Collection
contains an object of a type other than
NodeTypeDefinition
.NodeTypeExistsException
- if allowUpdate
is
false
and a NodeTypeDefinition
within the
Collection
specifies a node type name that is already
registered.UnsupportedRepositoryOperationException
- if this implementation
does not support node type registration.RepositoryException
- if another error occurs.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.