Adds email information on UserInfo listing model.
This commit is contained in:
parent
dd0b23580c
commit
10e76e6d2b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue