1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package fr.paris.lutece.plugins.appointment.business.user;
35
36 import java.io.Serializable;
37 import java.util.List;
38
39 import javax.validation.constraints.Email;
40 import javax.validation.constraints.NotBlank;
41 import javax.validation.constraints.Size;
42
43 import fr.paris.lutece.plugins.appointment.business.appointment.Appointment;
44
45
46
47
48
49
50
51 public class User implements Serializable
52 {
53
54
55
56
57 private static final long serialVersionUID = -5088753000751258184L;
58
59
60
61
62 private int _nIdUser;
63
64
65
66
67 private String _strGuid;
68
69
70
71
72 @NotBlank( message = "appointment.validation.appointment.FirstName.notEmpty" )
73 @Size( max = 255, message = "appointment.validation.appointment.FirstName.size" )
74 private String _strFirstName;
75
76
77
78
79 @NotBlank( message = "appointment.validation.appointment.LastName.notEmpty" )
80 @Size( max = 255, message = "appointment.validation.appointment.LastName.size" )
81 private String _strLastName;
82
83
84
85
86 @Size( max = 255, message = "appointment.validation.appointment.Email.size" )
87 @Email( regexp = "^$|(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])", message = "appointment.validation.appointment.Email.email" )
88 private String _strEmail;
89
90
91
92
93 private String _strPhoneNumber;
94
95
96
97
98 private List<Appointment> _listAppointments;
99
100
101
102
103
104
105 public int getIdUser( )
106 {
107 return _nIdUser;
108 }
109
110
111
112
113
114
115
116 public void setIdUser( int nIdUser )
117 {
118 this._nIdUser = nIdUser;
119 }
120
121
122
123
124
125
126 public String getGuid( )
127 {
128 return _strGuid;
129 }
130
131
132
133
134
135
136
137 public void setGuid( String strGuid )
138 {
139 this._strGuid = strGuid;
140 }
141
142
143
144
145
146
147 public String getFirstName( )
148 {
149 return _strFirstName;
150 }
151
152
153
154
155
156
157
158 public void setFirstName( String strFirstName )
159 {
160 this._strFirstName = strFirstName;
161 }
162
163
164
165
166
167
168 public String getLastName( )
169 {
170 return _strLastName;
171 }
172
173
174
175
176
177
178
179 public void setLastName( String strLastName )
180 {
181 this._strLastName = strLastName;
182 }
183
184
185
186
187
188
189 public String getEmail( )
190 {
191 return _strEmail;
192 }
193
194
195
196
197
198
199
200 public void setEmail( String strEmail )
201 {
202 this._strEmail = strEmail;
203 }
204
205
206
207
208
209
210 public String getPhoneNumber( )
211 {
212 return _strPhoneNumber;
213 }
214
215
216
217
218
219
220
221 public void setPhoneNumber( String strPhoneNumber )
222 {
223 this._strPhoneNumber = strPhoneNumber;
224 }
225
226
227
228
229
230
231 public List<Appointment> getAppointments( )
232 {
233 return _listAppointments;
234 }
235
236
237
238
239
240
241
242 public void setAppointments( List<Appointment> listAppointments )
243 {
244 this._listAppointments = listAppointments;
245 }
246
247 }