1 17 package org.alfresco.service.cmr.search; 18 19 import java.io.Serializable ; 20 import java.util.List ; 21 22 import org.alfresco.service.cmr.repository.InvalidNodeRefException; 23 import org.alfresco.service.cmr.repository.NodeRef; 24 import org.alfresco.service.cmr.repository.Path; 25 import org.alfresco.service.cmr.repository.StoreRef; 26 import org.alfresco.service.cmr.repository.XPathException; 27 import org.alfresco.service.namespace.NamespacePrefixResolver; 28 import org.alfresco.service.namespace.QName; 29 30 40 public interface SearchService 41 { 42 public static final String LANGUAGE_LUCENE = "lucene"; 43 44 public static final String LANGUAGE_XPATH = "xpath"; 45 46 public static final String LANGUAGE_JCR_XPATH = "jcr-xpath"; 47 48 65 public ResultSet query(StoreRef store, String language, String query, Path[] attributePaths, 66 QueryParameterDefinition[] queryParameterDefinitions); 67 68 80 public ResultSet query(StoreRef store, String language, String query); 81 82 96 public ResultSet query(StoreRef store, String language, String query, 97 QueryParameterDefinition[] queryParameterDefintions); 98 99 113 public ResultSet query(StoreRef store, String language, String query, Path[] attributePaths); 114 115 126 public ResultSet query(StoreRef store, QName queryId, QueryParameter[] queryParameters); 127 128 131 132 public ResultSet query(SearchParameters searchParameters); 133 134 150 public List <NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, 151 NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) 152 throws InvalidNodeRefException, XPathException; 153 154 172 public List <NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, 173 NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks, String language) 174 throws InvalidNodeRefException, XPathException; 175 176 192 public List <Serializable > selectProperties(NodeRef contextNodeRef, String xpath, 193 QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, 194 boolean followAllParentLinks) throws InvalidNodeRefException, XPathException; 195 196 214 public List <Serializable > selectProperties(NodeRef contextNodeRef, String xpath, 215 QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, 216 boolean followAllParentLinks, String language) throws InvalidNodeRefException, XPathException; 217 218 230 public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern) 231 throws InvalidNodeRefException; 232 233 245 public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern, SearchParameters.Operator defaultOperator) 246 throws InvalidNodeRefException; 247 248 262 public boolean like(NodeRef nodeRef, QName propertyQName, String sqlLikePattern, boolean includeFTS) 263 throws InvalidNodeRefException; 264 } 265 | Popular Tags |