|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.SearchManager
public class SearchManager
Acts as a global entry point to execute queries and index nodes.
| Field Summary | |
|---|---|
static java.lang.String |
NS_FN_OLD_URI
|
static java.lang.String |
NS_FN_URI
|
static java.lang.String |
NS_XS_URI
|
| Constructor Summary | |
|---|---|
SearchManager(SearchConfig config,
NamespaceRegistryImpl nsReg,
NodeTypeRegistry ntReg,
ItemStateManager itemMgr,
PersistenceManager pm,
NodeId rootNodeId,
SearchManager parentMgr,
NodeId excludedNodeId)
Creates a new SearchManager. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this SearchManager and also closes the
FileSystem configured in SearchConfig. |
javax.jcr.query.Query |
createQuery(SessionImpl session,
ItemManager itemMgr,
javax.jcr.Node node)
Creates a query object from a node that can be executed on the workspace. |
javax.jcr.query.Query |
createQuery(SessionImpl session,
ItemManager itemMgr,
java.lang.String statement,
java.lang.String language)
Creates a query object that can be executed on the workspace. |
protected AbstractQueryImpl |
createQueryInstance()
Creates a new instance of an AbstractQueryImpl which is not
initialized. |
QueryObjectModel |
createQueryObjectModel(SessionImpl session,
QueryObjectModelTree qomTree,
java.lang.String langugage)
Creates a query object model that can be executed on the workspace. |
QueryHandler |
getQueryHandler()
|
void |
onEvent(javax.jcr.observation.EventIterator events)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NS_FN_URI
public static final java.lang.String NS_FN_OLD_URI
public static final java.lang.String NS_XS_URI
| Constructor Detail |
|---|
public SearchManager(SearchConfig config,
NamespaceRegistryImpl nsReg,
NodeTypeRegistry ntReg,
ItemStateManager itemMgr,
PersistenceManager pm,
NodeId rootNodeId,
SearchManager parentMgr,
NodeId excludedNodeId)
throws javax.jcr.RepositoryException
SearchManager.
config - the search configuration.nsReg - the namespace registry.ntReg - the node type registry.itemMgr - the shared item state manager.pm - the underlying persistence manager.rootNodeId - the id of the root node.parentMgr - the parent search manager or null if
there is no parent search manager.excludedNodeId - id of the node that should be excluded from
indexing. Any descendant of that node will also be
excluded from indexing.
javax.jcr.RepositoryException - if the search manager cannot be initialized| Method Detail |
|---|
public void close()
SearchManager and also closes the
FileSystem configured in SearchConfig.
public javax.jcr.query.Query createQuery(SessionImpl session,
ItemManager itemMgr,
java.lang.String statement,
java.lang.String language)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
session - the session of the user executing the query.itemMgr - the item manager of the user executing the query. Needed
to return Node instances in the result set.statement - the actual query statement.language - the syntax of the query statement.
Query instance to execute.
javax.jcr.query.InvalidQueryException - if the query is malformed or the
language is unknown.
javax.jcr.RepositoryException - if any other error occurs.
public QueryObjectModel createQueryObjectModel(SessionImpl session,
QueryObjectModelTree qomTree,
java.lang.String langugage)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
session - the session of the user executing the query.qomTree - the query object model tree, representing the query.langugage - the original language of the query statement.
javax.jcr.query.InvalidQueryException - the the query object model tree is
considered invalid by the query handler
implementation.
javax.jcr.RepositoryException - if any other error occurs.
public javax.jcr.query.Query createQuery(SessionImpl session,
ItemManager itemMgr,
javax.jcr.Node node)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
session - the session of the user executing the query.itemMgr - the item manager of the user executing the query. Needed
to return Node instances in the result set.node - a node of type nt:query.
Query instance to execute.
javax.jcr.query.InvalidQueryException - if absPath is not a valid
persisted query (that is, a node of type nt:query)
javax.jcr.RepositoryException - if any other error occurs.public QueryHandler getQueryHandler()
public void onEvent(javax.jcr.observation.EventIterator events)
onEvent in interface javax.jcr.observation.EventListener
protected AbstractQueryImpl createQueryInstance()
throws javax.jcr.RepositoryException
AbstractQueryImpl which is not
initialized.
javax.jcr.RepositoryException - if an error occurs while creating a new query
instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||