|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.nodetype.NodeTypeCache
public class NodeTypeCache
NodeTypeCache implements a cache for QNodeTypeDefinitions
on a userId basis.
| Method Summary | |
|---|---|
java.util.Iterator<QNodeTypeDefinition> |
getAllDefinitions(NodeTypeStorage storage)
Returns an Iterator over all node type definitions registered. |
java.util.Iterator<QNodeTypeDefinition> |
getDefinitions(NodeTypeStorage storage,
Name[] nodeTypeNames)
Returns the QNodeTypeDefinitions for the given node type
names. |
static NodeTypeCache |
getInstance(RepositoryService service,
java.lang.String userId)
|
void |
registerNodeTypes(NodeTypeStorage storage,
QNodeTypeDefinition[] nodeTypeDefs,
boolean allowUpdate)
|
void |
unregisterNodeTypes(NodeTypeStorage storage,
Name[] nodeTypeNames)
|
NodeTypeStorage |
wrap(NodeTypeStorage storage)
Wraps this NodeTypeCache around the passed
storage and exposes itself again as a
NodeTypeStorage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NodeTypeCache getInstance(RepositoryService service,
java.lang.String userId)
service - the repository service.userId - the userId. If null this method will return a
new cache instance for each such call.
NodeTypeCache instance for the given
service and userId.
public java.util.Iterator<QNodeTypeDefinition> getAllDefinitions(NodeTypeStorage storage)
throws RepositoryException
RepositoryException
public java.util.Iterator<QNodeTypeDefinition> getDefinitions(NodeTypeStorage storage,
Name[] nodeTypeNames)
throws NoSuchNodeTypeException,
RepositoryException
QNodeTypeDefinitions for the given node type
names. The implementation is free to return additional definitions e.g.
dependencies.
nodeTypeNames -
NoSuchNodeTypeException
RepositoryException
public void registerNodeTypes(NodeTypeStorage storage,
QNodeTypeDefinition[] nodeTypeDefs,
boolean allowUpdate)
throws RepositoryException
RepositoryException
public void unregisterNodeTypes(NodeTypeStorage storage,
Name[] nodeTypeNames)
throws NoSuchNodeTypeException,
RepositoryException
NoSuchNodeTypeException
RepositoryExceptionpublic NodeTypeStorage wrap(NodeTypeStorage storage)
NodeTypeCache around the passed
storage and exposes itself again as a
NodeTypeStorage.
storage - the node type storage to wrap.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||