View Javadoc
1   package org.kuali.ole.select.bo;
2   
3   import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue;
4   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
5   
6   import java.sql.Timestamp;
7   import java.util.ArrayList;
8   import java.util.List;
9   
10  /**
11   * OleLicenseRequestBo is the business object class for License Request Maintenance Document.
12   */
13  public class OleLicenseRequestBo extends PersistableBusinessObjectBase {
14  
15      private String oleLicenseRequestId;
16      private String licenseRequestStatusCode;
17      private String assignee;
18      private String locationId;
19      private String licenseRequestTypeId;
20      private String eResourceDocNumber;
21      private String agreementId;
22      private String licenseRequestWorkflowTypeCode;
23      private String documentNumber;
24  
25      private String agreementMethod;
26      private List<OleAgreementDocumentMetadata> agreementDocumentMetadataList = new ArrayList<OleAgreementDocumentMetadata>();
27      private List<OleEventLogBo> eventLogs = new ArrayList<OleEventLogBo>();
28      private List<OleLicenseRequestItemTitle> oleLicenseRequestItemTitles = new ArrayList<OleLicenseRequestItemTitle>();
29      private OleLicenseRequestStatus oleLicenseRequestStatus;
30      private OleLicenseRequestLocation oleLicenseRequestLocation = new OleLicenseRequestLocation();
31      private OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType = new OleLicenseRequestWorkflowType();
32  
33      private String eResourceName;
34      private String linkedAgreement;
35      private String agreementDate;
36      private String agreementUser;
37      private String agreementStatus;
38      private String agreementType;
39      private String agreementMd;
40      private OleLicenseRequestType oleLicenseRequestType = new OleLicenseRequestType();
41      private Timestamp createdDateFrom;
42      private Timestamp createdDateTo;
43      private Timestamp createdDate;
44  
45      private Timestamp lastModifiedDateFrom;
46      private Timestamp lastModifiedDateTo;
47      private boolean lastModifiedDateSearchType;
48  
49      private String licenseDocumentNumber;
50      private DocumentRouteHeaderValue documentRouteHeaderValue = new DocumentRouteHeaderValue();
51  
52      private OleAgreementMethod oleAgreementMethod = new OleAgreementMethod();
53      private String agreementMethodId;
54  
55  
56      public String getAgreementMethodId() {
57          return agreementMethodId;
58      }
59  
60      public void setAgreementMethodId(String agreementMethodId) {
61          this.agreementMethodId = agreementMethodId;
62      }
63  
64      public OleAgreementMethod getOleAgreementMethod() {
65          return oleAgreementMethod;
66      }
67  
68      public void setOleAgreementMethod(OleAgreementMethod oleAgreementMethod) {
69          this.oleAgreementMethod = oleAgreementMethod;
70      }
71  
72      public void setOleLicenseRequestType(OleLicenseRequestType oleLicenseRequestType) {
73          this.oleLicenseRequestType = oleLicenseRequestType;
74      }
75  
76      public OleLicenseRequestType getOleLicenseRequestType() {
77  
78          return oleLicenseRequestType;
79      }
80  
81      private boolean present;
82  
83      /**
84       * Initiate oleLicenseRequestStatus.
85       */
86      public OleLicenseRequestBo() {
87          /*if(oleLicenseRequestStatus==null){
88              oleLicenseRequestStatus = new OleLicenseRequestStatus();
89              oleLicenseRequestStatus.setName("License Needed1");
90          }*/
91      }
92  
93      public String geteResourceName() {
94          return eResourceName;
95      }
96  
97      public void seteResourceName(String eResourceName) {
98          this.eResourceName = eResourceName;
99      }
100 
101     /**
102      * Gets the oleLicenseRequestStatus attribute.
103      *
104      * @return Returns the oleLicenseRequestStatus
105      */
106     public OleLicenseRequestStatus getOleLicenseRequestStatus() {
107         return oleLicenseRequestStatus;
108     }
109 
110     /**
111      * Sets the oleLicenseRequestStatus attribute value.
112      *
113      * @param oleLicenseRequestStatus The oleLicenseRequestStatus to set.
114      */
115     public void setOleLicenseRequestStatus(OleLicenseRequestStatus oleLicenseRequestStatus) {
116         this.oleLicenseRequestStatus = oleLicenseRequestStatus;
117     }
118 
119     /**
120      * Gets the oleLicenseRequestId attribute.
121      *
122      * @return Returns the oleLicenseRequestId
123      */
124     public String getOleLicenseRequestId() {
125         return oleLicenseRequestId;
126     }
127 
128     /**
129      * Sets the oleLicenseRequestId attribute value.
130      *
131      * @param oleLicenseRequestId The oleLicenseRequestId to set.
132      */
133     public void setOleLicenseRequestId(String oleLicenseRequestId) {
134         this.oleLicenseRequestId = oleLicenseRequestId;
135     }
136 
137     /**
138      * Gets the licenseRequestStatusCode attribute.
139      *
140      * @return Returns the licenseRequestStatusCode
141      */
142     public String getLicenseRequestStatusCode() {
143         return licenseRequestStatusCode;
144     }
145 
146     /**
147      * Sets the licenseRequestStatusCode attribute value.
148      *
149      * @param licenseRequestStatusCode The licenseRequestStatusCode to set.
150      */
151     public void setLicenseRequestStatusCode(String licenseRequestStatusCode) {
152         this.licenseRequestStatusCode = licenseRequestStatusCode;
153     }
154 
155     /**
156      * Gets the assignee attribute.
157      *
158      * @return Returns the assignee
159      */
160     public String getAssignee() {
161         return assignee;
162     }
163 
164     /**
165      * Sets the assignee attribute value.
166      *
167      * @param assignee The assignee to set.
168      */
169     public void setAssignee(String assignee) {
170         this.assignee = assignee;
171     }
172 
173     /**
174      * Gets the locationId attribute.
175      *
176      * @return Returns the locationId
177      */
178     public String getLocationId() {
179         return locationId;
180     }
181 
182     /**
183      * Sets the locationId attribute value.
184      *
185      * @param locationId The locationId to set.
186      */
187     public void setLocationId(String locationId) {
188         this.locationId = locationId;
189     }
190 
191     /**
192      * Gets the licenseRequestTypeId attribute.
193      *
194      * @return Returns the licenseRequestTypeId
195      */
196     public String getLicenseRequestTypeId() {
197         return licenseRequestTypeId;
198     }
199 
200     /**
201      * Sets the licenseRequestTypeId attribute value.
202      *
203      * @param licenseRequestTypeId The licenseRequestTypeId to set.
204      */
205     public void setLicenseRequestTypeId(String licenseRequestTypeId) {
206         this.licenseRequestTypeId = licenseRequestTypeId;
207     }
208 
209     /**
210      * Gets the eventLogs attribute.
211      *
212      * @return Returns the eventLogs
213      */
214     public List<OleEventLogBo> getEventLogs() {
215         return eventLogs;
216     }
217 
218     /**
219      * Sets the eventLogs attribute value.
220      *
221      * @param eventLogs The eventLogs to set.
222      */
223     public void setEventLogs(List<OleEventLogBo> eventLogs) {
224         this.eventLogs = eventLogs;
225     }
226 
227     /**
228      * Gets the requisitionDocNumber attribute.
229      *
230      * @return Returns the requisitionDocNumber
231      */
232     public String geteResourceDocNumber() {
233         return eResourceDocNumber;
234     }
235 
236 
237     /**
238      * Sets the requisitionDocNumber attribute value.
239      *
240      * @param eResourceDocNumber The requisitionDocNumber to set.
241      */
242     public void seteResourceDocNumber(String eResourceDocNumber) {
243         this.eResourceDocNumber = eResourceDocNumber;
244     }
245 
246     /**
247      * Gets the agreementId attribute.
248      *
249      * @return Returns the agreementId
250      */
251     public String getAgreementId() {
252         return agreementId;
253     }
254 
255     /**
256      * Sets the agreementId attribute value.
257      *
258      * @param agreementId The agreementId to set.
259      */
260     public void setAgreementId(String agreementId) {
261         this.agreementId = agreementId;
262     }
263 
264     /**
265      * Gets the licenseRequestWorkflowTypeCode attribute.
266      *
267      * @return Returns the licenseRequestWorkflowTypeCode
268      */
269     public String getLicenseRequestWorkflowTypeCode() {
270         return licenseRequestWorkflowTypeCode;
271     }
272 
273     /**
274      * Sets the licenseRequestWorkflowTypeCode attribute value.
275      *
276      * @param licenseRequestWorkflowTypeCode The licenseRequestWorkflowTypeCode to set.
277      */
278     public void setLicenseRequestWorkflowTypeCode(String licenseRequestWorkflowTypeCode) {
279         this.licenseRequestWorkflowTypeCode = licenseRequestWorkflowTypeCode;
280     }
281 
282     /**
283      * Gets the agreementMethod attribute.
284      *
285      * @return Returns the agreementMethod
286      */
287     public String getAgreementMethod() {
288         return agreementMethod;
289     }
290 
291     /**
292      * Sets the agreementMethod attribute value.
293      *
294      * @param agreementMethod The agreementMethod to set.
295      */
296     public void setAgreementMethod(String agreementMethod) {
297         this.agreementMethod = agreementMethod;
298     }
299 
300     /**
301      * Gets the agreementDocumentMetadataList attribute.
302      *
303      * @return Returns the agreementDocumentMetadataList
304      */
305     public List<OleAgreementDocumentMetadata> getAgreementDocumentMetadataList() {
306         return agreementDocumentMetadataList;
307     }
308 
309     /**
310      * Sets the agreementDocumentMetadataList attribute value.
311      *
312      * @param agreementDocumentMetadataList The agreementDocumentMetadataList to set.
313      */
314     public void setAgreementDocumentMetadataList(List<OleAgreementDocumentMetadata> agreementDocumentMetadataList) {
315         this.agreementDocumentMetadataList = agreementDocumentMetadataList;
316     }
317 
318     public String getDocumentNumber() {
319         return documentNumber;
320     }
321 
322     public void setDocumentNumber(String documentNumber) {
323         this.documentNumber = documentNumber;
324     }
325 
326     public OleLicenseRequestLocation getOleLicenseRequestLocation() {
327         return oleLicenseRequestLocation;
328     }
329 
330     public void setOleLicenseRequestLocation(OleLicenseRequestLocation oleLicenseRequestLocation) {
331         this.oleLicenseRequestLocation = oleLicenseRequestLocation;
332     }
333 
334     public OleLicenseRequestWorkflowType getOleLicenseRequestWorkflowType() {
335         return oleLicenseRequestWorkflowType;
336     }
337 
338     public void setOleLicenseRequestWorkflowType(OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType) {
339         this.oleLicenseRequestWorkflowType = oleLicenseRequestWorkflowType;
340     }
341 
342     public String getLinkedAgreement() {
343         return linkedAgreement;
344     }
345 
346     public void setLinkedAgreement(String linkedAgreement) {
347         this.linkedAgreement = linkedAgreement;
348     }
349 
350     public String getAgreementDate() {
351         return agreementDate;
352     }
353 
354     public void setAgreementDate(String agreementDate) {
355         this.agreementDate = agreementDate;
356     }
357 
358     public String getAgreementUser() {
359         return agreementUser;
360     }
361 
362     public void setAgreementUser(String agreementUser) {
363         this.agreementUser = agreementUser;
364     }
365 
366     public String getAgreementStatus() {
367         return agreementStatus;
368     }
369 
370     public void setAgreementStatus(String agreementStatus) {
371         this.agreementStatus = agreementStatus;
372     }
373 
374     public String getAgreementType() {
375         return agreementType;
376     }
377 
378     public void setAgreementType(String agreementType) {
379         this.agreementType = agreementType;
380     }
381 
382     public String getAgreementMd() {
383         return agreementMd;
384     }
385 
386     public void setAgreementMd(String agreementMd) {
387         this.agreementMd = agreementMd;
388     }
389 
390     public boolean isPresent() {
391         return (this.agreementDate != null || this.agreementUser != null || this.agreementStatus != null ||
392                 this.agreementType != null || this.agreementMd != null || licenseRequestStatusCode != null) ? true : false;
393     }
394 
395     public List<OleLicenseRequestItemTitle> getOleLicenseRequestItemTitles() {
396         return oleLicenseRequestItemTitles;
397     }
398 
399     public void setOleLicenseRequestItemTitles(List<OleLicenseRequestItemTitle> oleLicenseRequestItemTitles) {
400         this.oleLicenseRequestItemTitles = oleLicenseRequestItemTitles;
401     }
402 
403     public Timestamp getCreatedDate() {
404         return createdDate;
405     }
406 
407     public void setCreatedDate(Timestamp createdDate) {
408         this.createdDate = createdDate;
409     }
410 
411     public Timestamp getCreatedDateFrom() {
412         return createdDateFrom;
413     }
414 
415     public void setCreatedDateFrom(Timestamp createdDateFrom) {
416         this.createdDateFrom = createdDateFrom;
417     }
418 
419     public Timestamp getCreatedDateTo() {
420         return createdDateTo;
421     }
422 
423     public void setCreatedDateTo(Timestamp createdDateTo) {
424         this.createdDateTo = createdDateTo;
425     }
426 
427     /**
428      * Gets the lastModifiedDateFrom attribute.
429      *
430      * @return Returns the lastModifiedDateFrom
431      */
432     public Timestamp getLastModifiedDateFrom() {
433         return lastModifiedDateFrom;
434     }
435 
436     /**
437      * Sets the lastModifiedDateFrom attribute value.
438      *
439      * @param lastModifiedDateFrom
440      */
441     public void setLastModifiedDateFrom(Timestamp lastModifiedDateFrom) {
442         this.lastModifiedDateFrom = lastModifiedDateFrom;
443     }
444 
445     /**
446      * Gets the lastModifiedDateTo attribute.
447      *
448      * @return Returns the lastModifiedDateTo
449      */
450     public Timestamp getLastModifiedDateTo() {
451         return lastModifiedDateTo;
452     }
453 
454     /**
455      * Sets the lastModifiedDateTo attribute value.
456      *
457      * @param lastModifiedDateTo
458      */
459     public void setLastModifiedDateTo(Timestamp lastModifiedDateTo) {
460         this.lastModifiedDateTo = lastModifiedDateTo;
461     }
462 
463     /**
464      * Gets the lastModifiedDateSearchType attribute.
465      *
466      * @return Returns the lastModifiedDateSearchType
467      */
468     public boolean isLastModifiedDateSearchType() {
469         return lastModifiedDateSearchType;
470     }
471 
472     /**
473      * Sets the lastModifiedDateSearchType attribute value.
474      *
475      * @param lastModifiedDateSearchType
476      */
477     public void setLastModifiedDateSearchType(boolean lastModifiedDateSearchType) {
478         this.lastModifiedDateSearchType = lastModifiedDateSearchType;
479     }
480 
481 
482     public String getLicenseDocumentNumber() {
483         return licenseDocumentNumber;
484     }
485 
486     public void setLicenseDocumentNumber(String licenseDocumentNumber) {
487         this.licenseDocumentNumber = licenseDocumentNumber;
488     }
489 
490     public DocumentRouteHeaderValue getDocumentRouteHeaderValue() {
491         return documentRouteHeaderValue;
492     }
493 
494     public void setDocumentRouteHeaderValue(DocumentRouteHeaderValue documentRouteHeaderValue) {
495         this.documentRouteHeaderValue = documentRouteHeaderValue;
496     }
497 }