Project

General

Profile

1
package eu.dnetlib.validator.admin.api;
2

    
3
import eu.dnetlib.domain.functionality.UserProfile;
4

    
5
public interface UserApi {
6

    
7
	public boolean activateUser(String activationId) throws Exception;
8

    
9
	public boolean isUserActivated(String email) throws Exception;
10

    
11
	public boolean userExists(String email) throws Exception;
12

    
13
	public boolean usernameExists(String username) throws Exception;
14

    
15
	public boolean correctCreds(String email, String password) throws Exception;
16

    
17
	public String prepareResetPassword(String email) throws Exception;
18

    
19
	public void resetPassword(String uuid, String password) throws Exception;
20

    
21
	public boolean isAdmin(String email) throws Exception;
22

    
23
	public void editUser(UserProfile user)
24
			throws Exception;
25

    
26
	public String addUser(String username, String email, String password,
27
			String firstName, String lastName, String institution) throws Exception;
28

    
29
	public String getEmailFromUsername(String username) throws Exception;
30

    
31
	public UserProfile getUser(String userIdentifier) throws Exception;
32
}
(1-1/3)