Project

General

Profile

1 41093 stefania.m
package eu.dnetlib.repo.manager.client.services;
2 40232 stefania.m
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 49592 stefania.m
import eu.dnetlib.repo.manager.shared.Tuple;
7 40251 nikon.gasp
import eu.dnetlib.repo.manager.shared.UserAccessException;
8 40232 stefania.m
9
/**
10
 * Created by stefania on 12/4/15.
11
 */
12 40464 nikon.gasp
@RemoteServiceRelativePath("springGwtServices/userService")
13 40232 stefania.m
public interface UserService extends RemoteService {
14
15 49592 stefania.m
    Tuple<UserProfile, String> login(String email, String password) throws UserAccessException;
16 40259 stefania.m
17
    void register(UserProfile userProfile) throws UserAccessException;
18
19 40268 nikon.gasp
    void activateUser(String activationId) throws UserAccessException;
20
21 40262 nikon.gasp
    void updateUser(UserProfile userProfile) throws UserAccessException;
22
23 49592 stefania.m
    Tuple<UserProfile, String> getUserByEmail(String email) throws UserAccessException;
24 40262 nikon.gasp
25 40309 nikon.gasp
    void prepareResetPassword(String email) throws UserAccessException;
26 40262 nikon.gasp
27 40309 nikon.gasp
    void resetPassword(String securityCode, String password) throws UserAccessException;
28
29 40262 nikon.gasp
    void resendActivation(String email) throws UserAccessException;
30
31 40232 stefania.m
}