|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.nodetype.NodeTypeRegistryImpl
public class NodeTypeRegistryImpl
A NodeTypeRegistry ...
| Method Summary | |
|---|---|
void |
addListener(NodeTypeRegistryListener listener)
Add a NodeTypeRegistryListener |
static NodeTypeRegistryImpl |
create(NodeTypeStorage storage,
NamespaceRegistry nsRegistry)
Create a new NodeTypeRegistry |
void |
dispose()
Clears all caches. |
EffectiveNodeType |
getEffectiveNodeType(Name ntName)
Build the EffectiveNodeType from the given
NodeType name. |
EffectiveNodeType |
getEffectiveNodeType(Name[] ntNames)
Build the EffectiveNodeType from the given array of
NodeType names. |
EffectiveNodeType |
getEffectiveNodeType(Name[] ntNames,
java.util.Map<Name,QNodeTypeDefinition> ntdMap)
|
EffectiveNodeType |
getEffectiveNodeType(QNodeTypeDefinition ntd,
java.util.Map<Name,QNodeTypeDefinition> ntdMap)
Builds an effective node type representation from the given node type definition. |
QNodeTypeDefinition |
getNodeTypeDefinition(Name nodeTypeName)
Returns the node type definition of the node type with the given name. |
Name[] |
getRegisteredNodeTypes()
Returns the names of all registered node types. |
boolean |
isRegistered(Name nodeTypeName)
|
void |
registerNodeTypes(java.util.Collection<QNodeTypeDefinition> ntDefs,
boolean allowUpdate)
Registers the specified node type definitions. |
void |
removeListener(NodeTypeRegistryListener listener)
Remove a NodeTypeRegistryListener |
java.lang.String |
toString()
Returns the the state of this instance in a human readable format. |
void |
unregisterNodeTypes(java.util.Collection<Name> nodeTypeNames)
Unregisters a collection of node types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static NodeTypeRegistryImpl create(NodeTypeStorage storage,
NamespaceRegistry nsRegistry)
NodeTypeRegistry
- Parameters:
storage - nsRegistry -
- Returns:
NodeTypeRegistry object
public void dispose()
public void addListener(NodeTypeRegistryListener listener)
NodeTypeRegistryNodeTypeRegistryListener
addListener in interface NodeTypeRegistrylistener - the new listener to be informed on (un)registration
of node typesNodeTypeRegistry.addListener(NodeTypeRegistryListener)public void removeListener(NodeTypeRegistryListener listener)
NodeTypeRegistryNodeTypeRegistryListener
removeListener in interface NodeTypeRegistrylistener - an existing listenerNodeTypeRegistry.removeListener(NodeTypeRegistryListener)
public Name[] getRegisteredNodeTypes()
throws RepositoryException
NodeTypeRegistry
getRegisteredNodeTypes in interface NodeTypeRegistryRepositoryExceptionNodeTypeRegistry.getRegisteredNodeTypes()public boolean isRegistered(Name nodeTypeName)
isRegistered in interface NodeTypeRegistryNodeTypeRegistry.isRegistered(Name)
public void registerNodeTypes(java.util.Collection<QNodeTypeDefinition> ntDefs,
boolean allowUpdate)
throws NodeTypeExistsException,
InvalidNodeTypeDefinitionException,
RepositoryException
NodeTypeRegistryallowUpdate
is true existing node types will be updated, otherwise
an NodeTypeExistsException is thrown.
registerNodeTypes in interface NodeTypeRegistryNodeTypeExistsException
InvalidNodeTypeDefinitionException
RepositoryExceptionNodeTypeRegistry.registerNodeTypes(Collection, boolean)
public void unregisterNodeTypes(java.util.Collection<Name> nodeTypeNames)
throws NoSuchNodeTypeException,
RepositoryException
NodeTypeRegistry
unregisterNodeTypes in interface NodeTypeRegistrynodeTypeNames - a collection of Name objects denoting the
node types to be unregistered
NoSuchNodeTypeException - if any of the specified names does not
denote a registered node type.
RepositoryException - if another error occursNodeTypeRegistry.unregisterNodeTypes(Collection)
public QNodeTypeDefinition getNodeTypeDefinition(Name nodeTypeName)
throws NoSuchNodeTypeException
NodeTypeRegistry
getNodeTypeDefinition in interface NodeTypeRegistrynodeTypeName - name of node type whose definition should be returned.
NoSuchNodeTypeException - if a node type with the given name
does not existNodeTypeRegistry.getNodeTypeDefinition(Name)
public EffectiveNodeType getEffectiveNodeType(Name ntName)
throws NoSuchNodeTypeException
EffectiveNodeTypeProviderEffectiveNodeType from the given
NodeType name.
getEffectiveNodeType in interface EffectiveNodeTypeProviderNoSuchNodeTypeExceptionEffectiveNodeTypeProvider.getEffectiveNodeType(Name)
public EffectiveNodeType getEffectiveNodeType(Name[] ntNames)
throws ConstraintViolationException,
NoSuchNodeTypeException
EffectiveNodeTypeProviderEffectiveNodeType from the given array of
NodeType names.
getEffectiveNodeType in interface EffectiveNodeTypeProviderConstraintViolationException
NoSuchNodeTypeExceptionEffectiveNodeTypeProvider.getEffectiveNodeType(Name[])
public EffectiveNodeType getEffectiveNodeType(Name[] ntNames,
java.util.Map<Name,QNodeTypeDefinition> ntdMap)
throws ConstraintViolationException,
NoSuchNodeTypeException
getEffectiveNodeType in interface EffectiveNodeTypeProviderConstraintViolationException
NoSuchNodeTypeExceptionEffectiveNodeTypeProvider#getEffectiveNodeType(Name[], Map)
public EffectiveNodeType getEffectiveNodeType(QNodeTypeDefinition ntd,
java.util.Map<Name,QNodeTypeDefinition> ntdMap)
throws ConstraintViolationException,
NoSuchNodeTypeException
EffectiveNodeTypeProvider
getEffectiveNodeType in interface EffectiveNodeTypeProviderConstraintViolationException
NoSuchNodeTypeExceptionEffectiveNodeTypeProvider#getEffectiveNodeType(QNodeTypeDefinition, Map) public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||