View Javadoc
1   package org.kuali.ole.deliver.bo;
2   
3   import org.apache.commons.lang3.StringUtils;
4   import org.kuali.ole.OLEConstants;
5   import org.kuali.ole.deliver.api.OleDeliverRequestContract;
6   import org.kuali.ole.deliver.api.OleDeliverRequestDefinition;
7   import org.kuali.ole.docstore.common.document.content.instance.Item;
8   import org.kuali.rice.kim.impl.identity.PersonImpl;
9   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
10  import org.kuali.rice.krad.service.KRADServiceLocator;
11  
12  import java.sql.Date;
13  import java.sql.Timestamp;
14  import java.util.HashMap;
15  import java.util.Map;
16  
17  /**
18   * Created with IntelliJ IDEA.
19   * User: ?
20   * Date: 10/1/12
21   * Time: 12:13 PM
22   * To change this template use File | Settings | File Templates.
23   */
24  public class OleDeliverRequestBo extends PersistableBusinessObjectBase implements OleDeliverRequestContract {
25      private String requestId;
26      private String poLineItemNo;
27      private String borrowerId;
28      private String borrowerBarcode;
29      private Integer borrowerQueuePosition;
30      private String proxyBorrowerId;
31      private String proxyBorrowerBarcode;
32      private String loanTransactionRecordNumber;
33      private String requestTypeId;
34      private String contentDescription;
35      private String copyFormat;
36      private String pickUpLocationId;
37      private String operatorCreateId;
38      private String operatorModifiedId;
39      private String machineId;
40      private String circulationLocationId;
41      private Date createDate;
42      private Date modifiedDate;
43      private Date requestExpiryDate;
44      private Date onHoldNoticeSentDate;
45      private Date recallNoticeSentDate;
46      private String itemId;
47      private String itemTypeName;
48      private String itemUuid;
49  
50      private String selectRequest;
51      private String requestCreator;
52      private String requestTypeCode;
53      private String borrowerName;
54      private String firstName;
55      private String lastName;
56      private String proxyBorrowerName;
57      private String proxyBorrowerFirstName;
58      private String proxyBorrowerLastName;
59      private String operatorCreateName;
60      private String operatorModifierName;
61  
62      private String courtesyNotice;
63      private String title;
64      private String author;
65      private String shelvingLocation;
66      private String callNumber;
67      private String copyNumber;
68      private String volumeNumber;
69      private String patronName;
70      private String itemType;
71      private String itemStatus;
72      private String circulationLocationCode;
73      private String pickUpLocationCode;
74      private String inTransitCheckInNote;
75      private boolean requestFlag;
76      private boolean claimsReturnedFlag;
77      private String message;
78      private String chronology;
79      private String enumeration;
80  
81      private OleCirculationDesk oleCirculationLocation = new OleCirculationDesk();
82  
83      private OleCirculationDesk olePickUpLocation = new OleCirculationDesk();
84      private OlePatronDocument olePatron = new OlePatronDocument();
85      private OlePatronDocument oleProxyPatron = new OlePatronDocument();
86  
87      private PersonImpl operatorCreator = new PersonImpl();
88      private PersonImpl operatorModifier = new PersonImpl();
89      private OleDeliverRequestType oleDeliverRequestType = new OleDeliverRequestType();
90  
91      private String roleName = OLEConstants.OleCirculationDeskDetail.OPERATOR_ROLE_NAME;
92      private String roleNamespaceCode = OLEConstants.OleCirculationDeskDetail.OPERATOR_ROLE_NAMESPACE;
93      private Date date;
94      private OleItemSearch oleItemSearch = new OleItemSearch();
95      private transient Item oleItem;
96  
97      private String itemInstitution;
98      private String itemCampus;
99      private String itemLibrary;
100     private String itemCollection;
101     private String itemLocation;
102     private String noticeType;
103     private Date newDueDate;
104     private Date originalDueDate;
105     private String requestStatus;
106     private boolean asrFlag;
107     private boolean isASRItem;
108     private boolean isValidToProcess;
109     private String bibId;
110     private String requestLevel;
111     private Date holdExpirationDate;
112 
113     public String getItemInstitution() {
114         return itemInstitution;
115     }
116 
117     public void setItemInstitution(String itemInstitution) {
118         this.itemInstitution = itemInstitution;
119     }
120 
121     public String getItemCampus() {
122         return itemCampus;
123     }
124 
125     public void setItemCampus(String itemCampus) {
126         this.itemCampus = itemCampus;
127     }
128 
129     public String getItemLibrary() {
130         return itemLibrary;
131     }
132 
133     public void setItemLibrary(String itemLibrary) {
134         this.itemLibrary = itemLibrary;
135     }
136 
137     public String getItemCollection() {
138         return itemCollection;
139     }
140 
141     public void setItemCollection(String itemCollection) {
142         this.itemCollection = itemCollection;
143     }
144 
145     public String getItemLocation() {
146         return itemLocation;
147     }
148 
149     public boolean isClaimsReturnedFlag() {
150         return claimsReturnedFlag;
151     }
152 
153     public void setClaimsReturnedFlag(boolean claimsReturnedFlag) {
154         this.claimsReturnedFlag = claimsReturnedFlag;
155     }
156 
157     public void setItemLocation(String itemLocation) {
158         this.itemLocation = itemLocation;
159     }
160 
161     public String getItemUuid() {
162         return itemUuid;
163     }
164 
165     public void setItemUuid(String itemUuid) {
166         this.itemUuid = itemUuid;
167     }
168 
169     public String getProxyBorrowerFirstName() {
170         return proxyBorrowerFirstName;
171     }
172 
173     public void setProxyBorrowerFirstName(String proxyBorrowerFirstName) {
174         this.proxyBorrowerFirstName = proxyBorrowerFirstName;
175     }
176 
177     private Timestamp recallDueDate;
178 
179 
180     public Timestamp getRecallDueDate() {
181         return recallDueDate;
182     }
183 
184     public void setRecallDueDate(Timestamp recallDueDate) {
185         this.recallDueDate = recallDueDate;
186     }
187 
188     public Item getOleItem() {
189         return oleItem;
190     }
191 
192     public String getProxyBorrowerLastName() {
193         return proxyBorrowerLastName;
194     }
195 
196     public void setProxyBorrowerLastName(String proxyBorrowerLastName) {
197         this.proxyBorrowerLastName = proxyBorrowerLastName;
198     }
199 
200     public void setOleItem(Item oleItem) {
201         this.oleItem = oleItem;
202     }
203 
204     public String getItemStatus() {
205         return itemStatus;
206     }
207 
208     public void setItemStatus(String itemStatus) {
209         this.itemStatus = itemStatus;
210     }
211 
212     public String getItemTypeName() {
213         return itemTypeName;
214     }
215 
216     public void setItemTypeName(String itemTypeName) {
217         this.itemTypeName = itemTypeName;
218     }
219 
220     public String getCirculationLocationCode() {
221         if (circulationLocationId != null && circulationLocationCode == null && oleCirculationLocation.getCirculationDeskId() != null) {
222             circulationLocationCode = oleCirculationLocation.getCirculationDeskCode();
223         }
224         return circulationLocationCode;
225     }
226 
227     public void setCirculationLocationCode(String circulationLocationCode) {
228         this.circulationLocationCode = circulationLocationCode;
229     }
230 
231     public String getPickUpLocationCode() {
232         if (pickUpLocationId != null && pickUpLocationCode == null && olePickUpLocation.getCirculationDeskId() != null) {
233             pickUpLocationCode = olePickUpLocation.getCirculationDeskCode();
234         }
235         return pickUpLocationCode;
236     }
237 
238     public void setPickUpLocationCode(String pickUpLocationCode) {
239         this.pickUpLocationCode = pickUpLocationCode;
240     }
241 
242     /**
243      * Gets the itemType attribute.
244      *
245      * @return Returns the itemType
246      */
247     public String getItemType() {
248         return itemType;
249     }
250 
251     /**
252      * Sets the itemType attribute value.
253      *
254      * @param itemType The itemType to set.
255      */
256     public void setItemType(String itemType) {
257         this.itemType = itemType;
258     }
259 
260 
261     public OleItemSearch getOleItemSearch() {
262         return oleItemSearch;
263     }
264 
265     public void setOleItemSearch(OleItemSearch oleItemSearch) {
266         this.oleItemSearch = oleItemSearch;
267     }
268 
269 
270     public String getRoleName() {
271         return roleName;
272     }
273 
274     public void setRoleName(String roleName) {
275         this.roleName = roleName;
276     }
277 
278     public String getRoleNamespaceCode() {
279         return roleNamespaceCode;
280     }
281 
282     public void setRoleNamespaceCode(String roleNamespaceCode) {
283         this.roleNamespaceCode = roleNamespaceCode;
284     }
285 
286     /**
287      * Gets the requestId attribute.
288      *
289      * @return Returns the requestId
290      */
291     public String getRequestId() {
292         return requestId;
293     }
294 
295     public void setRequestId(String requestId) {
296         this.requestId = requestId;
297     }
298 
299     /**
300      * Gets the poLineItemNo attribute.
301      *
302      * @return Returns the poLineItemNo
303      */
304     public String getPoLineItemNo() {
305         return poLineItemNo;
306     }
307 
308     public void setPoLineItemNo(String poLineItemNo) {
309         this.poLineItemNo = poLineItemNo;
310     }
311 
312     /**
313      * Gets the borrowerId attribute.
314      *
315      * @return Returns the borrowerId
316      */
317     public String getBorrowerId() {
318         return borrowerId;
319     }
320 
321     public void setBorrowerId(String borrowerId) {
322         this.borrowerId = borrowerId;
323     }
324 
325     /**
326      * Gets the borrowerQueuePosition attribute.
327      *
328      * @return Returns the borrowerQueuePosition
329      */
330     public Integer getBorrowerQueuePosition() {
331         return borrowerQueuePosition;
332     }
333 
334     public void setBorrowerQueuePosition(Integer borrowerQueuePosition) {
335         this.borrowerQueuePosition = borrowerQueuePosition;
336     }
337 
338     /**
339      * Gets the proxyBorrowerId attribute.
340      *
341      * @return Returns the proxyBorrowerId
342      */
343     public String getProxyBorrowerId() {
344         return proxyBorrowerId;
345     }
346 
347     public void setProxyBorrowerId(String proxyBorrowerId) {
348         if (proxyBorrowerId != null && proxyBorrowerId.equals(""))
349             this.proxyBorrowerId = null;
350         else
351             this.proxyBorrowerId = proxyBorrowerId;
352     }
353 
354     /**
355      * Gets the loanTransactionRecordNumber attribute.
356      *
357      * @return Returns the loanTransactionRecordNumber
358      */
359     public String getLoanTransactionRecordNumber() {
360         return loanTransactionRecordNumber;
361     }
362 
363     public void setLoanTransactionRecordNumber(String loanTransactionRecordNumber) {
364         this.loanTransactionRecordNumber = loanTransactionRecordNumber;
365     }
366 
367     /**
368      * Gets the requestTypeId attribute.
369      *
370      * @return Returns the requestTypeId
371      */
372     public String getRequestTypeId() {
373         return requestTypeId;
374     }
375 
376     public void setRequestTypeId(String requestTypeId) {
377 
378         this.requestTypeId = requestTypeId;
379     }
380 
381     /**
382      * Gets the contentDescription attribute.
383      *
384      * @return Returns the contentDescription
385      */
386     public String getContentDescription() {
387         return contentDescription;
388     }
389 
390     public void setContentDescription(String contentDescription) {
391         this.contentDescription = contentDescription;
392     }
393 
394     /**
395      * Gets the copyFormat attribute.
396      *
397      * @return Returns the copyFormat
398      */
399     public String getCopyFormat() {
400         return copyFormat;
401     }
402 
403     public void setCopyFormat(String copyFormat) {
404         this.copyFormat = copyFormat;
405     }
406 
407     /**
408      * Gets the pickUpLocationId attribute.
409      *
410      * @return Returns the pickUpLocationId
411      */
412     public String getPickUpLocationId() {
413         return pickUpLocationId;
414     }
415 
416     public void setPickUpLocationId(String pickUpLocationId) {
417         if (pickUpLocationId != null && pickUpLocationId.equals(""))
418             this.pickUpLocationId = null;
419         else
420             this.pickUpLocationId = pickUpLocationId;
421     }
422 
423     /**
424      * Gets the operatorCreateId attribute.
425      *
426      * @return Returns the operatorCreateId
427      */
428     public String getOperatorCreateId() {
429         return operatorCreateId;
430     }
431 
432     public void setOperatorCreateId(String operatorCreateId) {
433         this.operatorCreateId = operatorCreateId;
434     }
435 
436     /**
437      * Gets the operatorModifiedId attribute.
438      *
439      * @return Returns the operatorModifiedId
440      */
441     public String getOperatorModifiedId() {
442         return operatorModifiedId;
443     }
444 
445     public void setOperatorModifiedId(String operatorModifiedId) {
446         this.operatorModifiedId = operatorModifiedId;
447     }
448 
449     /**
450      * Gets the machineId attribute.
451      *
452      * @return Returns the machineId
453      */
454     public String getMachineId() {
455         return machineId;
456     }
457 
458     public void setMachineId(String machineId) {
459         this.machineId = machineId;
460     }
461 
462     /**
463      * Gets the circulationLocationId attribute.
464      *
465      * @return Returns the circulationLocationId
466      */
467     public String getCirculationLocationId() {
468         return circulationLocationId;
469     }
470 
471     public void setCirculationLocationId(String circulationLocationId) {
472         if (circulationLocationId != null && circulationLocationId.equals(""))
473             this.circulationLocationId = null;
474         else
475             this.circulationLocationId = circulationLocationId;
476     }
477 
478     public Date getCreateDate() {
479         return createDate;
480     }
481 
482     public void setCreateDate(Date createDate) {
483         this.createDate = createDate;
484     }
485 
486     public Date getModifiedDate() {
487         return modifiedDate;
488     }
489 
490     public void setModifiedDate(Date modifiedDate) {
491         this.modifiedDate = modifiedDate;
492     }
493 
494     public Date getRequestExpiryDate() {
495         return requestExpiryDate;
496     }
497 
498     public void setRequestExpiryDate(Date requestExpiryDate) {
499         this.requestExpiryDate = requestExpiryDate;
500     }
501 
502     public Date getOnHoldNoticeSentDate() {
503         return onHoldNoticeSentDate;
504     }
505 
506     public void setOnHoldNoticeSentDate(Date onHoldNoticeSentDate) {
507         this.onHoldNoticeSentDate = onHoldNoticeSentDate;
508     }
509 
510     public Date getRecallNoticeSentDate() {
511         return recallNoticeSentDate;
512     }
513 
514     public void setRecallNoticeSentDate(Date recallNoticeSentDate) {
515         this.recallNoticeSentDate = recallNoticeSentDate;
516     }
517 
518     /**
519      * Gets the itemId attribute.
520      *
521      * @return Returns the itemId
522      */
523     public String getItemId() {
524         return itemId;
525     }
526 
527     public void setItemId(String itemId) {
528         this.itemId = itemId;
529     }
530 
531     /**
532      * Gets the selectRequest attribute.
533      *
534      * @return Returns the selectRequest
535      */
536     public String getSelectRequest() {
537         return selectRequest;
538     }
539 
540     public void setSelectRequest(String selectRequest) {
541         this.selectRequest = selectRequest;
542     }
543 
544     /**
545      * Gets the requestCreator attribute.
546      *
547      * @return Returns the requestCreator
548      */
549     public String getRequestCreator() {
550         return requestCreator;
551     }
552 
553     public void setRequestCreator(String requestCreator) {
554         this.requestCreator = requestCreator;
555     }
556 
557     /**
558      * Gets the requestTypeCode attribute.
559      *
560      * @return Returns the requestTypeCode
561      */
562     public String getRequestTypeCode() {
563         if (requestTypeId != null && oleDeliverRequestType.getRequestTypeId() != null) {
564             return oleDeliverRequestType.getRequestTypeCode();
565         }
566         return requestTypeCode;
567     }
568 
569     public void setRequestTypeCode(String requestTypeCode) {
570         this.requestTypeCode = requestTypeCode;
571     }
572 
573     public String getFirstName() {
574         if (firstName == null && borrowerId != null && olePatron.getBarcode() != null && (borrowerId.equals(olePatron.getOlePatronId()))) {
575             return olePatron.getEntity().getNames().get(0).getFirstName();
576         }
577         return firstName;
578     }
579 
580     public void setFirstName(String firstName) {
581         this.firstName = firstName;
582     }
583 
584     public String getLastName() {
585         if (lastName == null && borrowerId != null && olePatron.getBarcode() != null && (borrowerId.equals(olePatron.getOlePatronId()))) {
586             return olePatron.getEntity().getNames().get(0).getLastName();
587         }
588         return lastName;
589     }
590 
591     public void setLastName(String lastName) {
592         this.lastName = lastName;
593     }
594 
595     /**
596      * Gets the borrowerName attribute.
597      *
598      * @return Returns the borrowerName
599      */
600     public String getBorrowerName() {
601         if (borrowerName == null && borrowerId != null && olePatron.getBarcode() != null && (borrowerId.equals(olePatron.getOlePatronId()))) {
602             return olePatron.getEntity().getNames().get(0).getFirstName() + " " + olePatron.getEntity().getNames().get(0).getLastName();
603         }
604         return borrowerName;
605     }
606 
607     public void setBorrowerName(String borrowerName) {
608         this.borrowerName = borrowerName;
609     }
610 
611     /**
612      * Gets the proxyBorrowerName attribute.
613      *
614      * @return Returns the proxyBorrowerName
615      */
616     public String getProxyBorrowerName() {
617         if (proxyBorrowerName == null && proxyBorrowerId != null && oleProxyPatron.getBarcode() != null && (proxyBorrowerId.equals(oleProxyPatron.getOlePatronId()))) {
618             return oleProxyPatron.getEntity().getNames().get(0).getFirstName() + " " + oleProxyPatron.getEntity().getNames().get(0).getLastName();
619         }
620         return proxyBorrowerName;
621     }
622 
623     public void setProxyBorrowerName(String proxyBorrowerName) {
624         this.proxyBorrowerName = proxyBorrowerName;
625     }
626 
627     /**
628      * Gets the operatorCreateName attribute.
629      *
630      * @return Returns the operatorCreateName
631      */
632     public String getOperatorCreateName() {
633         return operatorCreateName;
634     }
635 
636     public void setOperatorCreateName(String operatorCreateName) {
637         this.operatorCreateName = operatorCreateName;
638     }
639 
640     /**
641      * Gets the courtesyNotice attribute.
642      *
643      * @return Returns the courtesyNotice
644      */
645     public String getCourtesyNotice() {
646         return courtesyNotice;
647     }
648 
649     public void setCourtesyNotice(String courtesyNotice) {
650         this.courtesyNotice = courtesyNotice;
651     }
652 
653     /**
654      * Gets the title attribute.
655      *
656      * @return Returns the title
657      */
658     public String getTitle() {
659         return title;
660     }
661 
662     public void setTitle(String title) {
663         this.title = title;
664     }
665 
666     /**
667      * Gets the author attribute.
668      *
669      * @return Returns the author
670      */
671     public String getAuthor() {
672         return author;
673     }
674 
675     public void setAuthor(String author) {
676         this.author = author;
677     }
678 
679     /**
680      * Gets the shelvingLocation attribute.
681      *
682      * @return Returns the shelvingLocation
683      */
684     public String getShelvingLocation() {
685         return shelvingLocation;
686     }
687 
688     public void setShelvingLocation(String shelvingLocation) {
689         this.shelvingLocation = shelvingLocation;
690     }
691 
692     /**
693      * Gets the callNumber attribute.
694      *
695      * @return Returns the callNumber
696      */
697     public String getCallNumber() {
698         return callNumber;
699     }
700 
701     public void setCallNumber(String callNumber) {
702         this.callNumber = callNumber;
703     }
704 
705     /**
706      * Gets the copyNumber attribute.
707      *
708      * @return Returns the copyNumber
709      */
710     public String getCopyNumber() {
711         return copyNumber;
712     }
713 
714     public void setCopyNumber(String copyNumber) {
715         this.copyNumber = copyNumber;
716     }
717 
718     /**
719      * Gets the patronName attribute.
720      *
721      * @return Returns the patronName
722      */
723     public String getPatronName() {
724         return patronName;
725     }
726 
727     public void setPatronName(String patronName) {
728         this.patronName = patronName;
729     }
730 
731     public Date getDate() {
732         return date;
733     }
734 
735     public void setDate(Date date) {
736         this.date = date;
737     }
738 
739     public OleCirculationDesk getOleCirculationLocation() {
740         return oleCirculationLocation;
741     }
742 
743     public void setOleCirculationLocation(OleCirculationDesk oleCirculationLocation) {
744         this.oleCirculationLocation = oleCirculationLocation;
745     }
746 
747     public OleCirculationDesk getOlePickUpLocation() {
748         return olePickUpLocation;
749     }
750 
751     public void setOlePickUpLocation(OleCirculationDesk olePickUpLocation) {
752         this.olePickUpLocation = olePickUpLocation;
753     }
754 
755     public OlePatronDocument getOlePatron() {
756         if (null == olePatron || StringUtils.isEmpty(olePatron.getOlePatronId())) {
757             String patronId = getBorrowerId();
758             if (StringUtils.isNotEmpty(patronId)) {
759                 Map<String, String> parameterMap = new HashMap<>();
760                 parameterMap.put("olePatronId", patronId);
761                 Long startingTime = System.currentTimeMillis();
762                 olePatron = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OlePatronDocument.class, parameterMap);
763                 Long endTimme = System.currentTimeMillis();
764                 Long timeTaken = endTimme-startingTime;
765                 System.out.println("The Time Taken for Fetching PatronObject : " + timeTaken);
766             }
767         }
768         return olePatron;
769     }
770 
771     public void setOlePatron(OlePatronDocument olePatron) {
772         this.olePatron = olePatron;
773     }
774 
775     public OlePatronDocument getOleProxyPatron() {
776         if (null == oleProxyPatron) {
777             String patronId = getProxyBorrowerId();
778             if (StringUtils.isNotEmpty(patronId)) {
779                 Map<String, String> parameterMap = new HashMap<>();
780                 parameterMap.put("olePatronId", patronId);
781                 oleProxyPatron = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OlePatronDocument.class, parameterMap);
782             }
783         }
784         return oleProxyPatron;
785     }
786 
787     public void setOleProxyPatron(OlePatronDocument oleProxyPatron) {
788         this.oleProxyPatron = oleProxyPatron;
789     }
790 
791     public PersonImpl getOperatorCreator() {
792         return operatorCreator;
793     }
794 
795     public void setOperatorCreator(PersonImpl operatorCreator) {
796         this.operatorCreator = operatorCreator;
797     }
798 
799     public PersonImpl getOperatorModifier() {
800         return operatorModifier;
801     }
802 
803     public void setOperatorModifier(PersonImpl operatorModifier) {
804         this.operatorModifier = operatorModifier;
805     }
806 
807     public OleDeliverRequestType getOleDeliverRequestType() {
808         return oleDeliverRequestType;
809     }
810 
811     public void setOleDeliverRequestType(OleDeliverRequestType oleDeliverRequestType) {
812         this.oleDeliverRequestType = oleDeliverRequestType;
813     }
814 
815     public String getOperatorModifierName() {
816         return operatorModifierName;
817     }
818 
819     public void setOperatorModifierName(String operatorModifierName) {
820         this.operatorModifierName = operatorModifierName;
821     }
822 
823     public String getInTransitCheckInNote() {
824         return inTransitCheckInNote;
825     }
826 
827     public void setInTransitCheckInNote(String inTransitCheckInNote) {
828         this.inTransitCheckInNote = inTransitCheckInNote;
829     }
830 
831     public boolean isRequestFlag() {
832         return requestFlag;
833     }
834 
835     public void setRequestFlag(boolean requestFlag) {
836         this.requestFlag = requestFlag;
837     }
838 
839     public String getVolumeNumber() {
840         return volumeNumber;
841     }
842 
843     public void setVolumeNumber(String volumeNumber) {
844         this.volumeNumber = volumeNumber;
845     }
846 
847     /**
848      * This method converts the PersistableBusinessObjectBase OleDeliverRequestBo into immutable object OleDeliverRequestDefinition
849      *
850      * @param bo
851      * @return OleDeliverRequestDefinition
852      */
853     public static OleDeliverRequestDefinition to(OleDeliverRequestBo bo) {
854         if (bo == null) {
855             return null;
856         }
857         return OleDeliverRequestDefinition.Builder.create(bo).build();
858     }
859 
860     /**
861      * This method converts the immutable object OleDeliverRequestDefinition into PersistableBusinessObjectBase OleDeliverRequestBo
862      *
863      * @param imOleDeliverRequestDefinition
864      * @return bo
865      */
866     public static OleDeliverRequestBo from(OleDeliverRequestDefinition imOleDeliverRequestDefinition) {
867         if (imOleDeliverRequestDefinition == null) {
868             return null;
869         }
870 
871         OleDeliverRequestBo bo = new OleDeliverRequestBo();
872         bo.itemId = imOleDeliverRequestDefinition.getItemId();
873         bo.requestId = imOleDeliverRequestDefinition.getRequestId();
874         bo.title = imOleDeliverRequestDefinition.getTitle();
875         bo.author = imOleDeliverRequestDefinition.getAuthor();
876         bo.callNumber = imOleDeliverRequestDefinition.getCallNumber();
877         bo.copyNumber = imOleDeliverRequestDefinition.getCopyNumber();
878         bo.itemStatus = imOleDeliverRequestDefinition.getItemStatus();
879         bo.itemType = imOleDeliverRequestDefinition.getItemType();
880         bo.borrowerQueuePosition = imOleDeliverRequestDefinition.getBorrowerQueuePosition();
881         bo.volumeNumber = imOleDeliverRequestDefinition.getVolumeNumber();
882         bo.shelvingLocation = imOleDeliverRequestDefinition.getShelvingLocation();
883         bo.oleDeliverRequestType = OleDeliverRequestType.from(imOleDeliverRequestDefinition.getOleDeliverRequestType());
884         bo.versionNumber = imOleDeliverRequestDefinition.getVersionNumber();
885 
886         return bo;
887     }
888 
889     @Override
890     public String getId() {
891         return this.requestId;
892     }
893 
894     public String getMessage() {
895         return message;
896     }
897 
898     public void setMessage(String message) {
899         this.message = message;
900     }
901 
902     public void setNoticeType(String noticeType) {
903         this.noticeType = noticeType;
904     }
905 
906     public String getNoticeType() {
907         return noticeType;
908     }
909 
910     public String getBorrowerBarcode() {
911         return borrowerBarcode;
912     }
913 
914     public void setBorrowerBarcode(String borrowerBarcode) {
915         this.borrowerBarcode = borrowerBarcode;
916     }
917 
918     public String getProxyBorrowerBarcode() {
919         return proxyBorrowerBarcode;
920     }
921 
922     public void setProxyBorrowerBarcode(String proxyBorrowerBarcode) {
923         this.proxyBorrowerBarcode = proxyBorrowerBarcode;
924     }
925 
926     public Date getNewDueDate() {
927         return newDueDate;
928     }
929 
930     public void setNewDueDate(Date newDueDate) {
931         this.newDueDate = newDueDate;
932     }
933 
934     public Date getOriginalDueDate() {
935         return originalDueDate;
936     }
937 
938     public void setOriginalDueDate(Date originalDueDate) {
939         this.originalDueDate = originalDueDate;
940     }
941 
942     public String getRequestStatus() {
943         return requestStatus;
944     }
945 
946     public void setRequestStatus(String requestStatus) {
947         this.requestStatus = requestStatus;
948     }
949 
950     public boolean isAsrFlag() {
951         return asrFlag;
952     }
953 
954     public void setAsrFlag(boolean asrFlag) {
955         this.asrFlag = asrFlag;
956     }
957 
958     public boolean isASRItem() {
959         return isASRItem;
960     }
961 
962     public void setASRItem(boolean ASRItem) {
963         isASRItem = ASRItem;
964     }
965 
966     public boolean isValidToProcess() {
967         return isValidToProcess;
968     }
969 
970     public void setValidToProcess(boolean isValidToProcess) {
971         this.isValidToProcess = isValidToProcess;
972     }
973 
974     public String getChronology() {
975         return chronology;
976     }
977 
978     public void setChronology(String chronology) {
979         this.chronology = chronology;
980     }
981 
982     public String getEnumeration() {
983         return enumeration;
984     }
985 
986     public void setEnumeration(String enumeration) {
987         this.enumeration = enumeration;
988     }
989 
990     public String getBibId() {
991         return bibId;
992     }
993 
994     public void setBibId(String bibId) {
995         this.bibId = bibId;
996     }
997 
998     public String getRequestLevel() {
999         return requestLevel;
1000     }
1001 
1002     public void setRequestLevel(String requestLevel) {
1003         this.requestLevel = requestLevel;
1004     }
1005 
1006     public Date getHoldExpirationDate() {
1007         return holdExpirationDate;
1008     }
1009 
1010     public void setHoldExpirationDate(Date holdExpirationDate) {
1011         this.holdExpirationDate = holdExpirationDate;
1012     }
1013 }