|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeTypeManager
An extension of JCR 2.0's NodeTypeManager
interface, with methods to support registering node type
definitions from CND files.
Method Summary | |
---|---|
void |
registerNodeTypes(File file,
boolean allowUpdate)
Read the supplied file containing node type definitions in the standard JCR 2.0 Compact Node Definition (CND) format, and register the node types with this repository. |
void |
registerNodeTypes(InputStream stream,
boolean allowUpdate)
Read the supplied stream containing node type definitions in the standard JCR 2.0 Compact Node Definition (CND) format, and register the node types with this repository. |
void |
registerNodeTypes(URL url,
boolean allowUpdate)
Read the supplied stream containing node type definitions in the standard JCR 2.0 Compact Node Definition (CND) format, and register the node types with this repository. |
Methods inherited from interface javax.jcr.nodetype.NodeTypeManager |
---|
createNodeDefinitionTemplate, createNodeTypeTemplate, createNodeTypeTemplate, createPropertyDefinitionTemplate, getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes, hasNodeType, registerNodeType, registerNodeTypes, unregisterNodeType, unregisterNodeTypes |
Method Detail |
---|
void registerNodeTypes(InputStream stream, boolean allowUpdate) throws IOException, InvalidNodeTypeDefinitionException, NodeTypeExistsException, UnsupportedRepositoryOperationException, RepositoryException
stream
- the stream containing the node type definitions in CND formatallowUpdate
- a boolean stating whether existing node type definitions should be modified/updated
IOException
- if there is a problem reading from the supplied stream
InvalidNodeTypeDefinitionException
- if the NodeTypeDefinition
is invalid.
NodeTypeExistsException
- if allowUpdate
is false
and the NodeTypeDefinition
specifies a node type name that is already registered.
UnsupportedRepositoryOperationException
- if this implementation does not support node type registration.
RepositoryException
- if another error occurs.void registerNodeTypes(File file, boolean allowUpdate) throws IOException, RepositoryException
file
- the file containing the node typesallowUpdate
- a boolean stating whether existing node type definitions should be modified/updated
IOException
- if there is a problem reading from the supplied stream
InvalidNodeTypeDefinitionException
- if the NodeTypeDefinition
is invalid.
NodeTypeExistsException
- if allowUpdate
is false
and the NodeTypeDefinition
specifies a node type name that is already registered.
UnsupportedRepositoryOperationException
- if this implementation does not support node type registration.
RepositoryException
- if another error occurs.void registerNodeTypes(URL url, boolean allowUpdate) throws IOException, RepositoryException
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/updated
IOException
- if there is a problem reading from the supplied stream
InvalidNodeTypeDefinitionException
- if the NodeTypeDefinition
is invalid.
NodeTypeExistsException
- if allowUpdate
is false
and the NodeTypeDefinition
specifies a node type name that is already registered.
UnsupportedRepositoryOperationException
- if this implementation does not support node type registration.
RepositoryException
- if another error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |