public interface NodeTypeRepository extends ComponentPersister
Modifier and Type | Method and Description |
---|---|
void |
addNodeType(NodeTypeData nodeType,
Map<InternalQName,NodeTypeData> volatileNodeTypes)
Adds a new node type
|
NodeTypeRepository |
createCopy()
Gives a safe copy of the
NodeTypeRepository |
List<NodeTypeData> |
getAllNodeTypes()
Gives all the existing node types
|
Set<InternalQName> |
getDeclaredSubtypes(InternalQName nodeTypeName)
Gives all the declared super types of the given node type name
|
NodeDefinitionData |
getDefaultChildNodeDefinition(InternalQName nodeName,
InternalQName[] nodeTypeNames)
Gives the default child node definition corresponding to the given property name
and node type names
|
NodeTypeData |
getNodeType(InternalQName typeName)
Gives the node type data corresponding to the given node type name
|
PropertyDefinitionDatas |
getPropertyDefinitions(InternalQName propertyName,
InternalQName[] nodeTypeNames)
Gets the property definition corresponding to the given property name and node type names
|
Set<InternalQName> |
getSubtypes(InternalQName nodeTypeName)
Gives a set of all the node types that has the given node type name
as super type
|
Set<InternalQName> |
getSupertypes(InternalQName ntname)
Gives a set of all the super node types of the given node type name
|
boolean |
isNodeType(InternalQName testTypeName,
InternalQName primaryType)
Indicates whether a given node type name is of type of the given
primary type
|
boolean |
isNodeType(InternalQName testTypeName,
InternalQName[] typesNames)
Indicates whether a given node type name is of type of one of the given
node type names
|
void |
registerNodeType(List<NodeTypeData> nodeTypes,
NodeTypeDataManager nodeTypeDataManager,
String accessControlPolicy,
int alreadyExistsBehavior)
Registers new node types
|
void |
removeNodeType(NodeTypeData nodeType)
Removes a node type from memory
|
void |
unregisterNodeType(NodeTypeData nodeType)
Removes a node type from memory and persists the change
|
isStorageFilled
void addNodeType(NodeTypeData nodeType, Map<InternalQName,NodeTypeData> volatileNodeTypes) throws javax.jcr.RepositoryException
nodeType
- the node type data to addvolatileNodeTypes
- a map defining all the volatile node types needed to add the new
node typejavax.jcr.RepositoryException
- if any error occursNodeTypeRepository createCopy()
NodeTypeRepository
List<NodeTypeData> getAllNodeTypes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if any error occursSet<InternalQName> getDeclaredSubtypes(InternalQName nodeTypeName)
nodeTypeName
- the name of the node type for which we want the declared super typesjavax.jcr.RepositoryException
- if any error occursNodeDefinitionData getDefaultChildNodeDefinition(InternalQName nodeName, InternalQName[] nodeTypeNames) throws javax.jcr.RepositoryException
nodeName
- the name of the child node for which we want the definitionnodeTypeNames
- the node type names from which we need to find the child node definitionjavax.jcr.RepositoryException
- if any error occursNodeTypeData getNodeType(InternalQName typeName)
typeName
- the node type name to retrieveNodeTypeData
object representing the given node type namejavax.jcr.RepositoryException
- if any error occursPropertyDefinitionDatas getPropertyDefinitions(InternalQName propertyName, InternalQName[] nodeTypeNames) throws javax.jcr.RepositoryException
propertyName
- the name of the property for which we want the definitionnodeTypeNames
- the node type names from which we need to find the property definitionjavax.jcr.RepositoryException
- if any error occursSet<InternalQName> getSubtypes(InternalQName nodeTypeName)
nodeTypeName
- the name of the node type to checkSet<InternalQName> getSupertypes(InternalQName ntname)
ntname
- the name of the node type to checkboolean isNodeType(InternalQName testTypeName, InternalQName primaryType)
testTypeName
- the node type name to testprimaryType
- the primary node type to checktrue
if the node type name to test is of type
of the given primary node type, false
otherwiseboolean isNodeType(InternalQName testTypeName, InternalQName[] typesNames)
testTypeName
- the node type name to testtypesNames
- the node type names to checktrue
if the node type name to test is of type
of one of the given node type names, false
otherwisevoid removeNodeType(NodeTypeData nodeType)
nodeType
- the node type to removevoid unregisterNodeType(NodeTypeData nodeType) throws javax.jcr.RepositoryException
nodeType
- the node type to unregisterjavax.jcr.RepositoryException
- if an error occursvoid registerNodeType(List<NodeTypeData> nodeTypes, NodeTypeDataManager nodeTypeDataManager, String accessControlPolicy, int alreadyExistsBehavior) throws javax.jcr.RepositoryException
nodeTypes
- the list of node typesnodeTypeDataManager
- the node type data manageraccessControlPolicy
- the access control policyalreadyExistsBehavior
- the behavior to apply in case the node type already existsjavax.jcr.RepositoryException
- if an error occursCopyright © 2003-2018 eXo Platform SAS. All Rights Reserved.