|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.query.QueryHandlerContext
public class QueryHandlerContext
Acts as an argument for the QueryHandler
to keep the interface
stable. This class provides access to the environment where the query
handler is running in.
Constructor Summary | |
---|---|
QueryHandlerContext(FileSystem fs,
SharedItemStateManager stateMgr,
PersistenceManager pm,
NodeId rootId,
NodeTypeRegistry ntRegistry,
NamespaceRegistryImpl nsRegistry,
QueryHandler parentHandler,
NodeId excludedNodeId)
Creates a new context instance. |
Method Summary | |
---|---|
void |
destroy()
Destroys this context and releases resources. |
NodeId |
getExcludedNodeId()
Returns the id of the node that should be excluded from indexing. |
FileSystem |
getFileSystem()
Returns the FileSystem instance this QueryHandler
may use to store its index. |
HierarchyManager |
getHierarchyManager()
Returns the hierarchy manager on top of the item state manager of this query handler context. |
ItemStateManager |
getItemStateManager()
Returns the persistent ItemStateManager
of the workspace this QueryHandler is based on. |
NamespaceRegistryImpl |
getNamespaceRegistry()
Returns the NamespaceRegistryImpl for this repository. |
NodeTypeRegistry |
getNodeTypeRegistry()
Returns the NodeTypeRegistry for this repository. |
QueryHandler |
getParentHandler()
Returns the parent query handler. |
PersistenceManager |
getPersistenceManager()
|
PropertyTypeRegistry |
getPropertyTypeRegistry()
Returns the PropertyTypeRegistry for this repository. |
NodeId |
getRootId()
Returns the id of the root node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryHandlerContext(FileSystem fs, SharedItemStateManager stateMgr, PersistenceManager pm, NodeId rootId, NodeTypeRegistry ntRegistry, NamespaceRegistryImpl nsRegistry, QueryHandler parentHandler, NodeId excludedNodeId)
fs
- a FileSystem
this QueryHandler
may use to store its index. If no
FileSystem
has been configured
fs
is null
.stateMgr
- provides persistent item states.pm
- the underlying persistence manager.rootId
- the id of the root node.ntRegistry
- the node type registry.nsRegistry
- the namespace registry.parentHandler
- the parent query handler or null
it
there is no parent handler.excludedNodeId
- id of the node that should be excluded from
indexing. Any descendant of that node is also
excluded from indexing.Method Detail |
---|
public ItemStateManager getItemStateManager()
ItemStateManager
of the workspace this QueryHandler
is based on.
ItemStateManager
of the current
workspace.public HierarchyManager getHierarchyManager()
public PersistenceManager getPersistenceManager()
public FileSystem getFileSystem()
FileSystem
instance this QueryHandler
may use to store its index. If no FileSystem
has been
configured this method returns null
.
FileSystem
instance for this
QueryHandler
.public NodeId getRootId()
public PropertyTypeRegistry getPropertyTypeRegistry()
public NodeTypeRegistry getNodeTypeRegistry()
public NamespaceRegistryImpl getNamespaceRegistry()
public QueryHandler getParentHandler()
public NodeId getExcludedNodeId()
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |