1
|
package eu.dnetlib.goldoa.service;
|
2
|
|
3
|
import eu.dnetlib.goldoa.domain.Person;
|
4
|
import eu.dnetlib.goldoa.domain.PersonManagerException;
|
5
|
import eu.dnetlib.goldoa.domain.Role;
|
6
|
|
7
|
import java.util.List;
|
8
|
|
9
|
/**
|
10
|
* Created by antleb on 3/4/15.
|
11
|
*/
|
12
|
public interface PersonManager {
|
13
|
|
14
|
// public Person savePerson(Person person) throws PersonManagerException;
|
15
|
|
16
|
public Person getByEmail(String email);
|
17
|
|
18
|
public void register(Person person) throws PersonManagerException;
|
19
|
|
20
|
public Person login(String email, String password) throws PersonManagerException;;
|
21
|
|
22
|
public Person activate(String email, String token) throws PersonManagerException;;
|
23
|
|
24
|
public void resetPassword(String email) throws PersonManagerException;
|
25
|
|
26
|
public List<Role> getRoles();
|
27
|
}
|