*\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
-*/ \r
+*/\r
\r
package eu.etaxonomy.cdm.api.service;\r
\r
import org.springframework.dao.DataAccessException;\r
import org.springframework.security.core.GrantedAuthority;\r
import org.springframework.security.core.userdetails.UsernameNotFoundException;\r
-import org.springframework.security.provisioning.GroupManager;\r
import org.springframework.security.provisioning.UserDetailsManager;\r
\r
-import eu.etaxonomy.cdm.model.common.Group;\r
import eu.etaxonomy.cdm.model.common.User;\r
-import eu.etaxonomy.cdm.persistence.dao.BeanInitializer;\r
+import eu.etaxonomy.cdm.persistence.dao.initializer.IBeanInitializer;\r
import eu.etaxonomy.cdm.persistence.query.MatchMode;\r
import eu.etaxonomy.cdm.persistence.query.OrderHint;\r
\r
-public interface IUserService extends IService<User>, UserDetailsManager, GroupManager {\r
- \r
- public void changePasswordForUser(String username, String password) throws UsernameNotFoundException, DataAccessException;\r
- \r
- public UUID saveGrantedAuthority(GrantedAuthority grantedAuthority);\r
- \r
- public UUID saveGroup(Group group);\r
- \r
- /**\r
- * Return a List of users matching the given query string, optionally filtered by class, optionally with a particular MatchMode\r
- * \r
- * @param queryString the query string to filter by\r
- * @param matchmode use a particular type of matching (can be null - defaults to exact matching)\r
- * @param criteria additional criteria to filter by\r
- * @param pageSize The maximum number of objects returned (can be null for all objects)\r
- * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)\r
- * @param propertyPaths properties to initialize - see {@link BeanInitializer#initialize(Object, List)}\r
- * @param orderHints\r
- * Supports path like <code>orderHints.propertyNames</code> which\r
- * include *-to-one properties like createdBy.username or\r
- * authorTeam.persistentTitleCache\r
- * @return a list of instances of type User matching the queryString\r
- * \r
- * @see {@link IIdentifiableEntityService#listByTitle(Class, String, MatchMode, List, Integer, Integer, List, List)}\r
- *\r
- */\r
+public interface IUserService extends IService<User>, UserDetailsManager {\r
+\r
+ public void changePasswordForUser(String username, String password) throws UsernameNotFoundException, DataAccessException;\r
+\r
+ public UUID saveGrantedAuthority(GrantedAuthority grantedAuthority);\r
+\r
+\r
+\r
+ /**\r
+ * Return a List of users matching the given query string, optionally filtered by class, optionally with a particular MatchMode\r
+ *\r
+ * @param queryString the query string to filter by\r
+ * @param matchmode use a particular type of matching (can be null - defaults to exact matching)\r
+ * @param criteria additional criteria to filter by\r
+ * @param pageSize The maximum number of objects returned (can be null for all objects)\r
+ * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)\r
+ * @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)}\r
+ * @param orderHints\r
+ * Supports path like <code>orderHints.propertyNames</code> which\r
+ * include *-to-one properties like createdBy.username or\r
+ * authorTeam.persistentTitleCache\r
+ * @return a list of instances of type User matching the queryString\r
+ *\r
+ * @see {@link IIdentifiableEntityService#listByTitle(Class, String, MatchMode, List, Integer, Integer, List, List)}\r
+ *\r
+ */\r
public List<User> listByUsername(String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);\r
- \r
+\r
+\r
+\r
}\r