|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.nodetype.NodeTypeStorageImpl
public class NodeTypeStorageImpl
This implementation of NodeTypeStorage keeps a map of the registered QNodeTypeDefinition
in memory.
| Constructor Summary | |
|---|---|
NodeTypeStorageImpl()
|
|
| Method Summary | |
|---|---|
Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> |
getAllDefinitions()
Returns an Iterator over all node type definitions registered. |
Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> |
getDefinitions(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
This implementation returns an iterator over all registered QNodeTypeDefinitions if
nodeTypeNames is null. |
void |
registerNodeTypes(org.apache.jackrabbit.spi.QNodeTypeDefinition[] nodeTypeDefs,
boolean allowUpdate)
Add all QNodeTypeDefinitions provided to the store. |
void |
unregisterNodeTypes(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
Remove all QNodeTypeDefinitions provided from the store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeTypeStorageImpl()
| Method Detail |
|---|
public Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> getAllDefinitions()
throws RepositoryException
NodeTypeStorage
getAllDefinitions in interface NodeTypeStorageRepositoryException
public Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> getDefinitions(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
throws NoSuchNodeTypeException,
RepositoryException
QNodeTypeDefinitions if
nodeTypeNames is null.
Returns the QNodeTypeDefinitions for the given node type
names. The implementation is free to return additional definitions e.g.
dependencies.
getDefinitions in interface NodeTypeStorageNoSuchNodeTypeException
RepositoryException
public void registerNodeTypes(org.apache.jackrabbit.spi.QNodeTypeDefinition[] nodeTypeDefs,
boolean allowUpdate)
throws RepositoryException
NodeTypeStorageQNodeTypeDefinitions provided to the store. If allowUpdate is true
previously registered node QNodeTypeDefinitions will be overwritten.
registerNodeTypes in interface NodeTypeStoragenodeTypeDefs - QNodeTypeDefinitions to add to the storeallowUpdate - Whether to overwrite existing QNodeTypeDefinitions
RepositoryException
NodeTypeExistsException - If allowUpdate is true and a QNodeTypeDefinitions
of that name already exists. In this case, none of the provided QNodeTypeDefinitions is registered.
public void unregisterNodeTypes(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
throws NoSuchNodeTypeException,
RepositoryException
NodeTypeStorageQNodeTypeDefinitions provided from the store.
unregisterNodeTypes in interface NodeTypeStoragenodeTypeNames - QNodeTypeDefinitions to remove from the store
NoSuchNodeTypeException - If any of the QNodeTypeDefinitions does not exist. In this case
none of the provided is unregistered.
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||