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.web.dto;
35
36 import java.io.Serializable;
37 import java.util.List;
38
39 import javax.validation.constraints.Min;
40 import javax.validation.constraints.NotBlank;
41 import javax.validation.constraints.NotNull;
42 import javax.validation.constraints.Size;
43
44 import fr.paris.lutece.plugins.appointment.business.planning.WorkingDay;
45
46
47
48
49
50
51
52 public class ReservationRuleDTO implements Serializable
53 {
54
55
56
57
58 private static final long serialVersionUID = -5154752950203822668L;
59
60
61
62
63 private int _nIdReservationRule;
64
65 @NotBlank( message = "#i18n{appointment.validation.week.name.notEmpty}" )
66 @Size( max = 255, message = "#i18n{appointment.validation.week.Title.size}" )
67 private String _strName;
68
69 @NotBlank( message = "#i18n{appointment.validation.week.description.notEmpty}" )
70 @Size( max = 255, message = "#i18n{appointment.validation.week.description.size}" )
71 private String _strDescriptionRule;
72
73 @NotBlank( message = "#i18n{appointment.validation.week.color.notEmpty}" )
74 @Size( max = 255, message = "#i18n{appointment.validation.week.color.size}" )
75 private String _strColor;
76
77 private boolean _bEnable = true;
78
79
80
81
82 @NotBlank( message = "#i18n{portal.validation.message.notEmpty}" )
83 private String _strTimeStart;
84
85
86
87
88 @NotBlank( message = "#i18n{portal.validation.message.notEmpty}" )
89 private String _strTimeEnd;
90
91
92
93
94 @NotNull( message = "#i18n{portal.validation.message.notEmpty}" )
95 @Min( value = 1, message = "#i18n{portal.validation.message.notEmpty}" )
96 private int _nDurationAppointments;
97
98
99
100
101 @Min( value = 1, message = "#i18n{portal.validation.message.notEmpty}" )
102 private int _nMaxCapacityPerSlot = 1;
103
104
105
106
107 @Min( value = 1, message = "#i18n{portal.validation.message.notEmpty}" )
108 private int _nMaxPeoplePerAppointment = 1;
109
110
111
112
113 private int _nIdForm;
114
115
116
117
118 private List<WorkingDay> _listWorkingDays;
119
120
121
122
123
124
125 public int getIdReservationRule( )
126 {
127 return _nIdReservationRule;
128 }
129
130
131
132
133
134
135
136 public void setIdReservationRule( int nIdReservationRule )
137 {
138 this._nIdReservationRule = nIdReservationRule;
139 }
140
141
142
143
144
145
146 public String getName( )
147 {
148 return _strName;
149 }
150
151
152
153
154
155
156
157 public void setName( String strName )
158 {
159 _strName = strName;
160 }
161
162
163
164
165
166
167 public String getDescriptionRule( )
168 {
169 return _strDescriptionRule;
170 }
171
172
173
174
175
176
177
178 public void setDescriptionRule( String strDescription )
179 {
180 _strDescriptionRule = strDescription;
181 }
182
183
184
185
186
187
188 public String getColor( )
189 {
190 return _strColor;
191 }
192
193
194
195
196
197
198
199 public void setColor( String strColor )
200 {
201 _strColor = strColor;
202 }
203
204
205
206
207
208
209 public boolean getEnable( )
210 {
211 return _bEnable;
212 }
213
214
215
216
217
218
219
220 public void setEnable( boolean bEnable )
221 {
222 _bEnable = bEnable;
223 }
224
225
226
227
228
229
230 public String getTimeStart( )
231 {
232 return _strTimeStart;
233 }
234
235
236
237
238
239
240
241 public void setTimeStart( String timeStart )
242 {
243 _strTimeStart = timeStart;
244 }
245
246
247
248
249
250
251 public String getTimeEnd( )
252 {
253 return _strTimeEnd;
254 }
255
256
257
258
259
260
261
262 public void setTimeEnd( String timeEnd )
263 {
264 _strTimeEnd = timeEnd;
265 }
266
267
268
269
270
271
272 public int getDurationAppointments( )
273 {
274 return _nDurationAppointments;
275 }
276
277
278
279
280
281
282
283 public void setDurationAppointments( int nDurationAppointments )
284 {
285 _nDurationAppointments = nDurationAppointments;
286 }
287
288
289
290
291
292
293 public int getMaxCapacityPerSlot( )
294 {
295 return _nMaxCapacityPerSlot;
296 }
297
298
299
300
301
302
303
304 public void setMaxCapacityPerSlot( int nMaxCapacityPerSlot )
305 {
306 this._nMaxCapacityPerSlot = nMaxCapacityPerSlot;
307 }
308
309
310
311
312
313
314 public int getMaxPeoplePerAppointment( )
315 {
316 return _nMaxPeoplePerAppointment;
317 }
318
319
320
321
322
323
324
325 public void setMaxPeoplePerAppointment( int nMaxPeoplePerAppointment )
326 {
327 this._nMaxPeoplePerAppointment = nMaxPeoplePerAppointment;
328 }
329
330
331
332
333
334
335 public int getIdForm( )
336 {
337 return _nIdForm;
338 }
339
340
341
342
343
344
345
346 public void setIdForm( int nIdForm )
347 {
348 this._nIdForm = nIdForm;
349 }
350
351
352
353
354
355
356 public List<WorkingDay> getListWorkingDay( )
357 {
358 return _listWorkingDays;
359 }
360
361
362
363
364
365
366
367 public void setListWorkingDay( List<WorkingDay> listWorkingDays )
368 {
369 this._listWorkingDays = listWorkingDays;
370 }
371
372 }