findByDescriptionElementFullText implemented an hibernate search related tests fixed
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / IGroupService.java
index a6ab2e72cd842afede11efdf304913f33286cecc..b4394a61ee5fe0fb24431a0ed1812e1a7bb9ac7f 100644 (file)
 
 package eu.etaxonomy.cdm.api.service;
 
+import java.util.List;
+
+import org.hibernate.criterion.Criterion;
 import org.springframework.security.provisioning.GroupManager;
 
 import eu.etaxonomy.cdm.model.common.Group;
+import eu.etaxonomy.cdm.persistence.dao.BeanInitializer;
+import eu.etaxonomy.cdm.persistence.query.MatchMode;
+import eu.etaxonomy.cdm.persistence.query.OrderHint;
 
 /**
  * @author n.hoffmann
@@ -20,5 +26,26 @@ import eu.etaxonomy.cdm.model.common.Group;
  * @version 1.0
  */
 public interface IGroupService extends IService<Group>, GroupManager{
+       
+    
+       /**
+        * Return a List of groups matching the given query string, optionally filtered by class, optionally with a particular MatchMode
+        * 
+        * @param queryString the query string to filter by
+        * @param matchmode use a particular type of matching (can be null - defaults to exact matching)
+        * @param criteria additional criteria to filter by
+        * @param pageSize The maximum number of objects returned (can be null for all objects)
+        * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
+        * @param propertyPaths properties to initialize - see {@link BeanInitializer#initialize(Object, List)}
+        * @param orderHints
+        *            Supports path like <code>orderHints.propertyNames</code> which
+        *            include *-to-one properties like createdBy.username or
+        *            authorTeam.persistentTitleCache
+        * @return a list of instances of type Group matching the queryString
+        * 
+        * @see {@link IIdentifiableEntityService#listByTitle(Class, String, MatchMode, List, Integer, Integer, List, List)}
+        */
+    public List<Group> listByName(String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
+
 
 }