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.XmlType;
11 import org.miloss.fgsms.services.interfaces.common.SecurityWrapper;
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 @XmlAccessorType(XmlAccessType.FIELD)
35 @XmlType(name = "GetMyScheduledReportsResponseMsg", propOrder = {
36 "classification",
37 "completedJobs"
38 })
39 public class GetMyScheduledReportsResponseMsg
40 implements Serializable
41 {
42
43 private final static long serialVersionUID = 1L;
44 @XmlElement(required = true, nillable = true)
45 protected SecurityWrapper classification;
46 @XmlElement(name = "CompletedJobs")
47 protected List<ExistingReportDefitions> completedJobs;
48
49
50
51
52
53
54
55
56
57 public SecurityWrapper getClassification() {
58 return classification;
59 }
60
61
62
63
64
65
66
67
68
69 public void setClassification(SecurityWrapper value) {
70 this.classification = value;
71 }
72
73 public boolean isSetClassification() {
74 return (this.classification!= null);
75 }
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99 public List<ExistingReportDefitions> getCompletedJobs() {
100 if (completedJobs == null) {
101 completedJobs = new ArrayList<ExistingReportDefitions>();
102 }
103 return this.completedJobs;
104 }
105
106 public boolean isSetCompletedJobs() {
107 return ((this.completedJobs!= null)&&(!this.completedJobs.isEmpty()));
108 }
109
110 public void unsetCompletedJobs() {
111 this.completedJobs = null;
112 }
113
114 public ReportDefinition findJobWithIdOf(String jobId) {
115 ReportDefinition rd = null;
116 for (int i = 0; i < getCompletedJobs().size(); i++) {
117 if (getCompletedJobs().get(i).getJob().getJobId().equals(jobId)) {
118 rd = getCompletedJobs().get(i).getJob();
119 return rd;
120 }
121 }
122 return rd;
123 }
124
125 }