Adds email information on UserInfo listing model.

This commit is contained in:
gkolokythas 2019-05-28 10:12:23 +03:00
parent dd0b23580c
commit 10e76e6d2b
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;
}