public class QueryHandlerContext extends Object
QueryHandler
to keep the interface
stable. This class provides access to the environment where the query
handler is running in.Constructor and Description |
---|
QueryHandlerContext(String workspace,
RepositoryContext repositoryContext,
SharedItemStateManager stateMgr,
PersistenceManager pm,
NodeId rootId,
QueryHandler parentHandler,
NodeId excludedNodeId)
Creates a new context instance.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this context and releases resources.
|
ClusterNode |
getClusterNode()
Returns the cluster node instance of this repository, or
null if clustering is not enabled. |
NodeId |
getExcludedNodeId()
Returns the id of the node that should be excluded from indexing.
|
ScheduledExecutorService |
getExecutor()
Returns the background task executor.
|
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.
|
String |
getWorkspace() |
public QueryHandlerContext(String workspace, RepositoryContext repositoryContext, SharedItemStateManager stateMgr, PersistenceManager pm, NodeId rootId, QueryHandler parentHandler, NodeId excludedNodeId)
workspace
- the workspace name.repositoryContext
- the repository context.stateMgr
- provides persistent item states.pm
- the underlying persistence manager.rootId
- the id of the root node.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.public ItemStateManager getItemStateManager()
ItemStateManager
of the workspace this QueryHandler
is based on.ItemStateManager
of the current
workspace.public HierarchyManager getHierarchyManager()
public PersistenceManager getPersistenceManager()
public NodeId getRootId()
public PropertyTypeRegistry getPropertyTypeRegistry()
public NodeTypeRegistry getNodeTypeRegistry()
public NamespaceRegistryImpl getNamespaceRegistry()
public QueryHandler getParentHandler()
public NodeId getExcludedNodeId()
public void destroy()
public ScheduledExecutorService getExecutor()
public ClusterNode getClusterNode()
null
if clustering is not enabled.public String getWorkspace()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.