1 package com.dto;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 import org.hibernate.validator.constraints.NotEmpty;
25
26 import javax.persistence.Column;
27 import javax.validation.constraints.NotNull;
28 import javax.validation.constraints.Pattern;
29 import java.util.List;
30
31
32
33
34 public class InvitationRequestDto {
35 @NotNull(message = "{FieldIsMandatory}")
36 @NotEmpty(message = "{FieldCanNotBeEmpty}")
37 @Pattern(regexp=".+@.+\\.[a-z]+", message = "{NotValidEmailValue}")
38 private String recipientEmail;
39
40 private String projectGuid;
41
42 @NotNull(message = "{FieldIsMandatory}")
43 @NotEmpty(message = "{FieldCanNotBeEmpty}")
44 @Column(name = "authority")
45 private String authority;
46
47 @NotNull(message = "{FieldIsMandatory}")
48 @NotEmpty(message = "{FieldCanNotBeEmpty}")
49 private List<GroupRequestDto> groups;
50
51 public String getRecipientEmail() {
52 return recipientEmail;
53 }
54
55 public void setRecipientEmail(String recipientEmail) {
56 this.recipientEmail = recipientEmail;
57 }
58
59 public String getProjectGuid() {
60 return projectGuid;
61 }
62
63 public void setProjectGuid(String projectGuid) {
64 this.projectGuid = projectGuid;
65 }
66
67 public String getAuthority() {
68 return authority;
69 }
70
71 public void setAuthority(String authority) {
72 this.authority = authority;
73 }
74
75 public List<GroupRequestDto> getGroups() {
76 return groups;
77 }
78
79 public void setGroups(List<GroupRequestDto> groups) {
80 this.groups = groups;
81 }
82 }