Package org.alfresco.repo.search.impl
Class SearchServiceSubSystemDelegator
java.lang.Object
org.alfresco.repo.search.impl.SearchServiceSubSystemDelegator
- All Implemented Interfaces:
SearchService
Send calls that have to use the sub-system to the delegate. selectNodes and selectProperties will avoid the sub-system if possible.
- Author:
- Andy
-
Field Summary
Fields inherited from interface org.alfresco.service.cmr.search.SearchService
LANGUAGE_CMIS_ALFRESCO, LANGUAGE_CMIS_STRICT, LANGUAGE_FTS_ALFRESCO, LANGUAGE_INDEX_ALFRESCO, LANGUAGE_INDEX_CMIS, LANGUAGE_INDEX_FTS_ALFRESCO, LANGUAGE_INDEX_SQL, LANGUAGE_LUCENE, LANGUAGE_SOLR_ALFRESCO, LANGUAGE_SOLR_CMIS, LANGUAGE_SOLR_FTS_ALFRESCO, LANGUAGE_SOLR_SQL, LANGUAGE_XPATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancontains(NodeRef nodeRef, QName propertyQName, String googleLikePattern, SearchParameters.Operator defaultOperator) booleanquery(StoreRef store, String language, String query, QueryParameterDefinition[] queryParameterDefinitions) query(StoreRef store, QName queryId, QueryParameter[] queryParameters) query(SearchParameters searchParameters) selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) voidsetDictionaryService(DictionaryService dictionaryService) voidsetNodeService(NodeService nodeService) voidsetSubSystem(SearchService subSystem)
-
Constructor Details
-
SearchServiceSubSystemDelegator
public SearchServiceSubSystemDelegator()
-
-
Method Details
-
setSubSystem
- Parameters:
subSystem- the subSystem to set
-
setNodeService
- Parameters:
nodeService- the nodeService to set
-
setDictionaryService
- Parameters:
dictionaryService- the dictionaryService to set
-
query
- Specified by:
queryin interfaceSearchService- Parameters:
store- StoreReflanguage- Stringquery- String- Returns:
- ResultSet
- See Also:
-
query
public ResultSet query(StoreRef store, String language, String query, QueryParameterDefinition[] queryParameterDefinitions) - Specified by:
queryin interfaceSearchService- Parameters:
store- StoreReflanguage- Stringquery- StringqueryParameterDefinitions- QueryParameterDefinition[]- Returns:
- ResultSet
- See Also:
-
query
- Specified by:
queryin interfaceSearchService- Parameters:
store- StoreRefqueryId- QNamequeryParameters- QueryParameter[]- Returns:
- ResultSet
- See Also:
-
query
- Specified by:
queryin interfaceSearchService- Parameters:
searchParameters- SearchParameters- Returns:
- ResultSet
- See Also:
-
selectNodes
public List<NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws InvalidNodeRefException, XPathException - Specified by:
selectNodesin interfaceSearchService- Parameters:
contextNodeRef- NodeRefxpath- Stringparameters- QueryParameterDefinition[]namespacePrefixResolver- NamespacePrefixResolverfollowAllParentLinks- boolean- Throws:
InvalidNodeRefExceptionXPathException- See Also:
-
selectNodes
public List<NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) throws InvalidNodeRefException, XPathException - Specified by:
selectNodesin interfaceSearchService- Parameters:
contextNodeRef- NodeRefxpath- Stringparameters- QueryParameterDefinition[]namespacePrefixResolver- NamespacePrefixResolverfollowAllParentLinks- booleanlanguage- String- Throws:
InvalidNodeRefExceptionXPathException- See Also:
-
selectProperties
public List<Serializable> selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws InvalidNodeRefException, XPathException - Specified by:
selectPropertiesin interfaceSearchService- Parameters:
contextNodeRef- NodeRefxpath- Stringparameters- QueryParameterDefinition[]namespacePrefixResolver- NamespacePrefixResolverfollowAllParentLinks- boolean- Throws:
InvalidNodeRefExceptionXPathException- See Also:
-
selectProperties
public List<Serializable> selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) throws InvalidNodeRefException, XPathException - Specified by:
selectPropertiesin interfaceSearchService- Parameters:
contextNodeRef- NodeRefxpath- Stringparameters- QueryParameterDefinition[]namespacePrefixResolver- NamespacePrefixResolverfollowAllParentLinks- booleanlanguage- String- Throws:
InvalidNodeRefExceptionXPathException- See Also:
-
contains
public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern) throws InvalidNodeRefException - Specified by:
containsin interfaceSearchService- Parameters:
nodeRef- NodeRefpropertyQName- QNamegoogleLikePattern- String- Returns:
- boolean
- Throws:
InvalidNodeRefException- See Also:
-
contains
public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern, SearchParameters.Operator defaultOperator) throws InvalidNodeRefException - Specified by:
containsin interfaceSearchService- Parameters:
nodeRef- NodeRefpropertyQName- QNamegoogleLikePattern- StringdefaultOperator- Operator- Returns:
- boolean
- Throws:
InvalidNodeRefException- See Also:
-
like
public boolean like(NodeRef nodeRef, QName propertyQName, String sqlLikePattern, boolean includeFTS) throws InvalidNodeRefException - Specified by:
likein interfaceSearchService- Parameters:
nodeRef- NodeRefpropertyQName- QNamesqlLikePattern- StringincludeFTS- boolean- Returns:
- boolean
- Throws:
InvalidNodeRefException- See Also:
-