1
2 package org.miloss.fgsms.services.interfaces.automatedreportingservice;
3
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlRootElement;
11 import javax.xml.bind.annotation.XmlSchemaType;
12 import javax.xml.bind.annotation.XmlType;
13 import java.util.Calendar;
14 import org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction;
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 @XmlAccessorType(XmlAccessType.FIELD)
48 @XmlType(name = "ReportDefinition", propOrder = {
49 "friendlyName",
50 "enabled",
51 "jobId",
52 "owner",
53 "lastRanAt",
54 "schedule",
55 "notifications",
56 "exportCSVDataRequestMsg",
57 "exportDataRequestMsg",
58 "additionalReaders"
59 })
60 @XmlRootElement
61 public class ReportDefinition
62 implements Serializable
63 {
64
65 private final static long serialVersionUID = 1L;
66 @XmlElement(required = true, nillable = true)
67 protected String friendlyName;
68 protected boolean enabled;
69 @XmlElement(required = false, nillable = true)
70 protected String jobId;
71 @XmlElement(required = false, nillable = true)
72 protected String owner;
73 @XmlElement(required = true, nillable = true)
74 @XmlSchemaType(name = "dateTime")
75 protected Calendar lastRanAt;
76 @XmlElement(required = true)
77 protected ScheduleDefinition schedule;
78 @XmlElement(required = false, nillable = true)
79 protected List<SLAAction> notifications;
80 @XmlElement(name = "ExportCSVDataRequestMsg", nillable = true)
81 protected ExportCSVDataRequestMsg exportCSVDataRequestMsg;
82 @XmlElement(name = "ExportDataRequestMsg", nillable = true)
83 protected ExportDataRequestMsg exportDataRequestMsg;
84 @XmlElement(required = false, nillable = true)
85 protected List<String> additionalReaders;
86
87
88
89
90
91
92
93
94
95 public String getFriendlyName() {
96 return friendlyName;
97 }
98
99
100
101
102
103
104
105
106
107 public void setFriendlyName(String value) {
108 this.friendlyName = value;
109 }
110
111 public boolean isSetFriendlyName() {
112 return (this.friendlyName!= null);
113 }
114
115
116
117
118
119 public boolean isEnabled() {
120 return enabled;
121 }
122
123
124
125
126
127 public void setEnabled(boolean value) {
128 this.enabled = value;
129 }
130
131 public boolean isSetEnabled() {
132 return true;
133 }
134
135
136
137
138
139
140
141
142
143 public String getJobId() {
144 return jobId;
145 }
146
147
148
149
150
151
152
153
154
155 public void setJobId(String value) {
156 this.jobId = value;
157 }
158
159 public boolean isSetJobId() {
160 return (this.jobId!= null);
161 }
162
163
164
165
166
167
168
169
170
171 public String getOwner() {
172 return owner;
173 }
174
175
176
177
178
179
180
181
182
183 public void setOwner(String value) {
184 this.owner = value;
185 }
186
187 public boolean isSetOwner() {
188 return (this.owner!= null);
189 }
190
191
192
193
194
195
196
197
198
199 public Calendar getLastRanAt() {
200 return lastRanAt;
201 }
202
203
204
205
206
207
208
209
210
211 public void setLastRanAt(Calendar value) {
212 this.lastRanAt = value;
213 }
214
215 public boolean isSetLastRanAt() {
216 return (this.lastRanAt!= null);
217 }
218
219
220
221
222
223
224
225
226
227 public ScheduleDefinition getSchedule() {
228 return schedule;
229 }
230
231
232
233
234
235
236
237
238
239 public void setSchedule(ScheduleDefinition value) {
240 this.schedule = value;
241 }
242
243 public boolean isSetSchedule() {
244 return (this.schedule!= null);
245 }
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269 public List<SLAAction> getNotifications() {
270 if (notifications == null) {
271 notifications = new ArrayList<SLAAction>();
272 }
273 return this.notifications;
274 }
275
276 public boolean isSetNotifications() {
277 return ((this.notifications!= null)&&(!this.notifications.isEmpty()));
278 }
279
280 public void unsetNotifications() {
281 this.notifications = null;
282 }
283
284
285
286
287
288
289
290
291
292 public ExportCSVDataRequestMsg getExportCSVDataRequestMsg() {
293 return exportCSVDataRequestMsg;
294 }
295
296
297
298
299
300
301
302
303
304 public void setExportCSVDataRequestMsg(ExportCSVDataRequestMsg value) {
305 this.exportCSVDataRequestMsg = value;
306 }
307
308 public boolean isSetExportCSVDataRequestMsg() {
309 return (this.exportCSVDataRequestMsg!= null);
310 }
311
312
313
314
315
316
317
318
319
320 public ExportDataRequestMsg getExportDataRequestMsg() {
321 return exportDataRequestMsg;
322 }
323
324
325
326
327
328
329
330
331
332 public void setExportDataRequestMsg(ExportDataRequestMsg value) {
333 this.exportDataRequestMsg = value;
334 }
335
336 public boolean isSetExportDataRequestMsg() {
337 return (this.exportDataRequestMsg!= null);
338 }
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362 public List<String> getAdditionalReaders() {
363 if (additionalReaders == null) {
364 additionalReaders = new ArrayList<String>();
365 }
366 return this.additionalReaders;
367 }
368
369 public boolean isSetAdditionalReaders() {
370 return ((this.additionalReaders!= null)&&(!this.additionalReaders.isEmpty()));
371 }
372
373 public void unsetAdditionalReaders() {
374 this.additionalReaders = null;
375 }
376
377 }