|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.search.AbstractSearcherComponent
public abstract class AbstractSearcherComponent
Provides basic searcher support
| Field Summary |
|---|
| Fields inherited from interface org.alfresco.service.cmr.search.SearchService |
|---|
LANGUAGE_JCR_XPATH, LANGUAGE_LUCENE, LANGUAGE_XPATH |
| Constructor Summary | |
|---|---|
AbstractSearcherComponent()
|
|
| Method Summary | |
|---|---|
ResultSet |
query(StoreRef store,
java.lang.String language,
java.lang.String query)
Search against a store. |
ResultSet |
query(StoreRef store,
java.lang.String language,
java.lang.String query,
Path[] attributePaths)
Search against a store. |
ResultSet |
query(StoreRef store,
java.lang.String language,
java.lang.String query,
QueryParameterDefinition[] queryParameterDefintions)
Search against a store. |
java.util.List |
selectNodes(NodeRef contextNodeRef,
java.lang.String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks)
Select nodes using an xpath expression. |
java.util.List |
selectProperties(NodeRef contextNodeRef,
java.lang.String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks)
Select properties using an xpath expression |
protected java.lang.String |
translateQuery(java.lang.String fromLanguage,
java.lang.String toLangage,
java.lang.String query)
Not implemented, but will eventually map directly to SearchLanguageConversion. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.alfresco.service.cmr.search.SearchService |
|---|
contains, contains, like, query, query, query, selectNodes, selectProperties |
| Constructor Detail |
|---|
public AbstractSearcherComponent()
| Method Detail |
|---|
protected java.lang.String translateQuery(java.lang.String fromLanguage,
java.lang.String toLangage,
java.lang.String query)
SearchLanguageConversion.
public ResultSet query(StoreRef store,
java.lang.String language,
java.lang.String query)
SearchService
query in interface SearchServicestore - -
the store against which to searchlanguage - -
the query languagequery - -
the query string - which may include parameters
public ResultSet query(StoreRef store,
java.lang.String language,
java.lang.String query,
QueryParameterDefinition[] queryParameterDefintions)
SearchService
query in interface SearchServicestore - -
the store against which to searchlanguage - -
the query languagequery - -
the query string - which may include parameters
public ResultSet query(StoreRef store,
java.lang.String language,
java.lang.String query,
Path[] attributePaths)
SearchService
query in interface SearchServicestore - -
the store against which to searchlanguage - -
the query languagequery - -
the query string - which may include parametersattributePaths - -
explicit list of attributes/properties to extract for the
selected nodes in xpath style syntax
public java.util.List selectNodes(NodeRef contextNodeRef,
java.lang.String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks)
throws InvalidNodeRefException,
XPathException
SearchService
selectNodes in interface SearchServicecontextNodeRef - -
the context node for relative expressions etcxpath - -
the xpath string to evaluateparameters - -
parameters to bind in to the xpath expressionnamespacePrefixResolver - -
prefix to namespace mappingsfollowAllParentLinks - -
if false ".." follows only the primary parent links, if true
it follows all
InvalidNodeRefException
XPathException
public java.util.List selectProperties(NodeRef contextNodeRef,
java.lang.String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks)
throws InvalidNodeRefException,
XPathException
SearchService
selectProperties in interface SearchServicecontextNodeRef - -
the context node for relative expressions etcxpath - -
the xpath string to evaluateparameters - -
parameters to bind in to the xpath expressionnamespacePrefixResolver - -
prefix to namespace mappingsfollowAllParentLinks - -
if false ".." follows only the primary parent links, if true
it follows all
InvalidNodeRefException
XPathException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||