Project

General

Profile

« Previous | Next » 

Revision 44691

Change MigrationUser's field from uid to cn AND Add MigrationUser's field displayName AND Update MigrationUser's getters/setters

View differences:

modules/uoa-user-management/trunk/src/main/java/eu/dnetlib/openaire/user/MigrationUser.java
8 8
public class MigrationUser implements Serializable {
9 9

  
10 10
    private int id;
11
    private String uid;
12
    private String name; // TODO LDAP display name
11
    private String cn;
12
    private String displayName;
13 13
    private String email;
14 14
    private int roleId;
15 15

  
......
17 17

  
18 18
    }
19 19

  
20
    public MigrationUser(String uid) {
21
        this.uid = uid;
20
    public MigrationUser(String cn) {
21
        this.cn = cn;
22 22
    }
23 23

  
24
    public MigrationUser(int id, String uid, String email, int roleId) {
24
    public MigrationUser(int id, String cn, String displayName, String email, int roleId) {
25 25

  
26 26
        this.id = id;
27
        this.uid = uid;
27
        this.cn = cn;
28
        this.displayName = displayName;
28 29
        this.email = email;
29 30
        this.roleId = roleId;
30 31

  
......
38 39
        this.id = id;
39 40
    }
40 41

  
41
    public String getUid(){
42
        return uid;
42
    public String getCn(){
43
        return cn;
43 44
    }
44 45

  
45
    public void setUid(String uid){
46
        this.uid = uid;
46
    public void setCn(String cn){
47
        this.cn = cn;
47 48
    }
48 49

  
50
    public String getDisplayName(){
51
        return displayName;
52
    }
53

  
54
    public void setDisplayName(String displayName){
55
        this.displayName = displayName;
56
    }
49 57
    public String getEmail(){
50 58
        return email;
51 59
    }

Also available in: Unified diff