| .. | .. |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | import javax.validation.constraints.Email; |
|---|
| 4 | 4 | import javax.validation.constraints.NotEmpty; |
|---|
| 5 | | -import javax.validation.constraints.NotNull; |
|---|
| 6 | 5 | |
|---|
| 7 | 6 | import org.springframework.web.multipart.MultipartFile; |
|---|
| 8 | 7 | |
|---|
| .. | .. |
|---|
| 11 | 10 | public class StartURPForm { |
|---|
| 12 | 11 | |
|---|
| 13 | 12 | @NotEmpty |
|---|
| 13 | + private String nome; |
|---|
| 14 | + @NotEmpty |
|---|
| 15 | + private String cognome; |
|---|
| 16 | + @NotEmpty |
|---|
| 14 | 17 | @Email |
|---|
| 15 | | - private String mittente; |
|---|
| 18 | + private String email; |
|---|
| 16 | 19 | @NotEmpty |
|---|
| 17 | 20 | private String oggetto; |
|---|
| 18 | 21 | @NotEmpty |
|---|
| .. | .. |
|---|
| 20 | 23 | @NotEmpty |
|---|
| 21 | 24 | @ValidReCaptcha |
|---|
| 22 | 25 | private String reCaptchaResponse; |
|---|
| 23 | | - @NotNull |
|---|
| 24 | | - private MultipartFile allegato; |
|---|
| 25 | 26 | |
|---|
| 26 | | - public String getMittente() { |
|---|
| 27 | | - return mittente; |
|---|
| 27 | + private MultipartFile[] allegati; |
|---|
| 28 | + |
|---|
| 29 | + public String getNome() { |
|---|
| 30 | + return nome; |
|---|
| 28 | 31 | } |
|---|
| 29 | | - public void setMittente(String mittente) { |
|---|
| 30 | | - this.mittente = mittente; |
|---|
| 32 | + public void setNome(String nome) { |
|---|
| 33 | + this.nome = nome; |
|---|
| 34 | + } |
|---|
| 35 | + public String getCognome() { |
|---|
| 36 | + return cognome; |
|---|
| 37 | + } |
|---|
| 38 | + public void setCognome(String cognome) { |
|---|
| 39 | + this.cognome = cognome; |
|---|
| 40 | + } |
|---|
| 41 | + public String getEmail() { |
|---|
| 42 | + return email; |
|---|
| 43 | + } |
|---|
| 44 | + public void setEmail(String email) { |
|---|
| 45 | + this.email = email; |
|---|
| 31 | 46 | } |
|---|
| 32 | 47 | public String getOggetto() { |
|---|
| 33 | 48 | return oggetto; |
|---|
| .. | .. |
|---|
| 47 | 62 | public void setReCaptchaResponse(String reCaptchaResponse) { |
|---|
| 48 | 63 | this.reCaptchaResponse = reCaptchaResponse; |
|---|
| 49 | 64 | } |
|---|
| 50 | | - public MultipartFile getAllegato() { |
|---|
| 51 | | - return allegato; |
|---|
| 65 | + public MultipartFile[] getAllegati() { |
|---|
| 66 | + return allegati; |
|---|
| 52 | 67 | } |
|---|
| 53 | | - public void setAllegato(MultipartFile allegato) { |
|---|
| 54 | | - this.allegato = allegato; |
|---|
| 68 | + public void setAllegati(MultipartFile[] allegati) { |
|---|
| 69 | + this.allegati = allegati; |
|---|
| 55 | 70 | } |
|---|
| 56 | 71 | } |
|---|