001package usecase.user;
002
003import lombok.AllArgsConstructor;
004import lombok.Builder;
005import lombok.Data;
006import lombok.Getter;
007import media.validation.Image;
008import model.validation.EmailFormat;
009import model.validation.PasswordFormat;
010import model.validation.UniqueEmail;
011
012import javax.validation.constraints.Size;
013import java.io.BufferedInputStream;
014
015/**
016 * Classe DTO relativa alla modifica del profilo utente.
017 */
018@Builder @Getter @Data @AllArgsConstructor
019public class UserEditPage {
020
021    @Size(max=255)
022    private String description;
023
024    @EmailFormat
025    @UniqueEmail
026    private String email;
027
028    @Image
029    private BufferedInputStream picture;
030
031    @PasswordFormat
032    private String password;
033}