Project

General

Profile

Download (2.46 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9

    
10
package eu.etaxonomy.cdm.api.service;
11

    
12
import java.util.List;
13
import java.util.UUID;
14

    
15
import org.hibernate.criterion.Criterion;
16
import org.springframework.dao.DataAccessException;
17
import org.springframework.security.core.GrantedAuthority;
18
import org.springframework.security.core.userdetails.UsernameNotFoundException;
19
import org.springframework.security.provisioning.UserDetailsManager;
20

    
21
import eu.etaxonomy.cdm.model.permission.User;
22
import eu.etaxonomy.cdm.persistence.dao.initializer.IBeanInitializer;
23
import eu.etaxonomy.cdm.persistence.query.MatchMode;
24
import eu.etaxonomy.cdm.persistence.query.OrderHint;
25

    
26
public interface IUserService extends IService<User>, UserDetailsManager {
27

    
28
    public void changePasswordForUser(String username, String password) throws UsernameNotFoundException, DataAccessException;
29

    
30
    public UUID saveGrantedAuthority(GrantedAuthority grantedAuthority);
31

    
32

    
33

    
34
    /**
35
     * Return a List of users matching the given query string, optionally filtered by class, optionally with a particular MatchMode
36
     *
37
     * @param queryString the query string to filter by
38
     * @param matchmode use a particular type of matching (can be null - defaults to exact matching)
39
     * @param criteria additional criteria to filter by
40
     * @param pageSize The maximum number of objects returned (can be null for all objects)
41
     * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
42
     * @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)}
43
     * @param orderHints
44
     *            Supports path like <code>orderHints.propertyNames</code> which
45
     *            include *-to-one properties like createdBy.username or
46
     *            authorTeam.persistentTitleCache
47
     * @return a list of instances of type User matching the queryString
48
     *
49
     * @see {@link IIdentifiableEntityService#listByTitle(Class, String, MatchMode, List, Integer, Integer, List, List)}
50
     *
51
     */
52
    public List<User> listByUsername(String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
53

    
54

    
55

    
56
}
(65-65/100)