View Javadoc

1   package org.kuali.ole.license.bo;
2   
3   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
4   
5   import java.sql.Timestamp;
6   import java.util.ArrayList;
7   import java.util.List;
8   
9   /**
10   * OleLicenseRequestBo is the business object class for License Request Maintenance Document.
11   */
12  public class OleLicenseRequestBo extends PersistableBusinessObjectBase {
13  
14      private String oleLicenseRequestId;
15      private String licenseRequestStatusCode;
16      private String assignee;
17      private String locationId;
18      private String licenseRequestTypeId;
19      private String requisitionDocNumber;
20      private String agreementId;
21      private String licenseRequestWorkflowTypeCode;
22      private String documentNumber;
23  
24      private String agreementMethod;
25      private List<OleAgreementDocumentMetadata> agreementDocumentMetadataList = new ArrayList<OleAgreementDocumentMetadata>();
26      private List<OleEventLogBo> eventLogs = new ArrayList<OleEventLogBo>();
27      private List<OleLicenseRequestItemTitle> oleLicenseRequestItemTitles = new ArrayList<OleLicenseRequestItemTitle>();
28      private OleLicenseRequestStatus oleLicenseRequestStatus;
29      private OleLicenseRequestLocation oleLicenseRequestLocation = new OleLicenseRequestLocation();
30      private OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType = new OleLicenseRequestWorkflowType();
31      private Timestamp lastModifiedDate;
32      private String bibliographicTitle;
33      private String linkedAgreement;
34      private String agreementDate;
35      private String agreementUser;
36      private String agreementStatus;
37      private String agreementType;
38      private String agreementMd;
39      private OleLicenseRequestType oleLicenseRequestType = new OleLicenseRequestType();
40  
41      public void setOleLicenseRequestType(OleLicenseRequestType oleLicenseRequestType) {
42          this.oleLicenseRequestType = oleLicenseRequestType;
43      }
44  
45      public OleLicenseRequestType getOleLicenseRequestType() {
46  
47          return oleLicenseRequestType;
48      }
49  
50      private boolean present;
51  
52      public Timestamp getLastModifiedDate() {
53          return lastModifiedDate;
54      }
55  
56      public void setLastModifiedDate(Timestamp lastModifiedDate) {
57          this.lastModifiedDate = lastModifiedDate;
58      }
59  
60      /**
61       *  Initiate oleLicenseRequestStatus.
62       */
63      public OleLicenseRequestBo() {
64          if(oleLicenseRequestStatus==null){
65              oleLicenseRequestStatus = new OleLicenseRequestStatus();
66              oleLicenseRequestStatus.setName("License Needed");
67          }
68      }
69  
70      /**
71       *  Gets the oleLicenseRequestStatus attribute.
72       * @return  Returns the oleLicenseRequestStatus
73       */
74      public OleLicenseRequestStatus getOleLicenseRequestStatus() {
75          return oleLicenseRequestStatus;
76      }
77  
78      /**
79       * Sets the oleLicenseRequestStatus attribute value.
80       * @param oleLicenseRequestStatus The oleLicenseRequestStatus to set.
81       */
82      public void setOleLicenseRequestStatus(OleLicenseRequestStatus oleLicenseRequestStatus) {
83          this.oleLicenseRequestStatus = oleLicenseRequestStatus;
84      }
85  
86      /**
87       *  Gets the oleLicenseRequestId attribute.
88       * @return  Returns the oleLicenseRequestId
89       */
90      public String getOleLicenseRequestId() {
91          return oleLicenseRequestId;
92      }
93  
94      /**
95       * Sets the oleLicenseRequestId attribute value.
96       * @param oleLicenseRequestId The oleLicenseRequestId to set.
97       */
98      public void setOleLicenseRequestId(String oleLicenseRequestId) {
99          this.oleLicenseRequestId = oleLicenseRequestId;
100     }
101 
102     /**
103      *  Gets the licenseRequestStatusCode attribute.
104      * @return  Returns the licenseRequestStatusCode
105      */
106     public String getLicenseRequestStatusCode() {
107         return licenseRequestStatusCode;
108     }
109 
110     /**
111      * Sets the licenseRequestStatusCode attribute value.
112      * @param licenseRequestStatusCode The licenseRequestStatusCode to set.
113      */
114     public void setLicenseRequestStatusCode(String licenseRequestStatusCode) {
115         this.licenseRequestStatusCode = licenseRequestStatusCode;
116     }
117 
118     /**
119      *  Gets the assignee attribute.
120      * @return  Returns the assignee
121      */
122     public String getAssignee() {
123         return assignee;
124     }
125 
126     /**
127      * Sets the assignee attribute value.
128      * @param assignee The assignee to set.
129      */
130     public void setAssignee(String assignee) {
131         this.assignee = assignee;
132     }
133 
134     /**
135      *  Gets the locationId attribute.
136      * @return  Returns the locationId
137      */
138     public String getLocationId() {
139         return locationId;
140     }
141 
142     /**
143      * Sets the locationId attribute value.
144      * @param locationId The locationId to set.
145      */
146     public void setLocationId(String locationId) {
147         this.locationId = locationId;
148     }
149 
150     /**
151      *  Gets the licenseRequestTypeId attribute.
152      * @return  Returns the licenseRequestTypeId
153      */
154     public String getLicenseRequestTypeId() {
155         return licenseRequestTypeId;
156     }
157 
158     /**
159      * Sets the licenseRequestTypeId attribute value.
160      * @param licenseRequestTypeId The licenseRequestTypeId to set.
161      */
162     public void setLicenseRequestTypeId(String licenseRequestTypeId) {
163         this.licenseRequestTypeId = licenseRequestTypeId;
164     }
165 
166     /**
167      *  Gets the eventLogs attribute.
168      * @return  Returns the eventLogs
169      */
170     public List<OleEventLogBo> getEventLogs() {
171         return eventLogs;
172     }
173 
174     /**
175      * Sets the eventLogs attribute value.
176      * @param eventLogs The eventLogs to set.
177      */
178     public void setEventLogs(List<OleEventLogBo> eventLogs) {
179         this.eventLogs = eventLogs;
180     }
181 
182     /**
183      *  Gets the requisitionDocNumber attribute.
184      * @return  Returns the requisitionDocNumber
185      */
186     public String getRequisitionDocNumber() {
187         return requisitionDocNumber;
188     }
189 
190     /**
191      * Sets the requisitionDocNumber attribute value.
192      * @param requisitionDocNumber The requisitionDocNumber to set.
193      */
194     public void setRequisitionDocNumber(String requisitionDocNumber) {
195         this.requisitionDocNumber = requisitionDocNumber;
196     }
197 
198     /**
199      *  Gets the agreementId attribute.
200      * @return  Returns the agreementId
201      */
202     public String getAgreementId() {
203         return agreementId;
204     }
205 
206     /**
207      * Sets the agreementId attribute value.
208      * @param agreementId The agreementId to set.
209      */
210     public void setAgreementId(String agreementId) {
211         this.agreementId = agreementId;
212     }
213 
214     /**
215      *  Gets the licenseRequestWorkflowTypeCode attribute.
216      * @return  Returns the licenseRequestWorkflowTypeCode
217      */
218     public String getLicenseRequestWorkflowTypeCode() {
219         return licenseRequestWorkflowTypeCode;
220     }
221 
222     /**
223      * Sets the licenseRequestWorkflowTypeCode attribute value.
224      * @param licenseRequestWorkflowTypeCode The licenseRequestWorkflowTypeCode to set.
225      */
226     public void setLicenseRequestWorkflowTypeCode(String licenseRequestWorkflowTypeCode) {
227         this.licenseRequestWorkflowTypeCode = licenseRequestWorkflowTypeCode;
228     }
229 
230     /**
231      *  Gets the agreementMethod attribute.
232      * @return  Returns the agreementMethod
233      */
234     public String getAgreementMethod() {
235         return agreementMethod;
236     }
237 
238     /**
239      * Sets the agreementMethod attribute value.
240      * @param agreementMethod The agreementMethod to set.
241      */
242     public void setAgreementMethod(String agreementMethod) {
243         this.agreementMethod = agreementMethod;
244     }
245 
246     /**
247      *  Gets the agreementDocumentMetadataList attribute.
248      * @return  Returns the agreementDocumentMetadataList
249      */
250     public List<OleAgreementDocumentMetadata> getAgreementDocumentMetadataList() {
251         return agreementDocumentMetadataList;
252     }
253 
254     /**
255      * Sets the agreementDocumentMetadataList attribute value.
256      * @param agreementDocumentMetadataList The agreementDocumentMetadataList to set.
257      */
258     public void setAgreementDocumentMetadataList(List<OleAgreementDocumentMetadata> agreementDocumentMetadataList) {
259         this.agreementDocumentMetadataList = agreementDocumentMetadataList;
260     }
261 
262     public String getBibliographicTitle() {
263         return bibliographicTitle;
264     }
265 
266     public void setBibliographicTitle(String bibliographicTitle) {
267         this.bibliographicTitle = bibliographicTitle;
268     }
269 
270     public String getDocumentNumber() {
271         return documentNumber;
272     }
273 
274     public void setDocumentNumber(String documentNumber) {
275         this.documentNumber = documentNumber;
276     }
277 
278     public OleLicenseRequestLocation getOleLicenseRequestLocation() {
279         return oleLicenseRequestLocation;
280     }
281 
282     public void setOleLicenseRequestLocation(OleLicenseRequestLocation oleLicenseRequestLocation) {
283         this.oleLicenseRequestLocation = oleLicenseRequestLocation;
284     }
285 
286     public OleLicenseRequestWorkflowType getOleLicenseRequestWorkflowType() {
287         return oleLicenseRequestWorkflowType;
288     }
289 
290     public void setOleLicenseRequestWorkflowType(OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType) {
291         this.oleLicenseRequestWorkflowType = oleLicenseRequestWorkflowType;
292     }
293 
294     public String getLinkedAgreement() {
295         return linkedAgreement;
296     }
297 
298     public void setLinkedAgreement(String linkedAgreement) {
299         this.linkedAgreement = linkedAgreement;
300     }
301 
302     public String getAgreementDate() {
303         return agreementDate;
304     }
305 
306     public void setAgreementDate(String agreementDate) {
307         this.agreementDate = agreementDate;
308     }
309 
310     public String getAgreementUser() {
311         return agreementUser;
312     }
313 
314     public void setAgreementUser(String agreementUser) {
315         this.agreementUser = agreementUser;
316     }
317 
318     public String getAgreementStatus() {
319         return agreementStatus;
320     }
321 
322     public void setAgreementStatus(String agreementStatus) {
323         this.agreementStatus = agreementStatus;
324     }
325 
326     public String getAgreementType() {
327         return agreementType;
328     }
329 
330     public void setAgreementType(String agreementType) {
331         this.agreementType = agreementType;
332     }
333 
334     public String getAgreementMd() {
335         return agreementMd;
336     }
337 
338     public void setAgreementMd(String agreementMd) {
339         this.agreementMd = agreementMd;
340     }
341     public boolean isPresent() {
342         return  (this.agreementDate != null || this.agreementUser != null || this.agreementStatus != null ||
343                 this.agreementType != null || this.agreementMd != null || licenseRequestStatusCode != null ) ? true : false ;
344     }
345 
346     public List<OleLicenseRequestItemTitle> getOleLicenseRequestItemTitles() {
347         return oleLicenseRequestItemTitles;
348     }
349 
350     public void setOleLicenseRequestItemTitles(List<OleLicenseRequestItemTitle> oleLicenseRequestItemTitles) {
351         this.oleLicenseRequestItemTitles = oleLicenseRequestItemTitles;
352     }
353 }