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