Class AbstractSearcherComponent

  • All Implemented Interfaces:
    org.alfresco.service.cmr.search.SearchService
    Direct Known Subclasses:
    SearcherComponent

    public abstract class AbstractSearcherComponent
    extends java.lang.Object
    implements org.alfresco.service.cmr.search.SearchService
    Provides basic searcher support
    Author:
    Andy Hind
    • Field Summary

      • Fields inherited from interface org.alfresco.service.cmr.search.SearchService

        LANGUAGE_CMIS_ALFRESCO, LANGUAGE_CMIS_STRICT, LANGUAGE_FTS_ALFRESCO, LANGUAGE_LUCENE, LANGUAGE_SOLR_ALFRESCO, LANGUAGE_SOLR_CMIS, LANGUAGE_SOLR_FTS_ALFRESCO, LANGUAGE_SOLR_SQL, LANGUAGE_XPATH
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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<org.alfresco.service.cmr.repository.NodeRef> 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<java.io.Serializable> 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<org.alfresco.service.cmr.repository.NodeRef> 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<java.io.Serializable> 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