Adds email information on UserInfo listing model.

(cherry picked from commit 10e76e6d2b)
This commit is contained in:
gkolokythas 2019-05-28 10:12:23 +03:00 committed by apapachristou
parent abb41b238d
commit 12372baa8f
1 changed files with 12 additions and 3 deletions

View File

@ -10,7 +10,8 @@ public class UserInfoListingModel implements DataModel<UserDMP, UserInfoListingM
private UUID id;
private String name;
private Integer role;
private int role;
private String email;
public UUID getId() {
return id;
@ -26,18 +27,26 @@ public class UserInfoListingModel implements DataModel<UserDMP, UserInfoListingM
this.name = name;
}
public Integer getRole() {
public int getRole() {
return role;
}
public void setRole(Integer role) {
public void setRole(int role) {
this.role = role;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public UserInfoListingModel fromDataModel(UserDMP entity) {
this.id = entity.getUser().getId();
this.name = entity.getUser().getName();
this.role = entity.getRole();
this.email = entity.getUser().getEmail();
return this;
}