{@link #registerNodeType(NodeTypeDef)}
except that a collection of NodeTypeDef
s is registered instead of just one. This method can be used to register a set of node types that have dependencies on each other.
@param ntDefs a collection of NodeTypeDef objects
@throws InvalidNodeTypeDefException
@throws RepositoryException
NodeType
objects. The effect of the method is "all or nothing"; if an error occurs, no node types are registered or updated.
@param stream the stream containing the node type definitions in CND format
@param allowUpdate a boolean stating whether existing node type definitions should be modified/updated
@return the registered node types.
@throws IOException if there is a problem reading from the supplied stream
@throws InvalidNodeTypeDefinitionException if a NodeTypeDefinition
within the Collection
is invalid or if the Collection
contains an object of a type other than NodeTypeDefinition
.
@throws NodeTypeExistsException if allowUpdate
isfalse
and a NodeTypeDefinition
within the Collection
specifies a node type name that is already registered.
@throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
@throws RepositoryException if another error occurs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|