1
|
package eu.dnetlib.openaire.user;
|
2
|
|
3
|
/**
|
4
|
* Created by sofia on 31/10/2016.
|
5
|
*/
|
6
|
public interface IUserActions {
|
7
|
|
8
|
public String addUser(String email, String password) throws Exception;
|
9
|
|
10
|
public boolean activateUser(String activationId) throws Exception;
|
11
|
|
12
|
public boolean isUserActivated(String email) throws Exception;
|
13
|
|
14
|
public boolean userExists(String email) throws Exception;
|
15
|
|
16
|
public boolean usernameExists(String username) throws Exception;
|
17
|
|
18
|
public boolean correctCreds(String email, String password) throws Exception;
|
19
|
|
20
|
public String prepareResetPassword(String email) throws Exception;
|
21
|
|
22
|
public void resetPassword(String uuid, String password) throws Exception;
|
23
|
|
24
|
public boolean isAdmin(String email) throws Exception;
|
25
|
|
26
|
public void editUser(String email, String fname, String lname, String inst)
|
27
|
throws Exception;
|
28
|
|
29
|
public String addUser(String username, String email, String password,
|
30
|
String firstName, String lastName) throws Exception;
|
31
|
|
32
|
public String getEmailFromUsername(String username) throws Exception;
|
33
|
|
34
|
//public UserProfile getUser(String userIdentifier) throws Exception;
|
35
|
|
36
|
}
|