View Javadoc
1   package org.kuali.ole.deliver.bo;
2   
3   import org.kuali.ole.describe.bo.OleInstanceItemType;
4   import org.kuali.ole.describe.bo.OleLocation;
5   import org.kuali.ole.docstore.common.document.content.instance.Item;
6   import org.kuali.rice.kim.impl.identity.entity.EntityBo;
7   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
8   import org.kuali.rice.krad.service.KRADServiceLocator;
9   
10  import java.math.BigDecimal;
11  import java.sql.Timestamp;
12  import java.util.Date;
13  import java.util.HashMap;
14  import java.util.List;
15  
16  /**
17   * The OleLoanDocument is a BO class that defines the loan document fields with getters and setters which
18   * is used for interacting the loan data with the persistence layer in OLE.
19   */
20  public class OleLoanDocument extends PersistableBusinessObjectBase implements Comparable<OleLoanDocument> {
21  
22      private String loanId;
23      private String loanStatusId;
24      private String patronBarcode;
25      private String patronId;
26      private String itemId;
27      private boolean blockLoan;
28      private String requestFlag;
29      private boolean vuFindFlag = false;
30      private Date loanPeriodDate;
31      private Integer loanPeriod;
32      private String loanTermUnitId;
33      private Timestamp loanDueDate;
34      private String loanOperatorId;
35      private String loanApproverId;
36      private String borrowerTypeId;
37      private String borrowerTypeName;
38      private String itemInstitution;
39      private String itemCampus;
40      private String itemLibrary;
41      private String itemCollection;
42      private String itemLocation;
43      private String itemType;
44      private String itemTypeName;
45      private String itemLoanStatus;
46      private String errorMessage;
47      private String successMessage;
48      private String patronUserNotes;
49      private String patronNoteTypeId;
50      private String itemUuid;
51      private String bibUuid;
52      private transient Item oleItem;
53      private String instanceUuid;
54      private String claimsReturnNote;
55      private String location;
56      private String locationCode;
57      private boolean checkNo;
58      private boolean isValidPatron;
59      private String title;
60      private String author;
61      private OleLocation oleLocation;
62      private EntityBo entity;
63      private OleBorrowerType oleBorrowerType;
64      private OlePatronDocument olePatron;
65      private OleLoanStatus oleLoanStatus;
66      private OleLoanTermUnit oleLoanTermUnit;
67      private OleInstanceItemType oleInstanceItemType;
68      private String patronName;
69      private java.util.Date expirationDate;
70      private boolean dueDateEmpty;
71      private String itemCallNumber;
72      private String itemCallNumberPrefix;
73      private String itemCopyNumber;
74      private List<OlePatronDocument> realPatron;
75      private String realPatronBarcode;
76      private String realPatronType;
77      private String realPatronName;
78      private String itemVolumeNumber;
79      private boolean inDefinite = false;
80      private String dueDateType = "Indefinite";
81      private boolean nonCirculatingItem = false;
82      private Timestamp manualRenewalDueDate;
83      private Date renewalDateMap;
84      private String renewalDateTime;
85      private boolean renewNotFlag=false;
86      /**
87       * New Fields added
88       */
89      private boolean addressVerified;
90      private String preferredAddress;
91      private String email;
92      private String phoneNumber;
93      private String proxyPatronId;
94      private boolean validateProxyPatron = false;
95      private String circulationLocationId;
96      private String machineId;
97      private String numberOfRenewals;
98      private String numberOfOverdueNoticesSent;
99      private String oleRequestId;
100     private String repaymentFeePatronBillId;
101     private boolean claimsReturnedIndicator;
102     private Date createDate;
103     private Date pastDueDate;
104     private Date overDueNoticeDate;
105     private String circulationPolicyId;
106     private OleCirculationDesk oleCirculationDesk;
107     private String noOfOverdueNoticesSentForBorrower;
108     private boolean renewalItemFlag = false;
109     private BigDecimal fineRate;
110     private boolean isCheckOut = false;
111     private boolean isBackGroundCheckOut = false;
112     private boolean numberOfPieces = false;
113     private boolean continueCheckIn = false;
114     private String description;
115     private String matchCheck;
116     private String billName;
117     private boolean damagedCheckInOption;
118     private OlePatronDocument oleRequestPatron;
119     private OleDeliverRequestBo oleDeliverRequestBo;
120     private Integer itemNumberOfPieces;
121     private boolean copyRequest = false;
122     private boolean requestPatron = false;
123     private BigDecimal itemPrice;
124     private BigDecimal replacementBill;
125     private boolean noticeForClaimsReturned = false;
126     private String circulationPolicySetId;
127     private String operatorsCirculationLocation;
128     private String itemFullPathLocation;
129     private String routeToLocation;
130     private String routeToLocationName;
131     private Date loanDueDateToAlter;
132     private String itemStatusCode;
133     private Timestamp claimsReturnedDate;
134     private String loanDueDateTimeToAlter;
135     private String locationId;
136 
137     private String borrowerTypeCode;
138     private boolean blockCheckinItem;
139     private String roleName;
140     private String overrideErrorMessage;
141     private HashMap<String,String> errorsAndPermission = new HashMap<>();
142     private boolean renewPermission = true;
143     private boolean renewPermissionForRequestedItem = false;
144     private boolean  replacementFeeExist ;
145     private boolean overdueFineExist;
146     private boolean differentPatron;
147     private boolean itemDamagedStatus;
148     private String  itemDamagedNote;
149     private boolean skipDamagedCheckIn;
150     private String missingPiecesCount;
151     private boolean missingPieceFlag;
152     private String missingPieceNote;
153     private boolean backgroundCheckInMissingPiece;
154     private boolean lostPatron;
155     private boolean noOfPiecesEditable;
156     private boolean noOfMissingPiecesEditable;
157     private String backUpNoOfPieces;
158     private String enumeration;
159     private String chronology;
160     public String itemFullLocation;
161     public String itemStatusEffectiveDate;
162     private boolean loanModified;
163     private String noticeType;
164     private String noticeSendType;
165     private OLEDeliverNotice oleDeliverNotice;
166     private String oleLocationCode;
167     private boolean indefiniteCheckFlag= false;
168     private String holdingsLocation;
169     private boolean itemLevelLocationExist;
170 
171     public boolean isIndefiniteCheckFlag() {
172         return indefiniteCheckFlag;
173     }
174 
175     public void setIndefiniteCheckFlag(boolean indefiniteCheckFlag) {
176         this.indefiniteCheckFlag = indefiniteCheckFlag;
177     }
178 
179     public boolean isRenewNotFlag() {
180         return renewNotFlag;
181     }
182 
183     public void setRenewNotFlag(boolean renewNotFlag) {
184         this.renewNotFlag = renewNotFlag;
185     }
186 
187     public String getRequestFlag() {
188         return requestFlag;
189     }
190 
191     public void setRequestFlag(String requestFlag) {
192         this.requestFlag = requestFlag;
193     }
194 
195     public Date getRenewalDateMap() {
196         return renewalDateMap;
197     }
198 
199     public void setRenewalDateMap(Date renewalDateMap) {
200         this.renewalDateMap = renewalDateMap;
201     }
202 
203     public String getRenewalDateTime() {
204         return renewalDateTime;
205     }
206 
207     public void setRenewalDateTime(String renewalDateTime) {
208         this.renewalDateTime = renewalDateTime;
209     }
210 
211     /*private boolean statusLost;
212 
213     public boolean isStatusLost() {
214         return statusLost;
215     }
216 
217 
218     public void setStatusLost(boolean statusLost) {
219         this.statusLost = statusLost;
220     }*/
221 
222     public String getItemCallNumberPrefix() {
223         return itemCallNumberPrefix;
224     }
225 
226     public void setItemCallNumberPrefix(String itemCallNumberPrefix) {
227         this.itemCallNumberPrefix = itemCallNumberPrefix;
228     }
229 
230     public Timestamp getManualRenewalDueDate() {
231         return manualRenewalDueDate;
232     }
233 
234     public void setManualRenewalDueDate(Timestamp manualRenewalDueDate) {
235         this.manualRenewalDueDate = manualRenewalDueDate;
236     }
237 
238     public boolean isVuFindFlag() {
239         return vuFindFlag;
240     }
241 
242     public void setVuFindFlag(boolean vuFindFlag) {
243         this.vuFindFlag = vuFindFlag;
244     }
245 
246     public String getRouteToLocationName() {
247         return routeToLocationName;
248     }
249 
250     public void setRouteToLocationName(String routeToLocationName) {
251         this.routeToLocationName = routeToLocationName;
252     }
253 
254     //added for OLE-5119
255     private boolean courtesyNoticeFlag;
256 
257     public boolean isCourtesyNoticeFlag() {
258         return courtesyNoticeFlag;
259     }
260 
261     public String getEnumeration() {
262         return enumeration;
263     }
264 
265     public void setEnumeration(String enumeration) {
266         this.enumeration = enumeration;
267     }
268 
269     public String getChronology() {
270         return chronology;
271     }
272 
273     public void setChronology(String chronology) {
274         this.chronology = chronology;
275     }
276 
277     public void setCourtesyNoticeFlag(boolean courtesyNoticeFlag) {
278         this.courtesyNoticeFlag = courtesyNoticeFlag;
279     }
280 
281     public String getRoleName() {
282         return roleName;
283     }
284 
285     public void setRoleName(String roleName) {
286         this.roleName = roleName;
287     }
288 
289     public boolean isBlockCheckinItem() {
290         return blockCheckinItem;
291     }
292 
293     public void setBlockCheckinItem(boolean blockCheckinItem) {
294         this.blockCheckinItem = blockCheckinItem;
295     }
296 
297     public String getBorrowerTypeCode() {
298         return borrowerTypeCode;
299     }
300 
301     public void setBorrowerTypeCode(String borrowerTypeCode) {
302         this.borrowerTypeCode = borrowerTypeCode;
303     }
304 
305     public String getLocationId() {
306         return locationId;
307     }
308 
309     public void setLocationId(String locationId) {
310         this.locationId = locationId;
311     }
312 
313     public boolean isNonCirculatingItem() {
314         return nonCirculatingItem;
315     }
316 
317     public void setNonCirculatingItem(boolean nonCirculatingItem) {
318         this.nonCirculatingItem = nonCirculatingItem;
319     }
320 
321     public String getItemStatusCode() {
322         return itemStatusCode;
323     }
324 
325     public void setItemStatusCode(String itemStatusCode) {
326         this.itemStatusCode = itemStatusCode;
327     }
328 
329     public Date getLoanDueDateToAlter() {
330         return loanDueDateToAlter;
331     }
332 
333     public void setLoanDueDateToAlter(Date loanDueDateToAlter) {
334         this.loanDueDateToAlter = loanDueDateToAlter;
335     }
336 
337     public String getRouteToLocation() {
338         return routeToLocation;
339     }
340 
341     public void setRouteToLocation(String routeToLocation) {
342         this.routeToLocation = routeToLocation;
343     }
344 
345     public String getLocationCode() {
346         return locationCode;
347     }
348 
349     public void setLocationCode(String locationCode) {
350         this.locationCode = locationCode;
351     }
352 
353     public String getItemFullPathLocation() {
354         return itemFullPathLocation;
355     }
356 
357     public void setItemFullPathLocation(String itemFullPathLocation) {
358         this.itemFullPathLocation = itemFullPathLocation;
359     }
360 
361     public String getBibUuid() {
362         return bibUuid;
363     }
364 
365     public void setBibUuid(String bibUuid) {
366         this.bibUuid = bibUuid;
367     }
368 
369     public String getOperatorsCirculationLocation() {
370         return operatorsCirculationLocation;
371     }
372 
373     public void setOperatorsCirculationLocation(String operatorsCirculationLocation) {
374         this.operatorsCirculationLocation = operatorsCirculationLocation;
375     }
376 
377     public String getCirculationPolicySetId() {
378         return circulationPolicySetId;
379     }
380 
381     public void setCirculationPolicySetId(String circulationPolicySetId) {
382         this.circulationPolicySetId = circulationPolicySetId;
383     }
384 
385     public boolean isNoticeForClaimsReturned() {
386         return noticeForClaimsReturned;
387     }
388 
389     public void setNoticeForClaimsReturned(boolean noticeForClaimsReturned) {
390         this.noticeForClaimsReturned = noticeForClaimsReturned;
391     }
392 
393     public boolean isInDefinite() {
394         return inDefinite;
395     }
396 
397     public void setInDefinite(boolean inDefinite) {
398         this.inDefinite = inDefinite;
399     }
400 
401     //renewal
402     private Timestamp renewalLoanDueDate;
403     private boolean renewCheckNo;
404 
405     public String getDueDateType() {
406         return dueDateType;
407     }
408 
409     public void setDueDateType(String dueDateType) {
410         this.dueDateType = dueDateType;
411     }
412 
413     public boolean isRenewCheckNo() {
414         return renewCheckNo;
415     }
416 
417     public void setRenewCheckNo(boolean renewCheckNo) {
418         this.renewCheckNo = renewCheckNo;
419     }
420 
421     public Timestamp getRenewalLoanDueDate() {
422         return renewalLoanDueDate;
423     }
424 
425     public void setRenewalLoanDueDate(Timestamp renewalLoanDueDate) {
426         this.renewalLoanDueDate = renewalLoanDueDate;
427     }
428 
429     public boolean isAddressVerified() {
430         return addressVerified;
431     }
432 
433     public void setAddressVerified(boolean addressVerified) {
434         this.addressVerified = addressVerified;
435     }
436 
437     public boolean isRequestPatron() {
438         return requestPatron;
439     }
440 
441     public void setRequestPatron(boolean requestPatron) {
442         this.requestPatron = requestPatron;
443     }
444 
445     public BigDecimal getReplacementBill() {
446         return replacementBill;
447     }
448 
449     public void setReplacementBill(BigDecimal replacementBill) {
450         this.replacementBill = replacementBill;
451     }
452 
453     public BigDecimal getItemPrice() {
454         return itemPrice;
455     }
456 
457     public void setItemPrice(BigDecimal itemPrice) {
458         this.itemPrice = itemPrice;
459     }
460 
461     public String getItemCopyNumber() {
462         return itemCopyNumber;
463     }
464 
465     public void setItemCopyNumber(String itemCopyNumber) {
466         this.itemCopyNumber = itemCopyNumber;
467     }
468 
469     public boolean isCopyRequest() {
470         return copyRequest;
471     }
472 
473     public void setCopyRequest(boolean copyRequest) {
474         this.copyRequest = copyRequest;
475     }
476 
477     public boolean isValidateProxyPatron() {
478         return validateProxyPatron;
479     }
480 
481     public void setValidateProxyPatron(boolean validateProxyPatron) {
482         this.validateProxyPatron = validateProxyPatron;
483     }
484 
485     public Integer getItemNumberOfPieces() {
486         return itemNumberOfPieces;
487     }
488 
489     public void setItemNumberOfPieces(Integer itemNumberOfPieces) {
490         this.itemNumberOfPieces = itemNumberOfPieces;
491     }
492 
493     public OleDeliverRequestBo getOleDeliverRequestBo() {
494         return oleDeliverRequestBo;
495     }
496 
497     public void setOleDeliverRequestBo(OleDeliverRequestBo oleDeliverRequestBo) {
498         this.oleDeliverRequestBo = oleDeliverRequestBo;
499     }
500 
501     public OlePatronDocument getOleRequestPatron() {
502         return oleRequestPatron;
503     }
504 
505     public void setOleRequestPatron(OlePatronDocument oleRequestPatron) {
506         this.oleRequestPatron = oleRequestPatron;
507     }
508 
509     public String getRealPatronName() {
510         return realPatronName;
511     }
512 
513     public void setRealPatronName(String realPatronName) {
514         this.realPatronName = realPatronName;
515     }
516 
517     public boolean isBlockLoan() {
518         return blockLoan;
519     }
520 
521     public void setBlockLoan(boolean blockLoan) {
522         this.blockLoan = blockLoan;
523     }
524 
525     public boolean isDamagedCheckInOption() {
526         return damagedCheckInOption;
527     }
528 
529     public void setDamagedCheckInOption(boolean damagedCheckInOption) {
530         this.damagedCheckInOption = damagedCheckInOption;
531     }
532 
533     public String getBillName() {
534         return billName;
535     }
536 
537     public void setBillName(String billName) {
538         this.billName = billName;
539     }
540 
541     public boolean isContinueCheckIn() {
542         return continueCheckIn;
543     }
544 
545     public void setContinueCheckIn(boolean continueCheckIn) {
546         this.continueCheckIn = continueCheckIn;
547     }
548 
549     public OleCirculationDesk getOleCirculationDesk() {
550         return oleCirculationDesk;
551     }
552 
553     public void setOleCirculationDesk(OleCirculationDesk oleCirculationDesk) {
554         this.oleCirculationDesk = oleCirculationDesk;
555     }
556 
557     public String getDescription() {
558         return description;
559     }
560 
561     public void setDescription(String description) {
562         this.description = description;
563     }
564 
565     public String getMatchCheck() {
566         return matchCheck;
567     }
568 
569     public void setMatchCheck(String matchCheck) {
570         this.matchCheck = matchCheck;
571     }
572 
573     public boolean isNumberOfPieces() {
574         return numberOfPieces;
575     }
576 
577     public void setNumberOfPieces(boolean numberOfPieces) {
578         this.numberOfPieces = numberOfPieces;
579     }
580 
581     public BigDecimal getFineRate() {
582         return fineRate;
583     }
584 
585     public void setFineRate(BigDecimal fineRate) {
586         this.fineRate = fineRate;
587     }
588 
589     public boolean isCheckOut() {
590         return isCheckOut;
591     }
592 
593     public void setCheckOut(boolean checkOut) {
594         isCheckOut = checkOut;
595     }
596 
597     public String getRealPatronType() {
598         return realPatronType;
599     }
600 
601     public void setRealPatronType(String realPatronType) {
602         this.realPatronType = realPatronType;
603     }
604 
605     public String getRealPatronBarcode() {
606         return realPatronBarcode;
607     }
608 
609     public void setRealPatronBarcode(String realPatronBarcode) {
610         this.realPatronBarcode = realPatronBarcode;
611     }
612 
613     public List<OlePatronDocument> getRealPatron() {
614         return realPatron;
615     }
616 
617     public void setRealPatron(List<OlePatronDocument> realPatron) {
618         this.realPatron = realPatron;
619     }
620 
621     public String getPatronNoteTypeId() {
622         return patronNoteTypeId;
623     }
624 
625     public void setPatronNoteTypeId(String patronNoteTypeId) {
626         this.patronNoteTypeId = patronNoteTypeId;
627     }
628 
629     public String getPatronUserNotes() {
630         return patronUserNotes;
631     }
632 
633     public void setPatronUserNotes(String patronUserNotes) {
634         this.patronUserNotes = patronUserNotes;
635     }
636 
637     //For Check-in
638     private String itemStatus;
639     private Timestamp checkInDate;
640 
641     public Timestamp getCheckInDate() {
642         return checkInDate;
643     }
644 
645     public void setCheckInDate(Timestamp checkInDate) {
646         this.checkInDate = checkInDate;
647     }
648 
649     public boolean isRenewalItemFlag() {
650         return renewalItemFlag;
651     }
652 
653     public void setRenewalItemFlag(boolean renewalItemFlag) {
654         this.renewalItemFlag = renewalItemFlag;
655     }
656 
657 
658     public String getItemStatus() {
659         return itemStatus;
660     }
661 
662     public void setItemStatus(String itemStatus) {
663         this.itemStatus = itemStatus;
664     }
665 
666     public String getLocation() {
667         return location;
668     }
669 
670     public void setLocation(String location) {
671         this.location = location;
672     }
673 
674     public String getAuthor() {
675         return author;
676     }
677 
678     public void setAuthor(String author) {
679         this.author = author;
680     }
681 
682     public String getPreferredAddress() {
683         return preferredAddress;
684     }
685 
686     public void setPreferredAddress(String preferredAddress) {
687         this.preferredAddress = preferredAddress;
688     }
689 
690     public String getEmail() {
691         return email;
692     }
693 
694     public void setEmail(String email) {
695         this.email = email;
696     }
697 
698     public String getPhoneNumber() {
699         return phoneNumber;
700     }
701 
702     public void setPhoneNumber(String phoneNumber) {
703         this.phoneNumber = phoneNumber;
704     }
705 
706     public String getClaimsReturnNote() {
707         return claimsReturnNote;
708     }
709 
710     public void setClaimsReturnNote(String claimsReturnNote) {
711         this.claimsReturnNote = claimsReturnNote;
712     }
713 
714     public String getProxyPatronId() {
715         return proxyPatronId;
716     }
717 
718     public void setProxyPatronId(String proxyPatronId) {
719         this.proxyPatronId = proxyPatronId;
720     }
721 
722     public String getCirculationLocationId() {
723         return circulationLocationId;
724     }
725 
726     public void setCirculationLocationId(String circulationLocationId) {
727         this.circulationLocationId = circulationLocationId;
728     }
729 
730     public String getMachineId() {
731         return machineId;
732     }
733 
734     public void setMachineId(String machineId) {
735         this.machineId = machineId;
736     }
737 
738     public String getNumberOfRenewals() {
739         if (numberOfRenewals == null || "".equals(numberOfRenewals))
740             numberOfRenewals = "0";
741         return numberOfRenewals;
742     }
743 
744     public void setNumberOfRenewals(String numberOfRenewals) {
745         this.numberOfRenewals = numberOfRenewals;
746     }
747 
748     public String getNumberOfOverdueNoticesSent() {
749         return numberOfOverdueNoticesSent;
750     }
751 
752     public void setNumberOfOverdueNoticesSent(String numberOfOverdueNoticesSent) {
753         this.numberOfOverdueNoticesSent = numberOfOverdueNoticesSent;
754     }
755 
756     public String getOleRequestId() {
757         return oleRequestId;
758     }
759 
760     public void setOleRequestId(String oleRequestId) {
761         this.oleRequestId = oleRequestId;
762     }
763 
764     public String getRepaymentFeePatronBillId() {
765         return repaymentFeePatronBillId;
766     }
767 
768     public void setRepaymentFeePatronBillId(String repaymentFeePatronBillId) {
769         this.repaymentFeePatronBillId = repaymentFeePatronBillId;
770     }
771 
772     public boolean isClaimsReturnedIndicator() {
773         return claimsReturnedIndicator;
774     }
775 
776     public void setClaimsReturnedIndicator(boolean claimsReturnedIndicator) {
777         this.claimsReturnedIndicator = claimsReturnedIndicator;
778     }
779 
780     public Date getCreateDate() {
781         return createDate;
782     }
783 
784     public void setCreateDate(Date createDate) {
785         this.createDate = createDate;
786     }
787 
788     public Date getPastDueDate() {
789         return pastDueDate;
790     }
791 
792     public void setPastDueDate(Date pastDueDate) {
793         this.pastDueDate = pastDueDate;
794     }
795 
796     public Date getOverDueNoticeDate() {
797         return overDueNoticeDate;
798     }
799 
800     public void setOverDueNoticeDate(Date overDueNoticeDate) {
801         this.overDueNoticeDate = overDueNoticeDate;
802     }
803 
804     public String getCirculationPolicyId() {
805         return circulationPolicyId;
806     }
807 
808     public void setCirculationPolicyId(String circulationPolicyId) {
809         this.circulationPolicyId = circulationPolicyId;
810     }
811 
812     public String getNoOfOverdueNoticesSentForBorrower() {
813         return noOfOverdueNoticesSentForBorrower;
814     }
815 
816     public void setNoOfOverdueNoticesSentForBorrower(String noOfOverdueNoticesSentForBorrower) {
817         this.noOfOverdueNoticesSentForBorrower = noOfOverdueNoticesSentForBorrower;
818     }
819 
820     public boolean isCheckNo() {
821         return checkNo;
822     }
823 
824     public void setCheckNo(boolean checkNo) {
825         this.checkNo = checkNo;
826     }
827 
828     private List<OLEDeliverNotice> deliverNotices;
829 
830     /**
831      * Gets the ItemCallNumber attribute.
832      *
833      * @return returns the String.
834      */
835     public String getItemCallNumber() {
836         return itemCallNumber;
837     }
838 
839     /**
840      * Sets the itemCallNumber attribute value.
841      *
842      * @param itemCallNumber
843      */
844     public void setItemCallNumber(String itemCallNumber) {
845         this.itemCallNumber = itemCallNumber;
846     }
847 
848     /**
849      * Gets the instanceUuid attribute.
850      *
851      * @return Returns the instanceUuid
852      */
853     public String getInstanceUuid() {
854         return instanceUuid;
855     }
856 
857     /**
858      * Sets the instanceUuid attribute value.
859      *
860      * @param instanceUuid The instanceUuid to set.
861      */
862     public void setInstanceUuid(String instanceUuid) {
863         this.instanceUuid = instanceUuid;
864     }
865 
866     /**
867      * Gets the oleInstanceItemType attribute.
868      *
869      * @return Returns the oleInstanceItemType
870      */
871     public OleInstanceItemType getOleInstanceItemType() {
872         return oleInstanceItemType;
873     }
874 
875     /**
876      * Sets the oleInstanceItemType attribute value.
877      *
878      * @param oleInstanceItemType The oleInstanceItemType to set.
879      */
880     public void setOleInstanceItemType(OleInstanceItemType oleInstanceItemType) {
881         this.oleInstanceItemType = oleInstanceItemType;
882     }
883 
884     /**
885      * Gets the dueDateEmpty attribute.
886      *
887      * @return Returns the dueDateEmpty
888      */
889     public boolean isDueDateEmpty() {
890         return dueDateEmpty;
891     }
892 
893     /**
894      * Sets the dueDateEmpty attribute value.
895      *
896      * @param dueDateEmpty The dueDateEmpty to set.
897      */
898     public void setDueDateEmpty(boolean dueDateEmpty) {
899         this.dueDateEmpty = dueDateEmpty;
900     }
901 
902     /**
903      * Gets the expirationDate attribute.
904      *
905      * @return Returns the expirationDate
906      */
907     public java.util.Date getExpirationDate() {
908         return expirationDate;
909     }
910 
911     /**
912      * Sets the expirationDate attribute value.
913      *
914      * @param expirationDate The expirationDate to set.
915      */
916     public void setExpirationDate(java.util.Date expirationDate) {
917         this.expirationDate = expirationDate;
918     }
919 
920     /**
921      * Gets the itemTypeName attribute.
922      *
923      * @return Returns the itemTypeName
924      */
925     public String getItemTypeName() {
926         return itemTypeName;
927     }
928 
929     /**
930      * Sets the itemTypeName attribute value.
931      *
932      * @param itemTypeName The itemTypeName to set.
933      */
934     public void setItemTypeName(String itemTypeName) {
935         this.itemTypeName = itemTypeName;
936     }
937 
938     /**
939      * Gets the patronBarcode attribute.
940      *
941      * @return Returns the patronBarcode
942      */
943     public String getPatronBarcode() {
944         return patronBarcode;
945     }
946 
947     /**
948      * Sets the patronBarcode attribute value.
949      *
950      * @param patronBarcode The patronBarcode to set.
951      */
952     public void setPatronBarcode(String patronBarcode) {
953         this.patronBarcode = patronBarcode;
954     }
955 
956     /**
957      * Gets the itemUuid attribute.
958      *
959      * @return Returns the itemUuid
960      */
961     public String getItemUuid() {
962         return itemUuid;
963     }
964 
965     /**
966      * Sets the itemUuid attribute value.
967      *
968      * @param itemUuid The itemUuid to set.
969      */
970     public void setItemUuid(String itemUuid) {
971         this.itemUuid = itemUuid;
972     }
973 
974     /**
975      * Gets the patronName attribute.
976      *
977      * @return Returns the patronName
978      */
979     public String getPatronName() {
980         return patronName;
981     }
982 
983     /**
984      * Sets the patronName attribute value.
985      *
986      * @param patronName The patronName to set.
987      */
988     public void setPatronName(String patronName) {
989         this.patronName = patronName;
990     }
991 
992     /**
993      * Gets the isValidPatron attribute.
994      *
995      * @return Returns the isValidPatron
996      */
997     public boolean isValidPatron() {
998         return isValidPatron;
999     }
1000 
1001     /**
1002      * Sets the isValidPatron attribute value.
1003      *
1004      * @param validPatron The isValidPatron to set.
1005      */
1006     public void setValidPatron(boolean validPatron) {
1007         isValidPatron = validPatron;
1008     }
1009 
1010     /**
1011      * Gets the borrowerTypeName attribute.
1012      *
1013      * @return Returns the borrowerTypeName
1014      */
1015     public String getBorrowerTypeName() {
1016         return borrowerTypeName;
1017     }
1018 
1019     /**
1020      * Sets the borrowerTypeName attribute value.
1021      *
1022      * @param borrowerTypeName The borrowerTypeName to set.
1023      */
1024     public void setBorrowerTypeName(String borrowerTypeName) {
1025         this.borrowerTypeName = borrowerTypeName;
1026     }
1027 
1028     /**
1029      * Gets the errorMessage attribute.
1030      *
1031      * @return Returns the errorMessage
1032      */
1033     public String getErrorMessage() {
1034         return errorMessage;
1035     }
1036 
1037     /**
1038      * Sets the errorMessage attribute value.
1039      *
1040      * @param errorMessage The errorMessage to set.
1041      */
1042     public void setErrorMessage(String errorMessage) {
1043         this.errorMessage = errorMessage;
1044     }
1045 
1046     /**
1047      * Gets the oleLocation attribute.
1048      *
1049      * @return Returns the oleLocation
1050      */
1051     public OleLocation getOleLocation() {
1052         return oleLocation;
1053     }
1054 
1055     /**
1056      * Sets the oleLocation attribute value.
1057      *
1058      * @param oleLocation The oleLocation to set.
1059      */
1060     public void setOleLocation(OleLocation oleLocation) {
1061         this.oleLocation = oleLocation;
1062     }
1063 
1064     /**
1065      * Gets the title attribute.
1066      *
1067      * @return Returns the title
1068      */
1069     public String getTitle() {
1070         return title;
1071     }
1072 
1073     /**
1074      * Sets the title attribute value.
1075      *
1076      * @param title The title to set.
1077      */
1078     public void setTitle(String title) {
1079         this.title = title;
1080     }
1081 
1082     /**
1083      * Gets the entity attribute.
1084      *
1085      * @return Returns the entity
1086      */
1087     public EntityBo getEntity() {
1088         if(getPatronId()!=null){
1089             EntityBo entityBo = (EntityBo) KRADServiceLocator.getBusinessObjectService().findBySinglePrimaryKey(EntityBo.class, getPatronId());
1090             return entityBo;
1091         }else{
1092             return entity;
1093         }
1094     }
1095 
1096     /**
1097      * Sets the entity attribute value.
1098      *
1099      * @param entity The entity to set.
1100      */
1101     public void setEntity(EntityBo entity) {
1102         this.entity = entity;
1103     }
1104 
1105     /**
1106      * Gets the oleBorrowerType attribute.
1107      *
1108      * @return Returns the oleBorrowerType
1109      */
1110     public OleBorrowerType getOleBorrowerType() {
1111         return oleBorrowerType;
1112     }
1113 
1114     /**
1115      * Sets the oleBorrowerType attribute value.
1116      *
1117      * @param oleBorrowerType The oleBorrowerType to set.
1118      */
1119     public void setOleBorrowerType(OleBorrowerType oleBorrowerType) {
1120         this.oleBorrowerType = oleBorrowerType;
1121     }
1122 
1123     /**
1124      * Gets the olePatron attribute.
1125      *
1126      * @return Returns the olePatron
1127      */
1128     public OlePatronDocument getOlePatron() {
1129         return olePatron;
1130     }
1131 
1132     /**
1133      * Sets the olePatron attribute value.
1134      *
1135      * @param olePatron The olePatron to set.
1136      */
1137     public void setOlePatron(OlePatronDocument olePatron) {
1138         this.olePatron = olePatron;
1139     }
1140 
1141     /**
1142      * Gets the oleLoanStatus attribute.
1143      *
1144      * @return Returns the oleLoanStatus
1145      */
1146     public OleLoanStatus getOleLoanStatus() {
1147         return oleLoanStatus;
1148     }
1149 
1150     /**
1151      * Sets the oleLoanStatus attribute value.
1152      *
1153      * @param oleLoanStatus The oleLoanStatus to set.
1154      */
1155     public void setOleLoanStatus(OleLoanStatus oleLoanStatus) {
1156         this.oleLoanStatus = oleLoanStatus;
1157     }
1158 
1159     /**
1160      * Gets the oleLoanTermUnit attribute.
1161      *
1162      * @return Returns the oleLoanTermUnit
1163      */
1164     public OleLoanTermUnit getOleLoanTermUnit() {
1165         return oleLoanTermUnit;
1166     }
1167 
1168     /**
1169      * Sets the oleLoanTermUnit attribute value.
1170      *
1171      * @param oleLoanTermUnit The oleLoanTermUnit to set.
1172      */
1173     public void setOleLoanTermUnit(OleLoanTermUnit oleLoanTermUnit) {
1174         this.oleLoanTermUnit = oleLoanTermUnit;
1175     }
1176 
1177     /**
1178      * Gets the loanId attribute.
1179      *
1180      * @return Returns the loanId
1181      */
1182     public String getLoanId() {
1183         return loanId;
1184     }
1185 
1186     /**
1187      * Sets the loanId attribute value.
1188      *
1189      * @param loanId The loanId to set.
1190      */
1191     public void setLoanId(String loanId) {
1192         this.loanId = loanId;
1193     }
1194 
1195     /**
1196      * Gets the loanStatusId attribute.
1197      *
1198      * @return Returns the loanStatusId
1199      */
1200     public String getLoanStatusId() {
1201         return loanStatusId;
1202     }
1203 
1204     /**
1205      * Sets the loanStatusId attribute value.
1206      *
1207      * @param loanStatusId The loanStatusId to set.
1208      */
1209     public void setLoanStatusId(String loanStatusId) {
1210         this.loanStatusId = loanStatusId;
1211     }
1212 
1213     /**
1214      * Gets the patronId attribute.
1215      *
1216      * @return Returns the patronId
1217      */
1218     public String getPatronId() {
1219         return patronId;
1220     }
1221 
1222     /**
1223      * Sets the patronId attribute value.
1224      *
1225      * @param patronId The patronId to set.
1226      */
1227     public void setPatronId(String patronId) {
1228         this.patronId = patronId;
1229     }
1230 
1231     /**
1232      * Gets the itemId attribute.
1233      *
1234      * @return Returns the itemId
1235      */
1236     public String getItemId() {
1237         return itemId;
1238     }
1239 
1240     /**
1241      * Sets the itemId attribute value.
1242      *
1243      * @param itemId The itemId to set.
1244      */
1245     public void setItemId(String itemId) {
1246         this.itemId = itemId;
1247     }
1248 
1249     /**
1250      * Gets the loanPeriodDate attribute.
1251      *
1252      * @return Returns the loanPeriodDate
1253      */
1254     public Date getLoanPeriodDate() {
1255         return loanPeriodDate;
1256     }
1257 
1258     /**
1259      * Sets the loanPeriodDate attribute value.
1260      *
1261      * @param loanPeriodDate The loanPeriodDate to set.
1262      */
1263     public void setLoanPeriodDate(Date loanPeriodDate) {
1264         this.loanPeriodDate = loanPeriodDate;
1265     }
1266 
1267     /**
1268      * Gets the loanPeriod attribute.
1269      *
1270      * @return Returns the loanPeriod
1271      */
1272     public Integer getLoanPeriod() {
1273         return loanPeriod;
1274     }
1275 
1276     /**
1277      * Sets the loanPeriod attribute value.
1278      *
1279      * @param loanPeriod The loanPeriod to set.
1280      */
1281     public void setLoanPeriod(Integer loanPeriod) {
1282         this.loanPeriod = loanPeriod;
1283     }
1284 
1285     /**
1286      * Gets the loanTermUnitId attribute.
1287      *
1288      * @return Returns the loanTermUnitId
1289      */
1290     public String getLoanTermUnitId() {
1291         return loanTermUnitId;
1292     }
1293 
1294     /**
1295      * Sets the loanTermUnitId attribute value.
1296      *
1297      * @param loanTermUnitId The loanTermUnitId to set.
1298      */
1299     public void setLoanTermUnitId(String loanTermUnitId) {
1300         this.loanTermUnitId = loanTermUnitId;
1301     }
1302 
1303     /**
1304      * Gets the loanDueDate attribute.
1305      *
1306      * @return Returns the loanDueDate
1307      */
1308     public Timestamp getLoanDueDate() {
1309         return loanDueDate;
1310     }
1311 
1312     /**
1313      * Sets the loanDueDate attribute value.
1314      *
1315      * @param loanDueDate The loanDueDate to set.
1316      */
1317     public void setLoanDueDate(Timestamp loanDueDate) {
1318         this.loanDueDate = loanDueDate;
1319     }
1320 
1321     /**
1322      * Gets the loanOperatorId attribute.
1323      *
1324      * @return Returns the loanOperatorId
1325      */
1326     public String getLoanOperatorId() {
1327         return loanOperatorId;
1328     }
1329 
1330     /**
1331      * Sets the loanOperatorId attribute value.
1332      *
1333      * @param loanOperatorId The loanOperatorId to set.
1334      */
1335     public void setLoanOperatorId(String loanOperatorId) {
1336         this.loanOperatorId = loanOperatorId;
1337     }
1338 
1339     /**
1340      * Gets the loanApproverId attribute.
1341      *
1342      * @return Returns the loanApproverId
1343      */
1344     public String getLoanApproverId() {
1345         return loanApproverId;
1346     }
1347 
1348     /**
1349      * Sets the loanApproverId attribute value.
1350      *
1351      * @param loanApproverId The loanApproverId to set.
1352      */
1353     public void setLoanApproverId(String loanApproverId) {
1354         this.loanApproverId = loanApproverId;
1355     }
1356 
1357     /**
1358      * Gets the borrowerTypeId attribute.
1359      *
1360      * @return Returns the borrowerTypeId
1361      */
1362     public String getBorrowerTypeId() {
1363         return borrowerTypeId;
1364     }
1365 
1366     /**
1367      * Sets the borrowerTypeId attribute value.
1368      *
1369      * @param borrowerTypeId The borrowerTypeId to set.
1370      */
1371     public void setBorrowerTypeId(String borrowerTypeId) {
1372         this.borrowerTypeId = borrowerTypeId;
1373     }
1374 
1375     /**
1376      * Gets the itemInstitution attribute.
1377      *
1378      * @return Returns the itemInstitution
1379      */
1380     public String getItemInstitution() {
1381         return itemInstitution;
1382     }
1383 
1384     /**
1385      * Sets the itemInstitution attribute value.
1386      *
1387      * @param itemInstitution The itemInstitution to set.
1388      */
1389     public void setItemInstitution(String itemInstitution) {
1390         this.itemInstitution = itemInstitution;
1391     }
1392 
1393     /**
1394      * Gets the itemCampus attribute.
1395      *
1396      * @return Returns the itemCampus
1397      */
1398     public String getItemCampus() {
1399         return itemCampus;
1400     }
1401 
1402     /**
1403      * Sets the itemCampus attribute value.
1404      *
1405      * @param itemCampus The itemCampus to set.
1406      */
1407     public void setItemCampus(String itemCampus) {
1408         this.itemCampus = itemCampus;
1409     }
1410 
1411     /**
1412      * Gets the itemLibrary attribute.
1413      *
1414      * @return Returns the itemLibrary
1415      */
1416     public String getItemLibrary() {
1417         return itemLibrary;
1418     }
1419 
1420     /**
1421      * Sets the itemLibrary attribute value.
1422      *
1423      * @param itemLibrary The itemLibrary to set.
1424      */
1425     public void setItemLibrary(String itemLibrary) {
1426         this.itemLibrary = itemLibrary;
1427     }
1428 
1429     /**
1430      * Gets the itemCollection attribute.
1431      *
1432      * @return Returns the itemCollection
1433      */
1434     public String getItemCollection() {
1435         return itemCollection;
1436     }
1437 
1438     /**
1439      * Sets the itemCollection attribute value.
1440      *
1441      * @param itemCollection The itemCollection to set.
1442      */
1443     public void setItemCollection(String itemCollection) {
1444         this.itemCollection = itemCollection;
1445     }
1446 
1447     /**
1448      * Gets the itemLocation attribute.
1449      *
1450      * @return Returns the itemLocation
1451      */
1452     public String getItemLocation() {
1453         return itemLocation;
1454     }
1455 
1456     /**
1457      * Sets the itemLocation attribute value.
1458      *
1459      * @param itemLocation The itemLocation to set.
1460      */
1461     public void setItemLocation(String itemLocation) {
1462         this.itemLocation = itemLocation;
1463     }
1464 
1465     /**
1466      * Gets the itemType attribute.
1467      *
1468      * @return Returns the itemType
1469      */
1470     public String getItemType() {
1471         return itemType;
1472     }
1473 
1474     /**
1475      * Sets the itemType attribute value.
1476      *
1477      * @param itemType The itemType to set.
1478      */
1479     public void setItemType(String itemType) {
1480         this.itemType = itemType;
1481     }
1482 
1483 
1484     /**
1485      * Gets the itemLoanStatus attribute.
1486      *
1487      * @return Returns the itemLoanStatus
1488      */
1489     public String getItemLoanStatus() {
1490         return itemLoanStatus;
1491     }
1492 
1493     /**
1494      * Sets the itemLoanStatus attribute value.
1495      *
1496      * @param itemLoanStatus The itemLoanStatus to set.
1497      */
1498     public void setItemLoanStatus(String itemLoanStatus) {
1499         this.itemLoanStatus = itemLoanStatus;
1500     }
1501 
1502     /**
1503      * Gets the oleItem attribute.
1504      *
1505      * @return Returns the oleItem
1506      */
1507     public Item getOleItem() {
1508         return oleItem;
1509     }
1510 
1511     /**
1512      * Sets the oleItem attribute value.
1513      *
1514      * @param oleItem The oleItem to set.
1515      */
1516     public void setOleItem(Item oleItem) {
1517         this.oleItem = oleItem;
1518     }
1519 
1520     /**
1521      * Gets the itemVolumeNumber attribute.
1522      *
1523      * @return Returns the itemVolumeNumber
1524      */
1525     public String getItemVolumeNumber() {
1526         return itemVolumeNumber;
1527     }
1528 
1529     /**
1530      * Sets the itemVolumeNumber attribute value.
1531      *
1532      * @param itemVolumeNumber The oleItem to set.
1533      */
1534     public void setItemVolumeNumber(String itemVolumeNumber) {
1535         this.itemVolumeNumber = itemVolumeNumber;
1536     }
1537 
1538     /**
1539      * Gets the claims return date attribute value.
1540      *
1541      * @return Returns the claims return date
1542      */
1543     public Timestamp getClaimsReturnedDate() {
1544         return claimsReturnedDate;
1545     }
1546 
1547     /**
1548      * Sets the claims return date attribute value.
1549      *
1550      * @param claimsReturnedDate
1551      */
1552     public void setClaimsReturnedDate(Timestamp claimsReturnedDate) {
1553         this.claimsReturnedDate = claimsReturnedDate;
1554     }
1555 
1556     /**
1557      * Gets the loanDueDateTimeToAlter attribute value.
1558      *
1559      * @return Returns the loanDueDateTimeToAlter
1560      */
1561     public String getLoanDueDateTimeToAlter() {
1562         return loanDueDateTimeToAlter;
1563     }
1564 
1565     /**
1566      * Sets the loanDueDateTimeToAlter attribute value.
1567      *
1568      * @param loanDueDateTimeToAlter
1569      */
1570     public void setLoanDueDateTimeToAlter(String loanDueDateTimeToAlter) {
1571         this.loanDueDateTimeToAlter = loanDueDateTimeToAlter;
1572     }
1573 
1574     public boolean isBackGroundCheckOut() {
1575         return isBackGroundCheckOut;
1576     }
1577 
1578     public void setBackGroundCheckOut(boolean backGroundCheckOut) {
1579         isBackGroundCheckOut = backGroundCheckOut;
1580     }
1581 
1582     public String getOverrideErrorMessage() {
1583         return overrideErrorMessage;
1584     }
1585 
1586     public void setOverrideErrorMessage(String overrideErrorMessage) {
1587         this.overrideErrorMessage = overrideErrorMessage;
1588     }
1589 
1590     public HashMap<String, String> getErrorsAndPermission() {
1591         return errorsAndPermission;
1592     }
1593 
1594     public void setErrorsAndPermission(HashMap<String, String> errorsAndPermission) {
1595         this.errorsAndPermission = errorsAndPermission;
1596     }
1597 
1598     public boolean isRenewPermission() {
1599         return renewPermission;
1600     }
1601 
1602     public void setRenewPermission(boolean renewPermission) {
1603         this.renewPermission = renewPermission;
1604     }
1605 
1606     public boolean isReplacementFeeExist() {
1607         return replacementFeeExist;
1608     }
1609 
1610     public void setReplacementFeeExist(boolean replacementFeeExist) {
1611         this.replacementFeeExist = replacementFeeExist;
1612     }
1613 
1614     public boolean isOverdueFineExist() {
1615         return overdueFineExist;
1616     }
1617 
1618     public void setOverdueFineExist(boolean overdueFineExist) {
1619         this.overdueFineExist = overdueFineExist;
1620     }
1621 
1622     public boolean isDifferentPatron() {
1623         return differentPatron;
1624     }
1625 
1626     public void setDifferentPatron(boolean differentPatron) {
1627         this.differentPatron = differentPatron;
1628     }
1629 
1630     public boolean isItemDamagedStatus() {
1631         return itemDamagedStatus;
1632     }
1633 
1634     public void setItemDamagedStatus(boolean itemDamagedStatus) {
1635         this.itemDamagedStatus = itemDamagedStatus;
1636     }
1637 
1638     public boolean isSkipDamagedCheckIn() {
1639         return skipDamagedCheckIn;
1640     }
1641 
1642     public void setSkipDamagedCheckIn(boolean skipDamagedCheckIn) {
1643         this.skipDamagedCheckIn = skipDamagedCheckIn;
1644     }
1645 
1646     public String getMissingPiecesCount() {
1647         return missingPiecesCount;
1648     }
1649 
1650     public void setMissingPiecesCount(String missingPiecesCount) {
1651         this.missingPiecesCount = missingPiecesCount;
1652     }
1653 
1654     public boolean isMissingPieceFlag() {
1655         return missingPieceFlag;
1656     }
1657 
1658     public void setMissingPieceFlag(boolean missingPieceFlag) {
1659         this.missingPieceFlag = missingPieceFlag;
1660     }
1661 
1662     public boolean isBackgroundCheckInMissingPiece() {
1663         return backgroundCheckInMissingPiece;
1664     }
1665 
1666     public void setBackgroundCheckInMissingPiece(boolean backgroundCheckInMissingPiece) {
1667         this.backgroundCheckInMissingPiece = backgroundCheckInMissingPiece;
1668     }
1669 
1670     public boolean isLostPatron() {
1671         return lostPatron;
1672     }
1673 
1674     public void setLostPatron(boolean lostPatron) {
1675         this.lostPatron = lostPatron;
1676     }
1677 
1678     public String getItemDamagedNote() {
1679         return itemDamagedNote;
1680     }
1681 
1682     public void setItemDamagedNote(String itemDamagedNote) {
1683         this.itemDamagedNote = itemDamagedNote;
1684     }
1685 
1686     public String getMissingPieceNote() {
1687         return missingPieceNote;
1688     }
1689 
1690     public void setMissingPieceNote(String missingPieceNote) {
1691         this.missingPieceNote = missingPieceNote;
1692     }
1693 
1694     public boolean isNoOfPiecesEditable() {
1695         return noOfPiecesEditable;
1696     }
1697 
1698     public void setNoOfPiecesEditable(boolean noOfPiecesEditable) {
1699         this.noOfPiecesEditable = noOfPiecesEditable;
1700     }
1701 
1702     public boolean isNoOfMissingPiecesEditable() {
1703         return noOfMissingPiecesEditable;
1704     }
1705 
1706     public void setNoOfMissingPiecesEditable(boolean noOfMissingPiecesEditable) {
1707         this.noOfMissingPiecesEditable = noOfMissingPiecesEditable;
1708     }
1709 
1710     public String getBackUpNoOfPieces() {
1711         return backUpNoOfPieces;
1712     }
1713 
1714     public void setBackUpNoOfPieces(String backUpNoOfPieces) {
1715         this.backUpNoOfPieces = backUpNoOfPieces;
1716     }
1717 
1718     public String getSuccessMessage() {
1719         return successMessage;
1720     }
1721 
1722     public void setSuccessMessage(String successMessage) {
1723         this.successMessage = successMessage;
1724     }
1725 
1726     public boolean isRenewPermissionForRequestedItem() {
1727         return renewPermissionForRequestedItem;
1728     }
1729 
1730     public void setRenewPermissionForRequestedItem(boolean renewPermissionForRequestedItem) {
1731         this.renewPermissionForRequestedItem = renewPermissionForRequestedItem;
1732     }
1733 
1734     public boolean isLoanModified() {
1735         return loanModified;
1736     }
1737 
1738     public void setLoanModified(boolean loanModified) {
1739         this.loanModified = loanModified;
1740     }
1741 
1742     public String getItemFullLocation() {
1743         return itemFullLocation;
1744     }
1745 
1746     public void setItemFullLocation(String itemFullLocation) {
1747         this.itemFullLocation = itemFullLocation;
1748     }
1749 
1750     @Override
1751     public int compareTo(OleLoanDocument oleLoanDocument) {
1752         if(this.itemId!=null && itemId.equals(oleLoanDocument.getItemId())){
1753             return 0;
1754         }
1755         return -1;
1756     }
1757 
1758     @Override
1759     public boolean equals(Object obj) {
1760         if(obj==null){
1761            return super.equals(obj);
1762         } else {
1763              if(obj  instanceof OleLoanDocument){
1764                  OleLoanDocument oleLoanDocument=(OleLoanDocument)obj;
1765                  if(this.itemId!=null && itemId.equals(oleLoanDocument.getItemId())){
1766                      return true;
1767                  } else {
1768                      return super.equals(obj);
1769                  }
1770              } else {
1771                  return super.equals(obj);
1772              }
1773 
1774         }
1775     }
1776 
1777     public String getItemStatusEffectiveDate() {
1778         return itemStatusEffectiveDate;
1779     }
1780 
1781     public void setItemStatusEffectiveDate(String itemStatusEffectiveDate) {
1782         this.itemStatusEffectiveDate = itemStatusEffectiveDate;
1783     }
1784 
1785     public List<OLEDeliverNotice> getDeliverNotices() {
1786         return deliverNotices;
1787     }
1788 
1789     public void setDeliverNotices(List<OLEDeliverNotice> deliverNotices) {
1790         this.deliverNotices = deliverNotices;
1791     }
1792 
1793 
1794 
1795     public String getNoticeType() {
1796         return noticeType;
1797     }
1798 
1799     public void setNoticeType(String noticeType) {
1800         this.noticeType = noticeType;
1801     }
1802 
1803 
1804     public String getNoticeSendType() {
1805         return noticeSendType;
1806     }
1807 
1808     public void setNoticeSendType(String noticeSendType) {
1809         this.noticeSendType = noticeSendType;
1810     }
1811 
1812     public OLEDeliverNotice getOleDeliverNotice() {
1813         return oleDeliverNotice;
1814     }
1815 
1816     public void setOleDeliverNotice(OLEDeliverNotice oleDeliverNotice) {
1817         this.oleDeliverNotice = oleDeliverNotice;
1818     }
1819 
1820     public String getOleLocationCode() {
1821         return oleLocationCode;
1822     }
1823 
1824     public void setOleLocationCode(String oleLocationCode) {
1825         this.oleLocationCode = oleLocationCode;
1826     }
1827 
1828     public String getHoldingsLocation() {
1829         return holdingsLocation;
1830     }
1831 
1832     public void setHoldingsLocation(String holdingsLocation) {
1833         this.holdingsLocation = holdingsLocation;
1834     }
1835 
1836     public boolean isItemLevelLocationExist() {
1837         return itemLevelLocationExist;
1838     }
1839 
1840     public void setItemLevelLocationExist(boolean itemLevelLocationExist) {
1841         this.itemLevelLocationExist = itemLevelLocationExist;
1842     }
1843 }