public interface ExtendedNodeTypeManager
extends javax.jcr.nodetype.NodeTypeManager
Modifier and Type | Field and Description |
---|---|
static int |
FAIL_IF_EXISTS |
static int |
IGNORE_IF_EXISTS |
static int |
REPLACE_IF_EXISTS |
Modifier and Type | Method and Description |
---|---|
javax.jcr.nodetype.NodeType |
findNodeType(InternalQName qname)
Return NodeType for a given InternalQName.
|
NodeTypeDataManager |
getNodeTypesHolder()
Gives the
NodeTypeManager |
NodeTypeValue |
getNodeTypeValue(String ntName)
Return
NodeTypeValue for a given nodetype name. |
javax.jcr.nodetype.NodeType |
registerNodeType(NodeTypeValue nodeTypeValue,
int alreadyExistsBehaviour)
Registers node type using value object.
|
javax.jcr.nodetype.NodeTypeIterator |
registerNodeTypes(InputStream xml,
int alreadyExistsBehaviour,
String contentType)
Registers all node types using XML binding value objects from xml stream.
|
javax.jcr.nodetype.NodeTypeIterator |
registerNodeTypes(List<NodeTypeValue> values,
int alreadyExistsBehaviour)
Registers or updates the specified
Collection of
NodeTypeValue objects. |
void |
unregisterNodeType(String name)
Unregisters the specified node type.
|
void |
unregisterNodeTypes(String[] names)
Unregisters the specified set of node types.
Used to unregister a set of node types with mutual dependencies. |
static final int IGNORE_IF_EXISTS
static final int FAIL_IF_EXISTS
static final int REPLACE_IF_EXISTS
javax.jcr.nodetype.NodeType findNodeType(InternalQName qname) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException
qname
- nodetype namejavax.jcr.nodetype.NoSuchNodeTypeException
- if no nodetype found with the namejavax.jcr.RepositoryException
- Repository errorjavax.jcr.nodetype.NodeType registerNodeType(NodeTypeValue nodeTypeValue, int alreadyExistsBehaviour) throws javax.jcr.RepositoryException
nodeTypeValue
- alreadyExistsBehaviour
- javax.jcr.RepositoryException
javax.jcr.nodetype.NodeTypeIterator registerNodeTypes(InputStream xml, int alreadyExistsBehaviour, String contentType) throws javax.jcr.RepositoryException
xml
- a InputStreamalreadyExistsBehaviour
- a intjavax.jcr.RepositoryException
NodeTypeDataManager getNodeTypesHolder() throws javax.jcr.RepositoryException
NodeTypeManager
javax.jcr.RepositoryException
- if another error occurs.NodeTypeValue getNodeTypeValue(String ntName) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException
NodeTypeValue
for a given nodetype name. Used for
nodetype update. Value can be edited and registered via
registerNodeType(NodeTypeValue nodeTypeValue, int alreadyExistsBehaviour)
.ntName
- nodetype namejavax.jcr.nodetype.NoSuchNodeTypeException
- if no nodetype found with the namejavax.jcr.RepositoryException
- Repository errorjavax.jcr.nodetype.NodeTypeIterator registerNodeTypes(List<NodeTypeValue> values, int alreadyExistsBehaviour) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
Collection
of
NodeTypeValue
objects. This method is used to register or
update a set of node types with mutual dependencies. Returns an iterator
over the resulting NodeType
objects. InvalidNodeTypeDefinitionException
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.values
- a collection of NodeTypeValue
salreadyExistsBehaviour
- a intjavax.jcr.UnsupportedRepositoryOperationException
- if this implementation does
not support node type registration.javax.jcr.RepositoryException
- if another error occurs.void unregisterNodeType(String name) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException
name
- a String
.javax.jcr.UnsupportedRepositoryOperationException
- if this implementation does
not support node type registration.javax.jcr.nodetype.NoSuchNodeTypeException
- if no registered node type exists with the
specified name.javax.jcr.RepositoryException
- if another error occurs.void unregisterNodeTypes(String[] names) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException
names
- a String
arrayjavax.jcr.UnsupportedRepositoryOperationException
- if this implementation does
not support node type registration.javax.jcr.nodetype.NoSuchNodeTypeException
- if one of the names listed is not a
registered node type.javax.jcr.RepositoryException
- if another error occurs.Copyright © 2003–2019 eXo Platform SAS. All rights reserved.