55 lines
971 B
Java
55 lines
971 B
Java
package fr.cardon.simpleat.dto;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
import com.sun.istack.NotNull;
|
|
|
|
import fr.cardon.simpleat.model.Role;
|
|
|
|
/**
|
|
* Specifique : AppUser DTO permet de renvoyer un User sans le mot de passe (REST response).
|
|
*/
|
|
public class PersonneDto {
|
|
|
|
private Long id;
|
|
private String email;
|
|
private List<Role> roleList;
|
|
|
|
public PersonneDto() { }
|
|
|
|
public PersonneDto(@NotNull String email) {
|
|
this(email,null);
|
|
}
|
|
|
|
public PersonneDto(@NotNull String email, List<Role> roleList) {
|
|
this.email = email;
|
|
this.roleList = roleList;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public List<Role> getRoleList() {
|
|
return roleList;
|
|
}
|
|
|
|
public void setRoleList(List<Role> roleList) {
|
|
this.roleList = roleList;
|
|
}
|
|
|
|
|
|
}
|