org.alfresco.repo.search
Class AbstractSearcherComponent

java.lang.Object
  extended by org.alfresco.repo.search.AbstractSearcherComponent
All Implemented Interfaces:
org.alfresco.service.cmr.search.SearchService
Direct Known Subclasses:
JCR170Searcher, SearcherComponent

public abstract class AbstractSearcherComponent
extends java.lang.Object
implements org.alfresco.service.cmr.search.SearchService

Provides basic searcher support


Field Summary
 
Fields inherited from interface org.alfresco.service.cmr.search.SearchService
LANGUAGE_CMIS_ALFRESCO, LANGUAGE_CMIS_STRICT, LANGUAGE_FTS_ALFRESCO, LANGUAGE_JCR_XPATH, LANGUAGE_LUCENE, LANGUAGE_SOLR_ALFRESCO, LANGUAGE_SOLR_CMIS, LANGUAGE_SOLR_FTS_ALFRESCO, LANGUAGE_XPATH
 
Constructor Summary
AbstractSearcherComponent()
           
 
Method Summary
 org.alfresco.service.cmr.search.ResultSet query(org.alfresco.service.cmr.repository.StoreRef store, java.lang.String language, java.lang.String query)
           
 java.util.List selectNodes(org.alfresco.service.cmr.repository.NodeRef contextNodeRef, java.lang.String xpath, org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks)
           
 java.util.List selectProperties(org.alfresco.service.cmr.repository.NodeRef contextNodeRef, java.lang.String xpath, org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks)
           
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

AbstractSearcherComponent

public AbstractSearcherComponent()
Method Detail

translateQuery

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.


query

public org.alfresco.service.cmr.search.ResultSet query(org.alfresco.service.cmr.repository.StoreRef store,
                                                       java.lang.String language,
                                                       java.lang.String query)
Specified by:
query in interface org.alfresco.service.cmr.search.SearchService

selectNodes

public java.util.List selectNodes(org.alfresco.service.cmr.repository.NodeRef contextNodeRef,
                                  java.lang.String xpath,
                                  org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters,
                                  org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver,
                                  boolean followAllParentLinks)
                           throws org.alfresco.service.cmr.repository.InvalidNodeRefException,
                                  org.alfresco.service.cmr.repository.XPathException
Specified by:
selectNodes in interface org.alfresco.service.cmr.search.SearchService
Throws:
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.XPathException

selectProperties

public java.util.List selectProperties(org.alfresco.service.cmr.repository.NodeRef contextNodeRef,
                                       java.lang.String xpath,
                                       org.alfresco.service.cmr.search.QueryParameterDefinition[] parameters,
                                       org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver,
                                       boolean followAllParentLinks)
                                throws org.alfresco.service.cmr.repository.InvalidNodeRefException,
                                       org.alfresco.service.cmr.repository.XPathException
Specified by:
selectProperties in interface org.alfresco.service.cmr.search.SearchService
Throws:
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.XPathException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.