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 roleList; public PersonneDto() { } public PersonneDto(@NotNull String email) { this(email,null); } public PersonneDto(@NotNull String email, List 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 getRoleList() { return roleList; } public void setRoleList(List roleList) { this.roleList = roleList; } }