1 package org.kuali.ole.deliver.bo;
2
3 import org.apache.commons.collections.CollectionUtils;
4 import org.apache.commons.lang3.StringUtils;
5 import org.kuali.ole.deliver.OleLoanDocumentsFromSolrBuilder;
6 import org.kuali.ole.deliver.api.*;
7 import org.kuali.ole.deliver.processor.LoanProcessor;
8 import org.kuali.ole.sys.context.SpringContext;
9 import org.kuali.rice.kim.api.KimConstants;
10 import org.kuali.rice.kim.api.identity.IdentityService;
11 import org.kuali.rice.kim.api.identity.address.EntityAddress;
12 import org.kuali.rice.kim.api.identity.email.EntityEmail;
13 import org.kuali.rice.kim.api.identity.employment.EntityEmployment;
14 import org.kuali.rice.kim.api.identity.phone.EntityPhone;
15 import org.kuali.rice.kim.api.services.KimApiServiceLocator;
16 import org.kuali.rice.kim.impl.identity.address.EntityAddressBo;
17 import org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo;
18 import org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationTypeBo;
19 import org.kuali.rice.kim.impl.identity.email.EntityEmailBo;
20 import org.kuali.rice.kim.impl.identity.employment.EntityEmploymentBo;
21 import org.kuali.rice.kim.impl.identity.entity.EntityBo;
22 import org.kuali.rice.kim.impl.identity.name.EntityNameBo;
23 import org.kuali.rice.kim.impl.identity.phone.EntityPhoneBo;
24 import org.kuali.rice.kim.impl.identity.type.EntityTypeContactInfoBo;
25 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
26 import org.kuali.rice.krad.service.KRADServiceLocator;
27
28 import java.util.*;
29
30
31
32
33 public class OlePatronDocument extends PersistableBusinessObjectBase implements OlePatronContract {
34
35 private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OlePatronDocument.class);
36
37 private String olePatronId;
38 private String barcode;
39 private String borrowerType;
40 private String affiliationType;
41 private boolean activeIndicator;
42 private boolean generalBlock;
43 private String generalBlockNotes;
44 private boolean pagingPrivilege;
45 private boolean courtesyNotice;
46 private boolean deliveryPrivilege;
47 private boolean realPatronCheck;
48 private boolean selfCheckOut = false;
49 private Date expirationDate;
50 private Date activationDate;
51 private String firstName;
52 private String middleName;
53 private String lastName;
54 private String emailAddress;
55 private String phoneNumber;
56 private String borrowerTypeName;
57 private String processMessage;
58 private String source;
59 private String statisticalCategory;
60 private String oleSourceName;
61 private String oleStatisticalCategoryName;
62 private boolean patronBillFlag;
63 private String proxyPatronId;
64 private byte[] patronPhotograph;
65 private boolean loanFlag;
66 private boolean tempCircHistoryFlag;
67 private boolean requestFlag;
68 private boolean upload = true;
69 private boolean patronHomePage;
70 private boolean pointing;
71 private boolean startingIndexExecuted;
72 private boolean activateBarcode;
73 private boolean deactivateBarcode;
74 private String lostStatus;
75 private String lostDescription;
76 private boolean invalidateBarcode;
77 private boolean reinstateBarcode;
78 private boolean skipBarcodeValidation;
79 private boolean barcodeChanged;
80 private boolean barcodeEditable;
81 private boolean expirationFlag = true;
82 private boolean popupDialog;
83 private String patronMessage;
84 private String uiMessageType;
85 private boolean reinstated;
86 private int numberOfClaimsReturned;
87 private boolean showLoanedRecords;
88 private boolean showRequestedItems;
89 private boolean showTemporaryCirculationHistoryRecords;
90
91 private HashMap<String, String> errorsAndPermission = new HashMap<>();
92 private String errorMessage;
93 private boolean blockPatron;
94 private String realPatronFirstName;
95
96 private String realPatronLastName;
97 private int loanCount;
98 private int requestedItemRecordsCount;
99 private int tempCirculationHistoryCount;
100
101 private transient IdentityService identityService;
102
103 public IdentityService getIdentityService() {
104 if (identityService == null) {
105 identityService = KimApiServiceLocator.getIdentityService();
106 }
107 return identityService;
108 }
109
110 public boolean isPatronHomePage() {
111 return patronHomePage;
112 }
113
114 public boolean isExpirationFlag() {
115 return expirationFlag;
116 }
117
118 public void setExpirationFlag(boolean expirationFlag) {
119 this.expirationFlag = expirationFlag;
120 }
121
122 public void setPatronHomePage(boolean patronHomePage) {
123 this.patronHomePage = patronHomePage;
124 }
125
126 private List<OleLoanDocument> oleLoanDocuments = new ArrayList<OleLoanDocument>();
127 private List<EntityPhoneBo> phones = new ArrayList<EntityPhoneBo>();
128 private List<EntityPhoneBo> deletedPhones = new ArrayList<EntityPhoneBo>();
129 private List<EntityAddressBo> addresses = new ArrayList<EntityAddressBo>();
130 private List<OleEntityAddressBo> oleEntityAddressBo = new ArrayList<OleEntityAddressBo>();
131 private List<OleEntityAddressBo> deletedOleEntityAddressBo = new ArrayList<OleEntityAddressBo>();
132 private EntityNameBo name = new EntityNameBo();
133 private List<OleAddressBo> oleAddresses;
134 private List<EntityEmailBo> emails = new ArrayList<EntityEmailBo>();
135 private List<EntityEmailBo> deletedEmails = new ArrayList<EntityEmailBo>();
136 private List<OlePatronNotes> notes;
137 private List<OlePatronNotes> deletedNotes = new ArrayList<OlePatronNotes>();
138 private List<OlePatronLostBarcode> lostBarcodes;
139 private OleBorrowerType oleBorrowerType;
140 private EntityBo entity = new EntityBo();
141 private OleSourceBo sourceBo;
142 private OleStatisticalCategoryBo statisticalCategoryBo;
143 private List<OlePatronAffiliation> patronAffiliations = new ArrayList<OlePatronAffiliation>();
144 private List<OlePatronAffiliation> deletedPatronAffiliations = new ArrayList<OlePatronAffiliation>();
145 private List<EntityEmploymentBo> employments = new ArrayList<EntityEmploymentBo>();
146 private List<EntityEmploymentBo> deletedEmployments = new ArrayList<EntityEmploymentBo>();
147 private List<OleDeliverRequestBo> oleDeliverRequestBos = new ArrayList<OleDeliverRequestBo>();
148 private List<OleProxyPatronDocument> oleProxyPatronDocuments;
149 private List<OleProxyPatronDocument> deletedOleProxyPatronDocuments = new ArrayList<OleProxyPatronDocument>();
150 private List<OleTemporaryCirculationHistory> oleTemporaryCirculationHistoryRecords = new ArrayList<OleTemporaryCirculationHistory>();
151 private List<OlePatronLocalIdentificationBo> olePatronLocalIds;
152 private List<OlePatronLocalIdentificationBo> deletedOlePatronLocalIds = new ArrayList<OlePatronLocalIdentificationBo>();
153 private List<OleProxyPatronDocument> oleProxyPatronDocumentList = new ArrayList<OleProxyPatronDocument>();
154 private List<PatronBillPayment> patronBillPayments;
155 private OLEPatronEntityViewBo olePatronEntityViewBo;
156 private String patronBillFileName;
157 private String viewBillUrl;
158 private String createBillUrl;
159 private String namePrefix;
160 private String nameSuffix;
161
162 public HashMap<String, String> getErrorsAndPermission() {
163 return errorsAndPermission;
164 }
165
166 public void setErrorsAndPermission(HashMap<String, String> errorsAndPermission) {
167 this.errorsAndPermission = errorsAndPermission;
168 }
169
170 public String getErrorMessage() {
171 return errorMessage;
172 }
173
174 public void setErrorMessage(String errorMessage) {
175 this.errorMessage = errorMessage;
176 }
177
178 public boolean isBlockPatron() {
179 return blockPatron;
180 }
181
182 public void setBlockPatron(boolean blockPatron) {
183 this.blockPatron = blockPatron;
184 }
185
186 public void setBorrowerTypeName(String borrowerTypeName) {
187 this.borrowerTypeName = borrowerTypeName;
188 }
189
190 private String patronName;
191
192 private String borrowerTypeCode;
193
194 public List<PatronBillPayment> getPatronBillPayments() {
195 if (null == patronBillPayments) {
196 if (StringUtils.isNotEmpty(getOlePatronId())) {
197 Map<String, String> parameterMap = new HashMap<>();
198 parameterMap.put("patronId", getOlePatronId());
199 List<PatronBillPayment> olePatronBillPaymentList = (List<PatronBillPayment>) KRADServiceLocator.getBusinessObjectService().findMatching(PatronBillPayment.class, parameterMap);
200 patronBillPayments = olePatronBillPaymentList;
201 } else patronBillPayments = new ArrayList<>();
202 }
203 return patronBillPayments;
204 }
205
206 public void setPatronBillPayments(List<PatronBillPayment> patronBillPayments) {
207 this.patronBillPayments = patronBillPayments;
208 }
209
210 public int getNumberOfClaimsReturned() {
211 return numberOfClaimsReturned;
212 }
213
214 public void setNumberOfClaimsReturned(int numberOfClaimsReturned) {
215 this.numberOfClaimsReturned = numberOfClaimsReturned;
216 }
217
218 public String getBorrowerTypeCode() {
219 if (getOleBorrowerType() != null) {
220 return oleBorrowerType.getBorrowerTypeCode();
221 }
222 return borrowerTypeCode;
223 }
224
225 public void setBorrowerTypeCode(String borrowerTypeCode) {
226 this.borrowerTypeCode = borrowerTypeCode;
227 }
228
229 public boolean isSelfCheckOut() {
230 return selfCheckOut;
231 }
232
233 public void setSelfCheckOut(boolean selfCheckOut) {
234 this.selfCheckOut = selfCheckOut;
235 }
236
237 public String getPatronName() {
238 return patronName;
239 }
240
241 public void setPatronName(String patronName) {
242 this.patronName = patronName;
243 }
244
245 public OlePatronDocument() {
246 this.setActivationDate(new Date());
247 this.setDeliveryPrivilege(true);
248 this.setPagingPrivilege(true);
249 this.setCourtesyNotice(true);
250 this.setBarcodeEditable(true);
251 }
252
253 public boolean isUpload() {
254 return upload;
255 }
256
257 public void setUpload(boolean upload) {
258 this.upload = upload;
259 }
260
261 public List<OleTemporaryCirculationHistory> getOleTemporaryCirculationHistoryRecords() {
262 if (CollectionUtils.isEmpty(oleTemporaryCirculationHistoryRecords)) {
263 try {
264 oleTemporaryCirculationHistoryRecords = new OleLoanDocumentsFromSolrBuilder()
265 .getPatronTemporaryCirculationHistoryRecords(getOlePatronId());
266 } catch (Exception e) {
267 oleTemporaryCirculationHistoryRecords = new ArrayList<>();
268
269 LOG.error(e.getStackTrace());
270 }
271 }
272 return oleTemporaryCirculationHistoryRecords;
273 }
274
275
276
277 public List<OleTemporaryCirculationHistory> getOleTemporaryCirculationHistoryRecordsFromDB() {
278 if (CollectionUtils.isEmpty(oleTemporaryCirculationHistoryRecords)) {
279 if (StringUtils.isNotEmpty(getOlePatronId())) {
280 if (StringUtils.isNotEmpty(getOlePatronId())) {
281 Map<String, String> parameterMap = new HashMap<>();
282 parameterMap.put("olePatronId", getOlePatronId());
283 List<OleTemporaryCirculationHistory> oleTemporaryCirculationHistoryList = (List<OleTemporaryCirculationHistory>) KRADServiceLocator.getBusinessObjectService().findMatching(OleTemporaryCirculationHistory.class, parameterMap);
284 if (CollectionUtils.isNotEmpty(oleTemporaryCirculationHistoryList)) {
285 oleTemporaryCirculationHistoryRecords = oleTemporaryCirculationHistoryList;
286 }
287 }
288 }
289
290 }
291 return oleTemporaryCirculationHistoryRecords;
292 }
293
294 public void setOleTemporaryCirculationHistoryRecords(List<OleTemporaryCirculationHistory> oleTemporaryCirculationHistoryRecords) {
295 this.oleTemporaryCirculationHistoryRecords = oleTemporaryCirculationHistoryRecords;
296 }
297
298 public List<OleDeliverRequestBo> getOleDeliverRequestBos() {
299 if (null == oleDeliverRequestBos) {
300 if (StringUtils.isNotEmpty(getOlePatronId())) {
301 Map<String, String> parameterMap = new HashMap<>();
302 parameterMap.put("borrowerId", getOlePatronId());
303 List<OleDeliverRequestBo> oleDeliverRequestBoList = (List<OleDeliverRequestBo>) KRADServiceLocator.getBusinessObjectService().findMatching(OleDeliverRequestBo.class, parameterMap);
304 oleDeliverRequestBos = oleDeliverRequestBoList;
305 } else oleDeliverRequestBos = new ArrayList<>();
306 }
307 return oleDeliverRequestBos;
308 }
309
310 public void setOleDeliverRequestBos(List<OleDeliverRequestBo> oleDeliverRequestBos) {
311 this.oleDeliverRequestBos = oleDeliverRequestBos;
312 }
313
314
315
316
317
318
319
320 public static OlePatronDefinition to(org.kuali.ole.deliver.bo.OlePatronDocument bo) {
321 if (bo == null) {
322 return null;
323 }
324 return OlePatronDefinition.Builder.create(bo).build();
325 }
326
327
328
329
330
331
332
333 public static org.kuali.ole.deliver.bo.OlePatronDocument from(OlePatronDefinition immutable) {
334 return fromAndUpdate(immutable, null);
335 }
336
337
338
339
340
341
342
343
344 static org.kuali.ole.deliver.bo.OlePatronDocument fromAndUpdate(OlePatronDefinition immutable, org.kuali.ole.deliver.bo.OlePatronDocument toUpdate) {
345 if (immutable == null) {
346 return null;
347 }
348 org.kuali.ole.deliver.bo.OlePatronDocument bo = toUpdate;
349 if (toUpdate == null) {
350 bo = new org.kuali.ole.deliver.bo.OlePatronDocument();
351 }
352
353 bo.olePatronId = immutable.getOlePatronId();
354
355 bo.name = new EntityNameBo();
356
357 if (immutable.getName() != null) {
358 bo.name = EntityNameBo.from(immutable.getName());
359 }
360
361 bo.barcode = immutable.getBarcode();
362 bo.borrowerType = immutable.getBorrowerType();
363 bo.courtesyNotice = immutable.isCourtesyNotice();
364 bo.generalBlock = immutable.isGeneralBlock();
365 bo.deliveryPrivilege = immutable.isDeliveryPrivilege();
366 bo.pagingPrivilege = immutable.isPagingPrivilege();
367 bo.expirationDate = immutable.getExpirationDate();
368 bo.activationDate = immutable.getActivationDate();
369 bo.activeIndicator = immutable.isActiveIndicator();
370 bo.generalBlockNotes = immutable.getGeneralBlockNotes();
371 bo.source = immutable.getSource();
372 bo.statisticalCategory = immutable.getStatisticalCategory();
373
374
375
376
377
378
379
380
381
382 if (immutable.getEntity() != null) {
383 bo.entity = EntityBo.from(immutable.getEntity());
384 }
385 if (immutable.getOleBorrowerType() != null) {
386 bo.oleBorrowerType = OleBorrowerType.from(immutable.getOleBorrowerType());
387 }
388 if (CollectionUtils.isNotEmpty(immutable.getAddresses())) {
389 for (EntityAddress entityAddr : immutable.getAddresses()) {
390 if(bo.addresses == null){
391 bo.addresses = new ArrayList<>();
392 }
393 bo.addresses.add(EntityAddressBo.from(entityAddr));
394 }
395 }
396 if (CollectionUtils.isNotEmpty(immutable.getEmails())) {
397 for (EntityEmail entityEmail : immutable.getEmails()) {
398 bo.emails.add(EntityEmailBo.from(entityEmail));
399 }
400 }
401 if (CollectionUtils.isNotEmpty(immutable.getPhones())) {
402 for (EntityPhone entityPhone : immutable.getPhones()) {
403 bo.phones.add(EntityPhoneBo.from(entityPhone));
404 }
405 }
406
407 if (CollectionUtils.isNotEmpty(immutable.getNotes())) {
408 for (OlePatronNotesDefinition note : immutable.getNotes()) {
409 if(bo.notes == null){
410 bo.notes = new ArrayList<>();
411 }
412 bo.notes.add(OlePatronNotes.from(note));
413 }
414 }
415 if (CollectionUtils.isNotEmpty(immutable.getLostBarcodes())) {
416 for (OlePatronLostBarcodeDefinition lostBarcode : immutable.getLostBarcodes()) {
417 if(bo.lostBarcodes == null){
418 bo.lostBarcodes = new ArrayList<>();
419 }
420 bo.lostBarcodes.add(OlePatronLostBarcode.from(lostBarcode));
421 }
422 }
423 if (CollectionUtils.isNotEmpty(immutable.getOleEntityAddressBo())) {
424 for (OleEntityAddressDefinition address : immutable.getOleEntityAddressBo()) {
425 bo.oleEntityAddressBo.add(OleEntityAddressBo.from(address));
426 }
427 }
428
429 if (CollectionUtils.isNotEmpty(immutable.getPatronAffiliations())) {
430 for (OlePatronAffiliationDefinition affiliation : immutable.getPatronAffiliations()) {
431 bo.patronAffiliations.add(OlePatronAffiliation.from(affiliation));
432 }
433 }
434 if (CollectionUtils.isNotEmpty(immutable.getOleProxyPatronDocuments())) {
435 for (OleProxyPatronDefinition proxyPatron : immutable.getOleProxyPatronDocuments()) {
436 if(bo.oleProxyPatronDocuments == null){
437 bo.oleProxyPatronDocuments = new ArrayList<>();
438 }
439 bo.oleProxyPatronDocuments.add(OleProxyPatronDocument.from(proxyPatron));
440 }
441 }
442 if (CollectionUtils.isNotEmpty(immutable.getOleAddresses())) {
443 for (OleAddressDefinition oleAddress : immutable.getOleAddresses()) {
444 if(bo.oleAddresses == null){
445 bo.oleAddresses = new ArrayList<>();
446 }
447 bo.oleAddresses.add(OleAddressBo.from(oleAddress));
448 }
449 }
450 if (CollectionUtils.isNotEmpty(immutable.getOlePatronLocalIds())) {
451 for (OlePatronLocalIdentificationDefinition olePatronLocalId : immutable.getOlePatronLocalIds()) {
452 if(bo.olePatronLocalIds == null){
453 bo.olePatronLocalIds = new ArrayList<>();
454 }
455 bo.olePatronLocalIds.add(OlePatronLocalIdentificationBo.from(olePatronLocalId));
456 }
457 }
458
459 bo.versionNumber = immutable.getVersionNumber();
460
461 EntityBo entityBo = new EntityBo();
462 entityBo.setActive(true);
463
464 if (null != bo.getEntity()) {
465 entityBo = bo.getEntity();
466 entityBo.setActive(true);
467 }
468 if (CollectionUtils.isNotEmpty(immutable.getPatronAffiliations())) {
469 for (OlePatronAffiliationDefinition affiliation : immutable.getPatronAffiliations()) {
470 EntityAffiliationBo entityAffiliationBo = new EntityAffiliationBo();
471 entityAffiliationBo.setId(affiliation.getEntityAffiliationId());
472 entityAffiliationBo.setAffiliationTypeCode(affiliation.getAffiliationTypeCode());
473 entityAffiliationBo.setAffiliationType(EntityAffiliationTypeBo.from(affiliation.getAffiliationType()));
474 entityAffiliationBo.setActive(affiliation.isActive());
475 entityAffiliationBo.setDefaultValue(affiliation.isDefaultValue());
476 entityAffiliationBo.setCampusCode(affiliation.getCampusCode());
477 entityAffiliationBo.setObjectId(affiliation.getObjectId());
478 entityAffiliationBo.setVersionNumber(affiliation.getVersionNumber());
479 entityAffiliationBo.setEntityId(affiliation.getEntityId());
480
481 entityBo.getAffiliations().add(entityAffiliationBo);
482 for (EntityEmployment entityEmployment : affiliation.getEmployments()) {
483 entityBo.getEmploymentInformation().add(EntityEmploymentBo.from(entityEmployment));
484 }
485
486 bo.patronAffiliations.add(OlePatronAffiliation.from(affiliation));
487 }
488 }
489 entityBo.setNames(Arrays.asList(bo.getName()));
490 EntityTypeContactInfoBo entityTypeContactInfoBo = new EntityTypeContactInfoBo();
491 if (bo.getEntity() != null && null != bo.getEntity().getEntityTypeContactInfos() && bo.getEntity().getEntityTypeContactInfos().size() > 0) {
492 entityTypeContactInfoBo = bo.getEntity().getEntityTypeContactInfos().get(0);
493 }
494 entityTypeContactInfoBo.setAddresses(bo.getAddresses());
495 entityTypeContactInfoBo.setEmailAddresses(bo.getEmails());
496 entityTypeContactInfoBo.setPhoneNumbers(bo.getPhones());
497 entityTypeContactInfoBo.setEntityTypeCode(KimConstants.EntityTypes.PERSON);
498 entityBo.setEntityTypeContactInfos(Arrays.asList(entityTypeContactInfoBo));
499 bo.setEntity(entityBo);
500 return bo;
501 }
502
503 public boolean isRealPatronCheck() {
504 return realPatronCheck;
505 }
506
507 public void setRealPatronCheck(boolean realPatronCheck) {
508 this.realPatronCheck = realPatronCheck;
509 }
510
511
512
513
514
515
516 public List<OleLoanDocument> getOleLoanDocuments() {
517 if (CollectionUtils.isEmpty(oleLoanDocuments)) {
518 oleLoanDocuments = getOleLoanDocumentsFromSolr(getOlePatronId());
519 }
520 return oleLoanDocuments;
521 }
522
523
524
525 public List<OleLoanDocument> getOleLoanDocumentsFromDb() {
526 if (StringUtils.isNotEmpty(getOlePatronId())) {
527 if (StringUtils.isNotEmpty(getOlePatronId())) {
528 Map<String, String> parameterMap = new HashMap<>();
529 parameterMap.put("patronId", getOlePatronId());
530 List<OleLoanDocument> oleLoanDocumentList = (List<OleLoanDocument>) KRADServiceLocator.getBusinessObjectService().findMatching(OleLoanDocument.class, parameterMap);
531 if (CollectionUtils.isNotEmpty(oleLoanDocumentList)) {
532 oleLoanDocuments = oleLoanDocumentList;
533 }
534 }
535 }
536 return oleLoanDocuments;
537 }
538
539 public List<OleLoanDocument> getOleLoanDocumentsFromSolr(String patronId) {
540 List<OleLoanDocument> patronLoanedItemBySolr = new ArrayList<>();
541 try {
542 patronLoanedItemBySolr = new OleLoanDocumentsFromSolrBuilder().getPatronLoanedItemBySolr(patronId, null);
543 } catch (Exception e) {
544 e.printStackTrace();
545 }
546 return patronLoanedItemBySolr;
547
548 }
549
550
551
552
553
554
555 public void setOleLoanDocuments(List<OleLoanDocument> oleLoanDocuments) {
556 List<OleLoanDocument> LoanDocumentList = new ArrayList<>();
557 List<OleLoanDocument> indefiniteLoanDocumentList = new ArrayList<>();
558 for (OleLoanDocument loanDoc : oleLoanDocuments) {
559 if (loanDoc.getLoanDueDate() != null && !(loanDoc.getLoanDueDate().toString().isEmpty())) {
560 LoanDocumentList.add(loanDoc);
561 } else {
562
563 indefiniteLoanDocumentList.add(loanDoc);
564 }
565 }
566 Collections.sort(LoanDocumentList, new Comparator<OleLoanDocument>() {
567 public int compare(OleLoanDocument o1, OleLoanDocument o2) {
568 return o1.getLoanDueDate().compareTo(o2.getLoanDueDate());
569 }
570 });
571 LoanDocumentList.addAll(indefiniteLoanDocumentList);
572 this.oleLoanDocuments = LoanDocumentList;
573 }
574
575
576
577
578
579
580 public String getBorrowerTypeName() {
581 if (getOleBorrowerType() != null) {
582 return oleBorrowerType.getBorrowerTypeName();
583 }
584 return null;
585 }
586
587
588
589
590
591
592 public EntityBo getEntity() {
593 if (getOlePatronId() != null) {
594 EntityBo entityBo = (EntityBo) EntityBo.from(getIdentityService().getEntity(getOlePatronId()));
595 if (entityBo != null) {
596 return entityBo;
597 }
598
599 return entity;
600 } else {
601 return entity;
602 }
603 }
604
605
606
607
608
609
610 public void setEntity(EntityBo entity) {
611 this.entity = entity;
612 }
613
614 public String getAffiliationType() {
615 return affiliationType;
616 }
617
618 public void setAffiliationType(String affiliationType) {
619 this.affiliationType = affiliationType;
620 }
621
622
623
624
625
626
627 public List<OlePatronNotes> getNotes() {
628 if (null == notes) {
629 if (StringUtils.isNotEmpty(getOlePatronId())) {
630 Map<String, String> parameterMap = new HashMap<>();
631 parameterMap.put("olePatronId", getOlePatronId());
632 List<OlePatronNotes> olePatronNotesList = (List<OlePatronNotes>) KRADServiceLocator.getBusinessObjectService().findMatching(OlePatronNotes.class, parameterMap);
633 notes = olePatronNotesList;
634 } else notes = new ArrayList<>();
635 }
636 return notes;
637 }
638
639
640
641
642
643
644 public void setNotes(List<OlePatronNotes> notes) {
645 this.notes = notes;
646 }
647
648
649
650
651
652
653 public String getBarcode() {
654 return barcode;
655 }
656
657
658
659
660
661
662 public void setBarcode(String barcode) {
663 this.barcode = barcode;
664 }
665
666
667
668
669
670
671 public String getBorrowerType() {
672 return borrowerType;
673 }
674
675
676
677
678
679
680 public void setBorrowerType(String borrowerType) {
681 this.borrowerType = borrowerType;
682 }
683
684
685
686
687
688
689 public boolean isActiveIndicator() {
690 return activeIndicator;
691 }
692
693
694
695
696
697
698 public void setActiveIndicator(boolean activeIndicator) {
699 this.activeIndicator = activeIndicator;
700 }
701
702
703
704
705
706
707 public String getOlePatronId() {
708 return olePatronId;
709 }
710
711
712
713
714
715
716 public void setOlePatronId(String olePatronId) {
717 if (olePatronId != null && !olePatronId.equals(this.olePatronId)) {
718 notes = null;
719 oleProxyPatronDocuments = null;
720 patronBillPayments = null;
721 lostBarcodes = null;
722 oleAddresses = null;
723 olePatronLocalIds = null;
724 }
725 this.olePatronId = olePatronId;
726 }
727
728
729
730
731
732
733 public boolean isGeneralBlock() {
734 return generalBlock;
735 }
736
737
738
739
740
741
742 public void setGeneralBlock(boolean generalBlock) {
743 this.generalBlock = generalBlock;
744 }
745
746
747
748
749
750
751 public boolean isCourtesyNotice() {
752 return courtesyNotice;
753 }
754
755
756
757
758
759
760 public void setCourtesyNotice(boolean courtesyNotice) {
761 this.courtesyNotice = courtesyNotice;
762 }
763
764
765
766
767
768
769 public boolean isDeliveryPrivilege() {
770 return deliveryPrivilege;
771 }
772
773
774
775
776
777
778 public void setDeliveryPrivilege(boolean deliveryPrivilege) {
779 this.deliveryPrivilege = deliveryPrivilege;
780 }
781
782
783
784
785
786
787 public boolean isPagingPrivilege() {
788 return pagingPrivilege;
789 }
790
791
792
793
794
795
796 public void setPagingPrivilege(boolean pagingPrivilege) {
797 this.pagingPrivilege = pagingPrivilege;
798 }
799
800
801
802
803
804
805 public Date getExpirationDate() {
806 return expirationDate;
807 }
808
809
810
811
812
813
814 public void setExpirationDate(Date expirationDate) {
815 this.expirationDate = expirationDate;
816 }
817
818
819
820
821
822
823 public String getFirstName() {
824 return firstName;
825 }
826
827
828
829
830
831
832 public void setFirstName(String firstName) {
833 this.firstName = firstName;
834 }
835
836
837
838
839
840
841 public String getMiddleName() {
842 return middleName;
843 }
844
845
846
847
848
849
850 public void setMiddleName(String middleName) {
851 this.middleName = middleName;
852 }
853
854
855
856
857
858
859 public String getLastName() {
860 return lastName;
861 }
862
863
864
865
866
867
868 public void setLastName(String lastName) {
869 this.lastName = lastName;
870 }
871
872
873
874
875
876
877 public String getEmailAddress() {
878 return emailAddress;
879 }
880
881
882
883
884
885
886 public void setEmailAddress(String emailAddress) {
887 this.emailAddress = emailAddress;
888 }
889
890
891
892
893
894
895 public String getPhoneNumber() {
896 return phoneNumber;
897 }
898
899
900
901
902
903
904 public void setPhoneNumber(String phoneNumber) {
905 this.phoneNumber = phoneNumber;
906 }
907
908
909
910
911
912
913 public List<EntityPhoneBo> getPhones() {
914 return phones;
915 }
916
917
918
919
920
921
922 public void setPhones(List<EntityPhoneBo> phones) {
923 this.phones = phones;
924 }
925
926
927
928
929
930
931 public List<EntityAddressBo> getAddresses() {
932 return addresses;
933 }
934
935
936
937
938
939
940 public void setAddresses(List<EntityAddressBo> addresses) {
941 this.addresses = addresses;
942 }
943
944
945
946
947
948
949 public EntityNameBo getName() {
950 return name;
951 }
952
953
954
955
956
957
958 public void setName(EntityNameBo name) {
959 this.name = name;
960 }
961
962
963
964
965
966
967 public List<EntityEmailBo> getEmails() {
968 return emails;
969 }
970
971
972
973
974
975
976 public void setEmails(List<EntityEmailBo> emails) {
977 this.emails = emails;
978 }
979
980
981
982
983
984
985 public OleBorrowerType getOleBorrowerType() {
986 if (null == oleBorrowerType) {
987 if (StringUtils.isNotEmpty(getBorrowerType())) {
988 String borrowerTypeId = getBorrowerType();
989 if (StringUtils.isNotEmpty(borrowerTypeId)) {
990 Map<String, String> parameterMap = new HashMap<>();
991 parameterMap.put("borrowerTypeId", borrowerTypeId);
992 List<OleBorrowerType> oleBorrowerTypeList = (List<OleBorrowerType>) KRADServiceLocator.getBusinessObjectService().findMatching(OleBorrowerType.class, parameterMap);
993 if (CollectionUtils.isNotEmpty(oleBorrowerTypeList)) {
994 oleBorrowerType = oleBorrowerTypeList.get(0);
995 }
996 }
997 }
998 }
999 return oleBorrowerType;
1000 }
1001
1002
1003
1004
1005
1006
1007 public void setOleBorrowerType(OleBorrowerType oleBorrowerType) {
1008 this.oleBorrowerType = oleBorrowerType;
1009 }
1010
1011
1012
1013
1014
1015
1016 public String getProcessMessage() {
1017 return processMessage;
1018 }
1019
1020
1021
1022
1023
1024
1025 public void setProcessMessage(String processMessage) {
1026 this.processMessage = processMessage;
1027 }
1028
1029 protected LinkedHashMap toStringMapper() {
1030 LinkedHashMap toStringMap = new LinkedHashMap();
1031 toStringMap.put("olePatronId", olePatronId);
1032 return toStringMap;
1033 }
1034
1035
1036
1037
1038
1039
1040 @Override
1041 public String getId() {
1042 return this.getOlePatronId();
1043 }
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064 public String getProxyPatronId() {
1065 return proxyPatronId;
1066 }
1067
1068
1069
1070
1071
1072
1073 public void setProxyPatronId(String proxyPatronId) {
1074 this.proxyPatronId = proxyPatronId;
1075 }
1076
1077
1078
1079
1080
1081
1082 public List<OleProxyPatronDocument> getOleProxyPatronDocuments() {
1083 if (null == oleProxyPatronDocuments) {
1084 if (StringUtils.isNotEmpty(getOlePatronId())) {
1085 Map<String, String> parameterMap = new HashMap<>();
1086 parameterMap.put("olePatronId", getOlePatronId());
1087 List<OleProxyPatronDocument> proxyPatronDocumentLists = (List<OleProxyPatronDocument>) KRADServiceLocator.getBusinessObjectService().findMatching(OleProxyPatronDocument.class, parameterMap);
1088 oleProxyPatronDocuments = proxyPatronDocumentLists;
1089 } else oleProxyPatronDocuments = new ArrayList<>();
1090 }
1091 return oleProxyPatronDocuments;
1092 }
1093
1094
1095
1096
1097
1098
1099 public void setOleProxyPatronDocuments(List<OleProxyPatronDocument> oleProxyPatronDocuments) {
1100 this.oleProxyPatronDocuments = oleProxyPatronDocuments;
1101 }
1102
1103
1104
1105
1106
1107
1108 public Date getActivationDate() {
1109 return activationDate;
1110 }
1111
1112
1113
1114
1115
1116
1117 public void setActivationDate(Date activationDate) {
1118 this.activationDate = activationDate;
1119 }
1120
1121
1122
1123
1124
1125
1126 public String getGeneralBlockNotes() {
1127 return generalBlockNotes;
1128 }
1129
1130
1131
1132
1133
1134
1135 public void setGeneralBlockNotes(String generalBlockNotes) {
1136 this.generalBlockNotes = generalBlockNotes;
1137 }
1138
1139
1140
1141
1142
1143
1144 public List<OleEntityAddressBo> getOleEntityAddressBo() {
1145 return oleEntityAddressBo;
1146 }
1147
1148
1149
1150
1151
1152
1153 public void setOleEntityAddressBo(List<OleEntityAddressBo> oleEntityAddressBo) {
1154 this.oleEntityAddressBo = oleEntityAddressBo;
1155 }
1156
1157
1158
1159
1160
1161
1162 public List<OlePatronAffiliation> getPatronAffiliations() {
1163 return patronAffiliations;
1164 }
1165
1166
1167
1168
1169
1170
1171 public void setPatronAffiliations(List<OlePatronAffiliation> patronAffiliations) {
1172 this.patronAffiliations = patronAffiliations;
1173 }
1174
1175
1176
1177
1178
1179
1180 public OleSourceBo getSourceBo() {
1181 if (null == sourceBo) {
1182 if (StringUtils.isNotEmpty(getSource())) {
1183 if (StringUtils.isNotEmpty(getSource())) {
1184 Map<String, String> parameterMap = new HashMap<>();
1185 parameterMap.put("oleSourceId", getSource());
1186 List<OleSourceBo> oleSourceBoList = (List<OleSourceBo>) KRADServiceLocator.getBusinessObjectService().findMatching(OleSourceBo.class, parameterMap);
1187 if (CollectionUtils.isNotEmpty(oleSourceBoList)) {
1188 sourceBo = oleSourceBoList.get(0);
1189 }
1190 }
1191 }
1192 }
1193 return sourceBo;
1194 }
1195
1196
1197
1198
1199
1200
1201 public void setSourceBo(OleSourceBo sourceBo) {
1202 this.sourceBo = sourceBo;
1203 }
1204
1205
1206
1207
1208
1209
1210 public OleStatisticalCategoryBo getStatisticalCategoryBo() {
1211 if (null == statisticalCategoryBo) {
1212 if (StringUtils.isNotEmpty(getStatisticalCategory())) {
1213 if (StringUtils.isNotEmpty(getStatisticalCategory())) {
1214 Map<String, String> parameterMap = new HashMap<>();
1215 parameterMap.put("oleStatisticalCategoryId", getStatisticalCategory());
1216 List<OleStatisticalCategoryBo> oleStatisticalCategoryBoList = (List<OleStatisticalCategoryBo>) KRADServiceLocator.getBusinessObjectService().findMatching(OleStatisticalCategoryBo.class, parameterMap);
1217 if (CollectionUtils.isNotEmpty(oleStatisticalCategoryBoList)) {
1218 statisticalCategoryBo = oleStatisticalCategoryBoList.get(0);
1219 }
1220 }
1221 }
1222 }
1223 return statisticalCategoryBo;
1224 }
1225
1226
1227
1228
1229
1230
1231 public void setStatisticalCategoryBo(OleStatisticalCategoryBo statisticalCategoryBo) {
1232 this.statisticalCategoryBo = statisticalCategoryBo;
1233 }
1234
1235
1236
1237
1238
1239
1240 public List<EntityEmploymentBo> getEmployments() {
1241 return employments;
1242 }
1243
1244 public void setEmployments(List<EntityEmploymentBo> employments) {
1245 this.employments = employments;
1246 }
1247
1248
1249
1250
1251
1252
1253 public String getSource() {
1254 return source;
1255 }
1256
1257 public void setSource(String source) {
1258 if (source != null && source.equals("")) {
1259 this.source = null;
1260 } else {
1261 this.source = source;
1262 }
1263 }
1264
1265
1266
1267
1268
1269
1270 public String getStatisticalCategory() {
1271 return statisticalCategory;
1272 }
1273
1274 public void setStatisticalCategory(String statisticalCategory) {
1275 if (statisticalCategory != null && statisticalCategory.equals("")) {
1276 this.statisticalCategory = null;
1277 } else {
1278 this.statisticalCategory = statisticalCategory;
1279 }
1280 }
1281
1282
1283
1284
1285
1286
1287 public String getOleSourceName() {
1288 if (sourceBo != null) {
1289 return sourceBo.getOleSourceName();
1290 }
1291 return null;
1292 }
1293
1294
1295
1296
1297
1298
1299 public String getOleStatisticalCategoryName() {
1300 if (statisticalCategoryBo != null) {
1301 return statisticalCategoryBo.getOleStatisticalCategoryName();
1302 }
1303 return null;
1304 }
1305
1306
1307
1308
1309
1310
1311 public boolean isPatronBillFlag() {
1312 return patronBillFlag;
1313 }
1314
1315
1316
1317
1318
1319
1320 public void setPatronBillFlag(boolean patronBillFlag) {
1321 this.patronBillFlag = patronBillFlag;
1322 }
1323
1324 public List<OlePatronLostBarcode> getLostBarcodes() {
1325 if (null == lostBarcodes) {
1326 if (StringUtils.isNotEmpty(getOlePatronId())) {
1327 Map<String, String> parameterMap = new HashMap<>();
1328 parameterMap.put("olePatronId", getOlePatronId());
1329 List<OlePatronLostBarcode> olePatronLostBarcodeList = (List<OlePatronLostBarcode>) KRADServiceLocator.getBusinessObjectService().findMatching(OlePatronLostBarcode.class, parameterMap);
1330 lostBarcodes = olePatronLostBarcodeList;
1331 } else lostBarcodes = new ArrayList<>();
1332 }
1333 return lostBarcodes;
1334 }
1335
1336 public void setLostBarcodes(List<OlePatronLostBarcode> lostBarcodes) {
1337 this.lostBarcodes = lostBarcodes;
1338 }
1339
1340 public List<OleAddressBo> getOleAddresses() {
1341 if (null == oleAddresses) {
1342 if (StringUtils.isNotEmpty(getOlePatronId())) {
1343 Map<String, String> parameterMap = new HashMap<>();
1344 parameterMap.put("olePatronId", getOlePatronId());
1345 List<OleAddressBo> oleAddressBos = (List<OleAddressBo>) KRADServiceLocator.getBusinessObjectService().findMatching(OleAddressBo.class, parameterMap);
1346 oleAddresses = oleAddressBos;
1347 } else oleAddresses = null;
1348 }
1349 return oleAddresses;
1350 }
1351
1352 public void setOleAddresses(List<OleAddressBo> oleAddresses) {
1353 this.oleAddresses = oleAddresses;
1354 }
1355
1356 public byte[] getPatronPhotograph() {
1357 return patronPhotograph;
1358 }
1359
1360 public void setPatronPhotograph(byte[] patronPhotograph) {
1361 this.patronPhotograph = patronPhotograph;
1362 }
1363
1364 public List<OlePatronLocalIdentificationBo> getOlePatronLocalIds() {
1365 if (null == olePatronLocalIds) {
1366 if (StringUtils.isNotEmpty(getOlePatronId())) {
1367 Map<String, String> parameterMap = new HashMap<>();
1368 parameterMap.put("olePatronId", getOlePatronId());
1369 List<OlePatronLocalIdentificationBo> olePatronLocalIdentificationBoList = (List<OlePatronLocalIdentificationBo>) KRADServiceLocator.getBusinessObjectService().findMatching(OlePatronLocalIdentificationBo.class, parameterMap);
1370 olePatronLocalIds = olePatronLocalIdentificationBoList;
1371 } else olePatronLocalIds = null;
1372 }
1373 return olePatronLocalIds;
1374 }
1375
1376 public void setOlePatronLocalIds(List<OlePatronLocalIdentificationBo> olePatronLocalIds) {
1377 this.olePatronLocalIds = olePatronLocalIds;
1378 }
1379
1380 public boolean isLoanFlag() {
1381 return loanFlag;
1382 }
1383
1384 public void setLoanFlag(boolean loanFlag) {
1385 this.loanFlag = loanFlag;
1386 }
1387
1388 public boolean isTempCircHistoryFlag() {
1389 return tempCircHistoryFlag;
1390 }
1391
1392 public void setTempCircHistoryFlag(boolean tempCircHistoryFlag) {
1393 this.tempCircHistoryFlag = tempCircHistoryFlag;
1394 }
1395
1396 public boolean isRequestFlag() {
1397 return requestFlag;
1398 }
1399
1400 public void setRequestFlag(boolean requestFlag) {
1401 this.requestFlag = requestFlag;
1402 }
1403
1404 public List<OleProxyPatronDocument> getOleProxyPatronDocumentList() {
1405 if (CollectionUtils.isEmpty(oleProxyPatronDocumentList)) {
1406 if (StringUtils.isNotEmpty(getOlePatronId())) {
1407 if (StringUtils.isNotEmpty(getOlePatronId())) {
1408 Map<String, String> parameterMap = new HashMap<>();
1409 parameterMap.put("proxyPatronId", getOlePatronId());
1410 List<OleProxyPatronDocument> oleProxyPatronDocuments = (List<OleProxyPatronDocument>) KRADServiceLocator.getBusinessObjectService().findMatching(OleProxyPatronDocument.class, parameterMap);
1411 if (CollectionUtils.isNotEmpty(oleProxyPatronDocuments)) {
1412 oleProxyPatronDocumentList = oleProxyPatronDocuments;
1413 }
1414 }
1415 }
1416 }
1417 return oleProxyPatronDocumentList;
1418 }
1419
1420 public void setOleProxyPatronDocumentList(List<OleProxyPatronDocument> oleProxyPatronDocumentList) {
1421 this.oleProxyPatronDocumentList = oleProxyPatronDocumentList;
1422 }
1423
1424 public boolean isPointing() {
1425 return pointing;
1426 }
1427
1428 public void setPointing(boolean pointing) {
1429 this.pointing = pointing;
1430 }
1431
1432 public boolean isStartingIndexExecuted() {
1433 return startingIndexExecuted;
1434 }
1435
1436 public void setStartingIndexExecuted(boolean startingIndexExecuted) {
1437 this.startingIndexExecuted = startingIndexExecuted;
1438 }
1439
1440 public boolean isActivateBarcode() {
1441 return activateBarcode;
1442 }
1443
1444 public void setActivateBarcode(boolean activateBarcode) {
1445 this.activateBarcode = activateBarcode;
1446 }
1447
1448 public boolean isDeactivateBarcode() {
1449 return deactivateBarcode;
1450 }
1451
1452 public void setDeactivateBarcode(boolean deactivateBarcode) {
1453 this.deactivateBarcode = deactivateBarcode;
1454 }
1455
1456 public String getLostStatus() {
1457 return lostStatus;
1458 }
1459
1460 public void setLostStatus(String lostStatus) {
1461 this.lostStatus = lostStatus;
1462 }
1463
1464 public String getLostDescription() {
1465 return lostDescription;
1466 }
1467
1468 public void setLostDescription(String lostDescription) {
1469 this.lostDescription = lostDescription;
1470 }
1471
1472 public boolean isInvalidateBarcode() {
1473 return invalidateBarcode;
1474 }
1475
1476 public void setInvalidateBarcode(boolean invalidateBarcode) {
1477 this.invalidateBarcode = invalidateBarcode;
1478 }
1479
1480 public boolean isReinstateBarcode() {
1481 return reinstateBarcode;
1482 }
1483
1484 public void setReinstateBarcode(boolean reinstateBarcode) {
1485 this.reinstateBarcode = reinstateBarcode;
1486 }
1487
1488 public boolean isSkipBarcodeValidation() {
1489 return skipBarcodeValidation;
1490 }
1491
1492 public void setSkipBarcodeValidation(boolean skipBarcodeValidation) {
1493 this.skipBarcodeValidation = skipBarcodeValidation;
1494 }
1495
1496 public boolean isBarcodeChanged() {
1497 return barcodeChanged;
1498 }
1499
1500 public void setBarcodeChanged(boolean barcodeChanged) {
1501 this.barcodeChanged = barcodeChanged;
1502 }
1503
1504 public boolean isBarcodeEditable() {
1505 return barcodeEditable;
1506 }
1507
1508 public void setBarcodeEditable(boolean barcodeEditable) {
1509 this.barcodeEditable = barcodeEditable;
1510 }
1511
1512 public boolean isPopupDialog() {
1513 return popupDialog;
1514 }
1515
1516 public void setPopupDialog(boolean popupDialog) {
1517 this.popupDialog = popupDialog;
1518 }
1519
1520 public String getPatronMessage() {
1521 return patronMessage;
1522 }
1523
1524 public void setPatronMessage(String patronMessage) {
1525 this.patronMessage = patronMessage;
1526 }
1527
1528 public String getUiMessageType() {
1529 return uiMessageType;
1530 }
1531
1532 public void setUiMessageType(String uiMessageType) {
1533 this.uiMessageType = uiMessageType;
1534 }
1535
1536 public boolean isReinstated() {
1537 return reinstated;
1538 }
1539
1540 public void setReinstated(boolean reinstated) {
1541 this.reinstated = reinstated;
1542 }
1543
1544 public OLEPatronEntityViewBo getOlePatronEntityViewBo() {
1545 if (null == olePatronEntityViewBo) {
1546 if (StringUtils.isNotEmpty(getOlePatronId())) {
1547 if (StringUtils.isNotEmpty(getOlePatronId())) {
1548 Map<String, String> parameterMap = new HashMap<>();
1549 parameterMap.put("patronId", getOlePatronId());
1550 List<OLEPatronEntityViewBo> olePatronEntityViewBoList = (List<OLEPatronEntityViewBo>) KRADServiceLocator.getBusinessObjectService().findMatching(OLEPatronEntityViewBo.class, parameterMap);
1551 if (CollectionUtils.isNotEmpty(olePatronEntityViewBoList)) {
1552 olePatronEntityViewBo = olePatronEntityViewBoList.get(0);
1553 }
1554 }
1555 }
1556 }
1557 return olePatronEntityViewBo;
1558 }
1559
1560 public void setOlePatronEntityViewBo(OLEPatronEntityViewBo olePatronEntityViewBo) {
1561 this.olePatronEntityViewBo = olePatronEntityViewBo;
1562 }
1563
1564 public String getPatronBillFileName() {
1565 return patronBillFileName;
1566 }
1567
1568 public void setPatronBillFileName(String patronBillFileName) {
1569 this.patronBillFileName = patronBillFileName;
1570 }
1571
1572 public String getViewBillUrl() {
1573 return viewBillUrl;
1574 }
1575
1576 public void setViewBillUrl(String viewBillUrl) {
1577 this.viewBillUrl = viewBillUrl;
1578 }
1579
1580 public String getCreateBillUrl() {
1581 return createBillUrl;
1582 }
1583
1584 public void setCreateBillUrl(String createBillUrl) {
1585 this.createBillUrl = createBillUrl;
1586 }
1587
1588 public String getNamePrefix() {
1589 return namePrefix;
1590 }
1591
1592 public void setNamePrefix(String namePrefix) {
1593 this.namePrefix = namePrefix;
1594 }
1595
1596 public String getNameSuffix() {
1597 return nameSuffix;
1598 }
1599
1600 public void setNameSuffix(String nameSuffix) {
1601 this.nameSuffix = nameSuffix;
1602 }
1603
1604 public List<EntityPhoneBo> getDeletedPhones() {
1605 return deletedPhones;
1606 }
1607
1608 public void setDeletedPhones(List<EntityPhoneBo> deletedPhones) {
1609 this.deletedPhones = deletedPhones;
1610 }
1611
1612 public List<OleEntityAddressBo> getDeletedOleEntityAddressBo() {
1613 return deletedOleEntityAddressBo;
1614 }
1615
1616 public void setDeletedOleEntityAddressBo(List<OleEntityAddressBo> deletedOleEntityAddressBo) {
1617 this.deletedOleEntityAddressBo = deletedOleEntityAddressBo;
1618 }
1619
1620 public List<EntityEmailBo> getDeletedEmails() {
1621 return deletedEmails;
1622 }
1623
1624 public void setDeletedEmails(List<EntityEmailBo> deletedEmails) {
1625 this.deletedEmails = deletedEmails;
1626 }
1627
1628 public List<OleProxyPatronDocument> getDeletedOleProxyPatronDocuments() {
1629 return deletedOleProxyPatronDocuments;
1630 }
1631
1632 public void setDeletedOleProxyPatronDocuments(List<OleProxyPatronDocument> deletedOleProxyPatronDocuments) {
1633 this.deletedOleProxyPatronDocuments = deletedOleProxyPatronDocuments;
1634 }
1635
1636 public List<OlePatronAffiliation> getDeletedPatronAffiliations() {
1637 return deletedPatronAffiliations;
1638 }
1639
1640 public void setDeletedPatronAffiliations(List<OlePatronAffiliation> deletedPatronAffiliations) {
1641 this.deletedPatronAffiliations = deletedPatronAffiliations;
1642 }
1643
1644 public List<EntityEmploymentBo> getDeletedEmployments() {
1645 return deletedEmployments;
1646 }
1647
1648 public void setDeletedEmployments(List<EntityEmploymentBo> deletedEmployments) {
1649 this.deletedEmployments = deletedEmployments;
1650 }
1651
1652 public List<OlePatronNotes> getDeletedNotes() {
1653 return deletedNotes;
1654 }
1655
1656 public void setDeletedNotes(List<OlePatronNotes> deletedNotes) {
1657 this.deletedNotes = deletedNotes;
1658 }
1659
1660 public List<OlePatronLocalIdentificationBo> getDeletedOlePatronLocalIds() {
1661 return deletedOlePatronLocalIds;
1662 }
1663
1664 public void setDeletedOlePatronLocalIds(List<OlePatronLocalIdentificationBo> deletedOlePatronLocalIds) {
1665 this.deletedOlePatronLocalIds = deletedOlePatronLocalIds;
1666 }
1667
1668 public boolean isShowLoanedRecords() {
1669 return showLoanedRecords;
1670 }
1671
1672 public void setShowLoanedRecords(boolean showLoanedRecords) {
1673 this.showLoanedRecords = showLoanedRecords;
1674 }
1675
1676 public boolean isShowRequestedItems() {
1677 return showRequestedItems;
1678 }
1679
1680 public void setShowRequestedItems(boolean showRequestedItems) {
1681 this.showRequestedItems = showRequestedItems;
1682 }
1683
1684 public boolean isShowTemporaryCirculationHistoryRecords() {
1685 return showTemporaryCirculationHistoryRecords;
1686 }
1687
1688 public void setShowTemporaryCirculationHistoryRecords(boolean showTemporaryCirculationHistoryRecords) {
1689 this.showTemporaryCirculationHistoryRecords = showTemporaryCirculationHistoryRecords;
1690 }
1691
1692 public String getRealPatronFirstName() {
1693 if (entity != null && entity.getNames() != null && entity.getNames().size() > 0) {
1694 this.realPatronFirstName = entity.getNames().get(0).getFirstName().replaceAll("'", "\'");
1695 }
1696 return realPatronFirstName;
1697 }
1698
1699 public void setRealPatronFirstName(String realPatronFirstName) {
1700 this.realPatronFirstName = realPatronFirstName;
1701 }
1702
1703 public String getRealPatronLastName() {
1704 if (entity != null && entity.getNames() != null && entity.getNames().size() > 0) {
1705 this.realPatronLastName = entity.getNames().get(0).getLastName().replaceAll("'", "\'");
1706 }
1707 return realPatronLastName;
1708 }
1709
1710 public void setRealPatronLastName(String realPatronLastName) {
1711 this.realPatronLastName = realPatronLastName;
1712 }
1713
1714 public int getLoanCount() {
1715 return loanCount;
1716 }
1717
1718 public void setLoanCount(int loanCount) {
1719 this.loanCount = loanCount;
1720 }
1721
1722 public int getRequestedItemRecordsCount() {
1723 return requestedItemRecordsCount;
1724 }
1725
1726 public void setRequestedItemRecordsCount(int requestedItemRecordsCount) {
1727 this.requestedItemRecordsCount = requestedItemRecordsCount;
1728 }
1729
1730 public int getTempCirculationHistoryCount() {
1731 return tempCirculationHistoryCount;
1732 }
1733
1734 public void setTempCirculationHistoryCount(int tempCirculationHistoryCount) {
1735 this.tempCirculationHistoryCount = tempCirculationHistoryCount;
1736 }
1737 }