View Javadoc
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   * <p>Java class for GetMyScheduledReportsResponseMsg complex type.
16   * 
17   * <p>The following schema fragment specifies the expected content contained within this class.
18   * 
19   * <pre>
20   * &lt;complexType name="GetMyScheduledReportsResponseMsg">
21   *   &lt;complexContent>
22   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
23   *       &lt;sequence>
24   *         &lt;element name="classification" type="{urn:org:miloss:fgsms:services:interfaces:common}SecurityWrapper"/>
25   *         &lt;element name="CompletedJobs" type="{urn:org:miloss:fgsms:services:interfaces:automatedReportingService}ExistingReportDefitions" maxOccurs="unbounded" minOccurs="0"/>
26   *       &lt;/sequence>
27   *     &lt;/restriction>
28   *   &lt;/complexContent>
29   * &lt;/complexType>
30   * </pre>
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       * Gets the value of the classification property.
51       * 
52       * @return
53       *     possible object is
54       *     {@link SecurityWrapper }
55       *     
56       */
57      public SecurityWrapper getClassification() {
58          return classification;
59      }
60  
61      /**
62       * Sets the value of the classification property.
63       * 
64       * @param value
65       *     allowed object is
66       *     {@link SecurityWrapper }
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       * Gets the value of the completedJobs property.
79       * 
80       * <p>
81       * This accessor method returns a reference to the live list,
82       * not a snapshot. Therefore any modification you make to the
83       * returned list will be present inside the JAXB object.
84       * This is why there is not a <CODE>set</CODE> method for the completedJobs property.
85       * 
86       * <p>
87       * For example, to add a new item, do as follows:
88       * <pre>
89       *    getCompletedJobs().add(newItem);
90       * </pre>
91       * 
92       * 
93       * <p>
94       * Objects of the following type(s) are allowed in the list
95       * {@link ExistingReportDefitions }
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 }