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.grubusiness.business.demand;
35
36 import com.fasterxml.jackson.annotation.JsonIgnore;
37 import com.fasterxml.jackson.annotation.JsonProperty;
38 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
39 import com.fasterxml.jackson.annotation.JsonRootName;
40
41 import fr.paris.lutece.plugins.grubusiness.business.customer.Customer;
42 import fr.paris.lutece.plugins.grubusiness.business.notification.Notification;
43
44 import java.util.ArrayList;
45 import java.util.List;
46
47
48
49
50 @JsonRootName( value = "demand" )
51 @JsonPropertyOrder( {
52 "id", "type_id", "subtype_id", "reference", "status_id", "max_step", "current_step", "customer"
53 } )
54 public class Demand
55 {
56
57 private int _nUId;
58 private String _strId;
59 private String _strReference;
60 private String _strTypeId;
61 private String _strSubtypeId;
62 private int _nStatusId;
63 private String _strTitle;
64 private List<Notification> _listNotifications;
65 private List<Action> _listActions = new ArrayList<Action>( );
66 private long _lCreationDate;
67 private long _lClosureDate;
68 private int _nMaxSteps;
69 private int _nCurrentStep;
70 private boolean _bShowDetails;
71 private Customer _customer;
72 private long _lModifyDate;
73
74
75
76
77
78
79 @JsonProperty
80 public int getUID( )
81 {
82 return _nUId;
83 }
84
85
86
87
88
89
90
91 @JsonProperty
92 public void setUID( int nUId )
93 {
94 _nUId = nUId;
95 }
96
97
98
99
100
101
102 @JsonProperty( "id" )
103 public String getId( )
104 {
105 return _strId;
106 }
107
108
109
110
111
112
113
114 @JsonProperty( "id" )
115 public void setId( String strId )
116 {
117 _strId = strId;
118 }
119
120
121
122
123
124
125 @JsonProperty( "reference" )
126 public String getReference( )
127 {
128 return _strReference;
129 }
130
131
132
133
134
135
136
137 @JsonProperty( "reference" )
138 public void setReference( String strReference )
139 {
140 _strReference = strReference;
141 }
142
143
144
145
146
147
148 @JsonProperty( "status_id" )
149 public int getStatusId( )
150 {
151 return _nStatusId;
152 }
153
154
155
156
157
158
159
160 @JsonProperty( "status_id" )
161 public void setStatusId( int nStatusId )
162 {
163 _nStatusId = nStatusId;
164 }
165
166
167
168
169
170
171
172 @JsonProperty( "type_id" )
173 public void setTypeId( String strTypeId )
174 {
175 _strTypeId = strTypeId;
176 }
177
178
179
180
181
182
183 @JsonProperty( "type_id" )
184 public String getTypeId( )
185 {
186 return _strTypeId;
187 }
188
189
190
191
192
193
194
195 @JsonProperty( "subtype_id" )
196 public void setSubtypeId( String strSubtypeId )
197 {
198 _strSubtypeId = strSubtypeId;
199 }
200
201
202
203
204
205
206 @JsonProperty( "subtype_id" )
207 public String getSubtypeId( )
208 {
209 return _strSubtypeId;
210 }
211
212
213
214
215
216
217 @JsonIgnore
218 public String getTitle( )
219 {
220 return _strTitle;
221 }
222
223
224
225
226
227
228
229 public void setTitle( String strTitle )
230 {
231 _strTitle = strTitle;
232 }
233
234
235
236
237
238
239 @JsonIgnore
240 public List<Notification> getNotifications( )
241 {
242 return _listNotifications;
243 }
244
245
246
247
248
249
250
251 public void setNotifications( List<Notification> listNotifications )
252 {
253 _listNotifications = listNotifications;
254 }
255
256
257
258
259
260
261 @JsonIgnore
262 public List<Action> getActions( )
263 {
264 return _listActions;
265 }
266
267
268
269
270
271
272
273 public void setActions( List<Action> listActions )
274 {
275 _listActions = listActions;
276 }
277
278
279
280
281
282
283
284 public void addAction( Action action )
285 {
286 _listActions.add( action );
287 }
288
289
290
291
292
293
294 @JsonProperty( "customer" )
295 public Customer getCustomer( )
296 {
297 return _customer;
298 }
299
300
301
302
303
304
305
306 @JsonProperty( "customer" )
307 public void setCustomer( Customer customer )
308 {
309 _customer = customer;
310 }
311
312
313
314
315
316
317 @JsonIgnore
318 public long getCreationDate( )
319 {
320 return _lCreationDate;
321 }
322
323
324
325
326
327
328
329 public void setCreationDate( long lCreationDate )
330 {
331 this._lCreationDate = lCreationDate;
332 }
333
334
335
336
337
338
339 @JsonIgnore
340 public long getClosureDate( )
341 {
342 return _lClosureDate;
343 }
344
345
346
347
348
349
350
351 public void setClosureDate( long lClosureDate )
352 {
353 this._lClosureDate = lClosureDate;
354 }
355
356
357
358
359
360
361 @JsonProperty( "max_step" )
362 public int getMaxSteps( )
363 {
364 return _nMaxSteps;
365 }
366
367
368
369
370
371
372
373 @JsonProperty( "max_step" )
374 public void setMaxSteps( int nMaxSteps )
375 {
376 _nMaxSteps = nMaxSteps;
377 }
378
379
380
381
382
383
384 @JsonProperty( "current_step" )
385 public int getCurrentStep( )
386 {
387 return _nCurrentStep;
388 }
389
390
391
392
393
394
395
396 @JsonProperty( "current_step" )
397 public void setCurrentStep( int nCurrentStep )
398 {
399 _nCurrentStep = nCurrentStep;
400 }
401
402
403
404
405
406
407
408 public void setShowDetails( boolean bShowDetails )
409 {
410 _bShowDetails = bShowDetails;
411 }
412
413
414
415
416
417
418 @JsonIgnore
419 public boolean getShowDetails( )
420 {
421 return _bShowDetails;
422 }
423
424
425
426
427 @JsonProperty( "modify_date" )
428 public long getModifyDate( )
429 {
430 return _lModifyDate;
431 }
432
433
434
435
436
437 public void setModifyDate( long lModifyDate )
438 {
439 this._lModifyDate = lModifyDate;
440 }
441 }