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 bibliographicTitle;
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      /**
94       * Gets the oleLicenseRequestStatus attribute.
95       *
96       * @return Returns the oleLicenseRequestStatus
97       */
98      public OleLicenseRequestStatus getOleLicenseRequestStatus() {
99          return oleLicenseRequestStatus;
100     }
101 
102     /**
103      * Sets the oleLicenseRequestStatus attribute value.
104      *
105      * @param oleLicenseRequestStatus The oleLicenseRequestStatus to set.
106      */
107     public void setOleLicenseRequestStatus(OleLicenseRequestStatus oleLicenseRequestStatus) {
108         this.oleLicenseRequestStatus = oleLicenseRequestStatus;
109     }
110 
111     /**
112      * Gets the oleLicenseRequestId attribute.
113      *
114      * @return Returns the oleLicenseRequestId
115      */
116     public String getOleLicenseRequestId() {
117         return oleLicenseRequestId;
118     }
119 
120     /**
121      * Sets the oleLicenseRequestId attribute value.
122      *
123      * @param oleLicenseRequestId The oleLicenseRequestId to set.
124      */
125     public void setOleLicenseRequestId(String oleLicenseRequestId) {
126         this.oleLicenseRequestId = oleLicenseRequestId;
127     }
128 
129     /**
130      * Gets the licenseRequestStatusCode attribute.
131      *
132      * @return Returns the licenseRequestStatusCode
133      */
134     public String getLicenseRequestStatusCode() {
135         return licenseRequestStatusCode;
136     }
137 
138     /**
139      * Sets the licenseRequestStatusCode attribute value.
140      *
141      * @param licenseRequestStatusCode The licenseRequestStatusCode to set.
142      */
143     public void setLicenseRequestStatusCode(String licenseRequestStatusCode) {
144         this.licenseRequestStatusCode = licenseRequestStatusCode;
145     }
146 
147     /**
148      * Gets the assignee attribute.
149      *
150      * @return Returns the assignee
151      */
152     public String getAssignee() {
153         return assignee;
154     }
155 
156     /**
157      * Sets the assignee attribute value.
158      *
159      * @param assignee The assignee to set.
160      */
161     public void setAssignee(String assignee) {
162         this.assignee = assignee;
163     }
164 
165     /**
166      * Gets the locationId attribute.
167      *
168      * @return Returns the locationId
169      */
170     public String getLocationId() {
171         return locationId;
172     }
173 
174     /**
175      * Sets the locationId attribute value.
176      *
177      * @param locationId The locationId to set.
178      */
179     public void setLocationId(String locationId) {
180         this.locationId = locationId;
181     }
182 
183     /**
184      * Gets the licenseRequestTypeId attribute.
185      *
186      * @return Returns the licenseRequestTypeId
187      */
188     public String getLicenseRequestTypeId() {
189         return licenseRequestTypeId;
190     }
191 
192     /**
193      * Sets the licenseRequestTypeId attribute value.
194      *
195      * @param licenseRequestTypeId The licenseRequestTypeId to set.
196      */
197     public void setLicenseRequestTypeId(String licenseRequestTypeId) {
198         this.licenseRequestTypeId = licenseRequestTypeId;
199     }
200 
201     /**
202      * Gets the eventLogs attribute.
203      *
204      * @return Returns the eventLogs
205      */
206     public List<OleEventLogBo> getEventLogs() {
207         return eventLogs;
208     }
209 
210     /**
211      * Sets the eventLogs attribute value.
212      *
213      * @param eventLogs The eventLogs to set.
214      */
215     public void setEventLogs(List<OleEventLogBo> eventLogs) {
216         this.eventLogs = eventLogs;
217     }
218 
219     /**
220      * Gets the requisitionDocNumber attribute.
221      *
222      * @return Returns the requisitionDocNumber
223      */
224     public String geteResourceDocNumber() {
225         return eResourceDocNumber;
226     }
227 
228 
229     /**
230      * Sets the requisitionDocNumber attribute value.
231      *
232      * @param eResourceDocNumber The requisitionDocNumber to set.
233      */
234     public void seteResourceDocNumber(String eResourceDocNumber) {
235         this.eResourceDocNumber = eResourceDocNumber;
236     }
237 
238     /**
239      * Gets the agreementId attribute.
240      *
241      * @return Returns the agreementId
242      */
243     public String getAgreementId() {
244         return agreementId;
245     }
246 
247     /**
248      * Sets the agreementId attribute value.
249      *
250      * @param agreementId The agreementId to set.
251      */
252     public void setAgreementId(String agreementId) {
253         this.agreementId = agreementId;
254     }
255 
256     /**
257      * Gets the licenseRequestWorkflowTypeCode attribute.
258      *
259      * @return Returns the licenseRequestWorkflowTypeCode
260      */
261     public String getLicenseRequestWorkflowTypeCode() {
262         return licenseRequestWorkflowTypeCode;
263     }
264 
265     /**
266      * Sets the licenseRequestWorkflowTypeCode attribute value.
267      *
268      * @param licenseRequestWorkflowTypeCode The licenseRequestWorkflowTypeCode to set.
269      */
270     public void setLicenseRequestWorkflowTypeCode(String licenseRequestWorkflowTypeCode) {
271         this.licenseRequestWorkflowTypeCode = licenseRequestWorkflowTypeCode;
272     }
273 
274     /**
275      * Gets the agreementMethod attribute.
276      *
277      * @return Returns the agreementMethod
278      */
279     public String getAgreementMethod() {
280         return agreementMethod;
281     }
282 
283     /**
284      * Sets the agreementMethod attribute value.
285      *
286      * @param agreementMethod The agreementMethod to set.
287      */
288     public void setAgreementMethod(String agreementMethod) {
289         this.agreementMethod = agreementMethod;
290     }
291 
292     /**
293      * Gets the agreementDocumentMetadataList attribute.
294      *
295      * @return Returns the agreementDocumentMetadataList
296      */
297     public List<OleAgreementDocumentMetadata> getAgreementDocumentMetadataList() {
298         return agreementDocumentMetadataList;
299     }
300 
301     /**
302      * Sets the agreementDocumentMetadataList attribute value.
303      *
304      * @param agreementDocumentMetadataList The agreementDocumentMetadataList to set.
305      */
306     public void setAgreementDocumentMetadataList(List<OleAgreementDocumentMetadata> agreementDocumentMetadataList) {
307         this.agreementDocumentMetadataList = agreementDocumentMetadataList;
308     }
309 
310     public String getBibliographicTitle() {
311         return bibliographicTitle;
312     }
313 
314     public void setBibliographicTitle(String bibliographicTitle) {
315         this.bibliographicTitle = bibliographicTitle;
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 }