public abstract class ReadWriteNodeTypeManager extends ReadOnlyNodeTypeManager
ReadWriteNodeTypeManager extends the ReadOnlyNodeTypeManager
with support for operations that modify node types.
registerNodeType(NodeTypeDefinition, boolean)registerNodeTypes(NodeTypeDefinition[], boolean)unregisterNodeType(String)unregisterNodeTypes(String[])refresh() callback
to e.g. inform an associated session that it should refresh to make the
changes visible.
Subclass responsibility is to provide an implementation of
ReadOnlyNodeTypeManager.getTypes() for read only access to the tree where node types are
stored in content and getWriteRoot() for write access to the
repository in order to modify node types stored in content. A subclass may
also want to override the default implementation of
ReadOnlyNodeTypeManager for the following methods:
| Constructor and Description |
|---|
ReadWriteNodeTypeManager() |
| Modifier and Type | Method and Description |
|---|---|
NodeDefinitionTemplate |
createNodeDefinitionTemplate() |
NodeTypeTemplate |
createNodeTypeTemplate() |
NodeTypeTemplate |
createNodeTypeTemplate(NodeTypeDefinition ntd) |
PropertyDefinitionTemplate |
createPropertyDefinitionTemplate() |
NodeType |
registerNodeType(NodeTypeDefinition ntd,
boolean allowUpdate)
This implementation always throws a
UnsupportedRepositoryOperationException. |
NodeTypeIterator |
registerNodeTypes(NodeTypeDefinition[] ntds,
boolean allowUpdate)
This implementation always throws a
UnsupportedRepositoryOperationException. |
void |
unregisterNodeType(String name)
This implementation always throws a
UnsupportedRepositoryOperationException. |
void |
unregisterNodeTypes(String[] names)
This implementation always throws a
UnsupportedRepositoryOperationException. |
getAllNodeTypes, getDefinition, getDefinition, getDefinition, getEffectiveNodeType, getEffectiveNodeType, getInstance, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes, getRootDefinition, hasNodeType, isNodeType, isNodeType, isNodeTypeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNodeTypepublic NodeTypeTemplate createNodeTypeTemplate()
createNodeTypeTemplate in interface NodeTypeManagercreateNodeTypeTemplate in class ReadOnlyNodeTypeManagerpublic NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd) throws ConstraintViolationException
createNodeTypeTemplate in interface NodeTypeManagercreateNodeTypeTemplate in class ReadOnlyNodeTypeManagerConstraintViolationExceptionpublic NodeDefinitionTemplate createNodeDefinitionTemplate()
createNodeDefinitionTemplate in interface NodeTypeManagercreateNodeDefinitionTemplate in class ReadOnlyNodeTypeManagerpublic PropertyDefinitionTemplate createPropertyDefinitionTemplate()
createPropertyDefinitionTemplate in interface NodeTypeManagercreatePropertyDefinitionTemplate in class ReadOnlyNodeTypeManagerpublic NodeType registerNodeType(NodeTypeDefinition ntd, boolean allowUpdate) throws RepositoryException
ReadOnlyNodeTypeManagerUnsupportedRepositoryOperationException.registerNodeType in interface NodeTypeManagerregisterNodeType in class ReadOnlyNodeTypeManagerRepositoryExceptionpublic final NodeTypeIterator registerNodeTypes(NodeTypeDefinition[] ntds, boolean allowUpdate) throws RepositoryException
ReadOnlyNodeTypeManagerUnsupportedRepositoryOperationException.registerNodeTypes in interface NodeTypeManagerregisterNodeTypes in class ReadOnlyNodeTypeManagerRepositoryExceptionpublic void unregisterNodeType(String name) throws RepositoryException
ReadOnlyNodeTypeManagerUnsupportedRepositoryOperationException.unregisterNodeType in interface NodeTypeManagerunregisterNodeType in class ReadOnlyNodeTypeManagerRepositoryExceptionpublic void unregisterNodeTypes(String[] names) throws RepositoryException
ReadOnlyNodeTypeManagerUnsupportedRepositoryOperationException.unregisterNodeTypes in interface NodeTypeManagerunregisterNodeTypes in class ReadOnlyNodeTypeManagerRepositoryExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved