1
|
package eu.dnetlib.openaire.user;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
|
5
|
/**
|
6
|
* Created by sofia on 1/11/2016.
|
7
|
*/
|
8
|
public class MigrationUser implements Serializable {
|
9
|
|
10
|
private int id;
|
11
|
private String username; // LDAP's cn, it is unique key
|
12
|
private String fullname; // LDAP's display name
|
13
|
private String email;
|
14
|
private int roleId;
|
15
|
|
16
|
public MigrationUser() {
|
17
|
}
|
18
|
|
19
|
public MigrationUser(String username) {
|
20
|
this.username = username;
|
21
|
}
|
22
|
|
23
|
public MigrationUser(int id, String username, String fullname, String email, int roleId) {
|
24
|
|
25
|
this.id = id;
|
26
|
this.username = username;
|
27
|
this.fullname = fullname;
|
28
|
this.email = email;
|
29
|
this.roleId = roleId;
|
30
|
|
31
|
}
|
32
|
|
33
|
public int getId(){
|
34
|
return id;
|
35
|
}
|
36
|
|
37
|
public void setId(int id){
|
38
|
this.id = id;
|
39
|
}
|
40
|
|
41
|
public String getUsername(){
|
42
|
return username;
|
43
|
}
|
44
|
|
45
|
public void setUsername(String username){
|
46
|
this.username = username;
|
47
|
}
|
48
|
|
49
|
public String getFullname(){
|
50
|
return fullname;
|
51
|
}
|
52
|
|
53
|
public void setFullname(String fullname){
|
54
|
this.fullname = fullname;
|
55
|
}
|
56
|
public String getEmail(){
|
57
|
return email;
|
58
|
}
|
59
|
|
60
|
public void setEmail(String email){
|
61
|
this.email = email;
|
62
|
}
|
63
|
|
64
|
public int getRoleId(){
|
65
|
return roleId;
|
66
|
}
|
67
|
|
68
|
public void setRoleId(int roleId){
|
69
|
this.roleId = roleId;
|
70
|
}
|
71
|
|
72
|
}
|