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