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