public interface NodeTypeDataManager
Modifier and Type | Field and Description |
---|---|
static String |
TEXT_X_JCR_CND
The experimental content type for the compact node type definition files.
|
static String |
TEXT_XML
The standard XML content type to be used with XML-formatted node type
streams.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(NodeTypeManagerListener listener) |
NodeDefinitionData[] |
getAllChildNodeDefinitions(InternalQName... nodeTypeNames) |
List<NodeTypeData> |
getAllNodeTypes()
Return all NodeTypes.
|
PropertyDefinitionData[] |
getAllPropertyDefinitions(InternalQName... nodeTypeNames) |
NodeDefinitionData |
getChildNodeDefinition(InternalQName nodeName,
InternalQName... nodeTypeNames) |
NodeDefinitionData |
getChildNodeDefinition(InternalQName nodeName,
InternalQName primaryNodeType,
InternalQName[] mixinTypes) |
NodeDefinitionData |
getChildNodeDefinition(InternalQName nodeName,
InternalQName nodeType,
InternalQName parentNodeType,
InternalQName[] parentMixinTypes)
Found node definition based on node name and node type.
|
Set<InternalQName> |
getDeclaredSubtypes(InternalQName nodeTypeName)
Returns the direct subtypes of this node type in the node type
inheritance hierarchy, that is, those which actually declared this node
type in their list of supertypes.
|
List<ItemDefinitionData> |
getManadatoryItemDefs(InternalQName primaryNodeType,
InternalQName[] mixinTypes) |
NodeTypeData |
getNodeType(InternalQName typeName) |
PropertyDefinitionDatas |
getPropertyDefinitions(InternalQName propertyName,
InternalQName... nodeTypeNames) |
PropertyDefinitionDatas |
getPropertyDefinitions(InternalQName propertyName,
InternalQName primaryNodeType,
InternalQName[] mixinTypes) |
Set<InternalQName> |
getSubtypes(InternalQName nodeTypeName)
Returns all subtypes of this node type in the node type inheritance
hierarchy.
|
Set<InternalQName> |
getSupertypes(InternalQName nodeTypeName)
Returns all supertypes of this node type in the node type inheritance
hierarchy.
|
boolean |
isChildNodePrimaryTypeAllowed(InternalQName childNodeName,
InternalQName childNodeTypeName,
InternalQName parentNodeType,
InternalQName[] parentMixinNames) |
boolean |
isNodeType(InternalQName testTypeName,
InternalQName... typeNames) |
boolean |
isNodeType(InternalQName testTypeName,
InternalQName primaryNodeType,
InternalQName[] mixinNames) |
boolean |
isOrderableChildNodesSupported(InternalQName primaryNodeType,
InternalQName[] mixinTypes) |
List<NodeTypeData> |
registerNodeTypes(InputStream xml,
int alreadyExistsBehaviour,
String contentType) |
List<NodeTypeData> |
registerNodeTypes(List<NodeTypeValue> ntValues,
int alreadyExistsBehaviour) |
void |
removeListener(NodeTypeManagerListener listener) |
PlainChangesLog |
setPrimaryType(org.exoplatform.services.jcr.datamodel.NodeData nodeData,
InternalQName nodeTypeName)
Changes the primary node type of this node to nodeTypeName.
|
void |
unregisterNodeType(InternalQName nodeTypeName) |
PlainChangesLog |
updateNodeType(NodeTypeData ancestorDefinition,
NodeTypeData recipientDefinition,
Map<InternalQName,NodeTypeData> volatileNodeTypes) |
static final String TEXT_XML
static final String TEXT_X_JCR_CND
Set<InternalQName> getSupertypes(InternalQName nodeTypeName)
nt:base
, this list
will always include at least nt:base
. For mixin types, there
is no required supertype.NodeDefinitionData[] getAllChildNodeDefinitions(InternalQName... nodeTypeNames)
nodeTypeNames
- List<NodeTypeData> getAllNodeTypes()
javax.jcr.RepositoryException
- in case of errorPropertyDefinitionData[] getAllPropertyDefinitions(InternalQName... nodeTypeNames)
nodeTypeNames
- NodeDefinitionData getChildNodeDefinition(InternalQName nodeName, InternalQName... nodeTypeNames) throws javax.jcr.RepositoryException
nodeName
- nodeTypeNames
- javax.jcr.RepositoryException
NodeDefinitionData getChildNodeDefinition(InternalQName nodeName, InternalQName primaryNodeType, InternalQName[] mixinTypes) throws javax.jcr.RepositoryException
nodeName
- primaryNodeType
- mixinTypes
- javax.jcr.RepositoryException
NodeDefinitionData getChildNodeDefinition(InternalQName nodeName, InternalQName nodeType, InternalQName parentNodeType, InternalQName[] parentMixinTypes) throws javax.jcr.RepositoryException
nodeName
- parentNodeType
- parentMixinTypes
- javax.jcr.RepositoryException
Set<InternalQName> getDeclaredSubtypes(InternalQName nodeTypeName)
List<ItemDefinitionData> getManadatoryItemDefs(InternalQName primaryNodeType, InternalQName[] mixinTypes) throws javax.jcr.RepositoryException
primaryNodeType
- mixinTypes
- javax.jcr.RepositoryException
NodeTypeData getNodeType(InternalQName typeName)
typeName
- PropertyDefinitionDatas getPropertyDefinitions(InternalQName propertyName, InternalQName... nodeTypeNames) throws javax.jcr.RepositoryException
propertyName
- nodeTypeNames
- javax.jcr.RepositoryException
PropertyDefinitionDatas getPropertyDefinitions(InternalQName propertyName, InternalQName primaryNodeType, InternalQName[] mixinTypes) throws javax.jcr.RepositoryException
propertyName
- primaryNodeType
- mixinTypes
- javax.jcr.RepositoryException
Set<InternalQName> getSubtypes(InternalQName nodeTypeName)
nodeTypeName
- boolean isChildNodePrimaryTypeAllowed(InternalQName childNodeName, InternalQName childNodeTypeName, InternalQName parentNodeType, InternalQName[] parentMixinNames) throws javax.jcr.RepositoryException
childNodeName
- childNodeTypeName
- parentNodeType
- parentMixinNames
- true
if node with childNodeName
as name and childNodeTypeName
as node type
allowed as child, false
otherwisejavax.jcr.RepositoryException
boolean isNodeType(InternalQName testTypeName, InternalQName... typeNames)
testTypeName
- typeNames
- true
if the node type name to test is of type
of one of the given node type names, false
otherwiseboolean isNodeType(InternalQName testTypeName, InternalQName primaryNodeType, InternalQName[] mixinNames)
testTypeName
- primaryNodeType
- mixinNames
- true
if the node type name to test is of type
of one of the given node type names, false
otherwiseboolean isOrderableChildNodesSupported(InternalQName primaryNodeType, InternalQName[] mixinTypes) throws javax.jcr.RepositoryException
primaryNodeType
- mixinTypes
- true
if orderable child nodes is supported, false
otherwisejavax.jcr.RepositoryException
List<NodeTypeData> registerNodeTypes(InputStream xml, int alreadyExistsBehaviour, String contentType) throws javax.jcr.RepositoryException
xml
- alreadyExistsBehaviour
- javax.jcr.RepositoryException
List<NodeTypeData> registerNodeTypes(List<NodeTypeValue> ntValues, int alreadyExistsBehaviour) throws javax.jcr.RepositoryException
ntValues
- alreadyExistsBehaviour
- javax.jcr.RepositoryException
PlainChangesLog setPrimaryType(org.exoplatform.services.jcr.datamodel.NodeData nodeData, InternalQName nodeTypeName) throws javax.jcr.RepositoryException
nodeData
- nodeTypeName
- javax.jcr.RepositoryException
void unregisterNodeType(InternalQName nodeTypeName) throws javax.jcr.RepositoryException
nodeTypeName
- javax.jcr.RepositoryException
PlainChangesLog updateNodeType(NodeTypeData ancestorDefinition, NodeTypeData recipientDefinition, Map<InternalQName,NodeTypeData> volatileNodeTypes) throws javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
void addListener(NodeTypeManagerListener listener)
void removeListener(NodeTypeManagerListener listener)
Copyright © 2003-2018 eXo Platform SAS. All Rights Reserved.