1
|
package eu.dnetlib.repo.manager.client.services;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.RemoteService;
|
4
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
5
|
import eu.dnetlib.domain.functionality.UserProfile;
|
6
|
import eu.dnetlib.repo.manager.shared.Tuple;
|
7
|
import eu.dnetlib.repo.manager.shared.UserAccessException;
|
8
|
|
9
|
/**
|
10
|
* Created by stefania on 12/4/15.
|
11
|
*/
|
12
|
@RemoteServiceRelativePath("springGwtServices/userService")
|
13
|
public interface UserService extends RemoteService {
|
14
|
|
15
|
Tuple<UserProfile, String> login(String email, String password) throws UserAccessException;
|
16
|
|
17
|
void register(UserProfile userProfile) throws UserAccessException;
|
18
|
|
19
|
void activateUser(String activationId) throws UserAccessException;
|
20
|
|
21
|
void updateUser(UserProfile userProfile) throws UserAccessException;
|
22
|
|
23
|
Tuple<UserProfile, String> getUserByEmail(String email) throws UserAccessException;
|
24
|
|
25
|
void prepareResetPassword(String email) throws UserAccessException;
|
26
|
|
27
|
void resetPassword(String securityCode, String password) throws UserAccessException;
|
28
|
|
29
|
void resendActivation(String email) throws UserAccessException;
|
30
|
|
31
|
Tuple<UserProfile, String> checkCookie() throws Exception;
|
32
|
|
33
|
void clearCookie();
|
34
|
}
|