1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  package org.kuali.ole.pdp.businessobject;
21  
22  import java.util.ArrayList;
23  import java.util.HashMap;
24  import java.util.List;
25  import java.util.Map;
26  
27  import org.apache.commons.lang.StringUtils;
28  import org.apache.commons.lang.builder.EqualsBuilder;
29  import org.apache.commons.lang.builder.HashCodeBuilder;
30  import org.apache.commons.lang.builder.ToStringBuilder;
31  import org.kuali.ole.coa.businessobject.Account;
32  import org.kuali.ole.coa.businessobject.Chart;
33  import org.kuali.ole.coa.businessobject.ObjectCode;
34  import org.kuali.ole.coa.businessobject.SubAccount;
35  import org.kuali.ole.coa.businessobject.SubObjectCode;
36  import org.kuali.ole.sys.OLEConstants;
37  import org.kuali.ole.sys.context.SpringContext;
38  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
39  import org.kuali.rice.core.api.util.type.KualiDecimal;
40  import org.kuali.rice.core.api.util.type.KualiInteger;
41  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
42  import org.kuali.rice.krad.service.KualiModuleService;
43  import org.kuali.rice.krad.service.ModuleService;
44  import org.kuali.rice.location.api.LocationConstants;
45  import org.kuali.rice.location.framework.campus.CampusEbo;
46  import org.kuali.rice.location.framework.country.CountryEbo;
47  import org.kuali.rice.location.framework.postalcode.PostalCodeEbo;
48  import org.kuali.rice.location.framework.state.StateEbo;
49  
50  public class CustomerProfile extends PersistableBusinessObjectBase implements MutableInactivatable {
51      private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(CustomerProfile.class);
52  
53      protected String achPaymentDescription; 
54      protected String additionalCheckNoteTextLine1;
55      protected String additionalCheckNoteTextLine2;
56      protected String additionalCheckNoteTextLine3;
57      protected String additionalCheckNoteTextLine4;
58      protected String address1; 
59      protected String address2; 
60      protected String address3; 
61      protected String address4; 
62      protected boolean adviceCreate; 
63      protected String adviceHeaderText; 
64      protected String adviceSubjectLine;
65      protected String adviceReturnEmailAddr;
66      protected String chartCode; 
67      protected String checkHeaderNoteTextLine1;
68      protected String checkHeaderNoteTextLine2;
69      protected String checkHeaderNoteTextLine3;
70      protected String checkHeaderNoteTextLine4;
71      protected String city; 
72      protected String contactFullName; 
73      protected String countryCode; 
74      protected String customerDescription; 
75      protected String defaultChartCode; 
76      protected String defaultAccountNumber; 
77      protected String defaultSubAccountNumber; 
78      protected String defaultObjectCode; 
79      protected String defaultPhysicalCampusProcessingCode; 
80      protected String defaultSubObjectCode; 
81      protected boolean employeeCheck; 
82      protected KualiDecimal fileThresholdAmount; 
83      protected String fileThresholdEmailAddress; 
84      protected KualiInteger id; 
85      protected boolean nraReview; 
86      protected String unitCode; 
87      protected boolean ownershipCodeRequired; 
88      protected boolean payeeIdRequired; 
89      protected KualiDecimal paymentThresholdAmount; 
90      protected String paymentThresholdEmailAddress; 
91      protected String processingEmailAddr; 
92      protected String achTransactionType;
93      protected String stateCode; 
94      protected String subUnitCode; 
95      protected String zipCode; 
96      protected boolean accountingEditRequired; 
97      protected boolean relieveLiabilities;
98      protected boolean active;
99      protected boolean selectedForFormat;
100 
101     protected Chart chartOfAccounts;
102     protected CampusEbo defaultProcessingCampus;
103     protected Chart defaultChart;
104     protected Account defaultAccount;
105     protected SubAccount defaultSubAccount;
106     protected ObjectCode defaultObject;
107     protected SubObjectCode defaultSubObject;
108     protected StateEbo state;
109     protected PostalCodeEbo postalCode;
110     protected CountryEbo country;
111     protected ACHTransactionType transactionType;
112 
113     protected List<CustomerBank> customerBanks;
114 
115 
116     public CustomerProfile() {
117         super();
118         customerBanks = new ArrayList<CustomerBank>();;
119     }
120 
121     public String getCustomerShortName() {
122         return chartCode + "-" + unitCode + "-" + subUnitCode;
123     }
124 
125     public void setCustomerShortName(String customerShortName) {
126         
127     }
128 
129     public String getSortName() {
130         return (this.chartCode + this.unitCode + this.subUnitCode);
131     }
132 
133     
134 
135 
136 
137     public boolean getAccountingEditRequired() {
138         return accountingEditRequired;
139     }
140 
141     
142 
143 
144     public void setAccountingEditRequired(boolean accountingEditRequird) {
145         this.accountingEditRequired = accountingEditRequird;
146     }
147 
148     
149 
150 
151 
152     public String getDefaultSubAccountNumber() {
153         return defaultSubAccountNumber;
154     }
155 
156     
157 
158 
159     public void setDefaultSubAccountNumber(String defaultSubAccountNumber) {
160         this.defaultSubAccountNumber = defaultSubAccountNumber;
161     }
162 
163     public List<CustomerBank> getCustomerBanks() {
164         return customerBanks;
165     }
166 
167     public CustomerBank getCustomerBankByDisbursementType(String dt) {
168         for (CustomerBank element : customerBanks) {
169             if (element.getDisbursementType().getCode().equals(dt)) {
170                 return element;
171             }
172         }
173 
174         return null;
175     }
176 
177     public void setCustomerBanks(List<CustomerBank> cbs) {
178         customerBanks = cbs;
179     }
180 
181     @Override
182     public boolean equals(Object obj) {
183         if (!(obj instanceof CustomerProfile)) {
184             return false;
185         }
186         CustomerProfile tc = (CustomerProfile) obj;
187         return new EqualsBuilder().append(chartCode, tc.getChartCode()).append(unitCode, tc.getUnitCode()).append(subUnitCode, tc.getSubUnitCode()).isEquals();
188     }
189 
190     
191 
192 
193 
194     public String getAchPaymentDescription() {
195         return achPaymentDescription;
196     }
197 
198     
199 
200 
201 
202     public String getAdditionalCheckNoteTextLine1() {
203         return additionalCheckNoteTextLine1;
204     }
205 
206     
207 
208 
209 
210     public String getAdditionalCheckNoteTextLine2() {
211         return additionalCheckNoteTextLine2;
212     }
213 
214     
215 
216 
217 
218     public String getAdditionalCheckNoteTextLine3() {
219         return additionalCheckNoteTextLine3;
220     }
221 
222     
223 
224 
225 
226     public String getAdditionalCheckNoteTextLine4() {
227         return additionalCheckNoteTextLine4;
228     }
229 
230     
231 
232 
233 
234     public String getAddress1() {
235         return address1;
236     }
237 
238     
239 
240 
241 
242     public String getAddress2() {
243         return address2;
244     }
245 
246     
247 
248 
249 
250     public String getAddress3() {
251         return address3;
252     }
253 
254     
255 
256 
257 
258     public String getAddress4() {
259         return address4;
260     }
261 
262     
263 
264 
265 
266     public String getAdviceHeaderText() {
267         return adviceHeaderText;
268     }
269 
270     
271 
272 
273 
274     public String getChartCode() {
275         return chartCode;
276     }
277 
278     
279 
280 
281 
282     public String getCheckHeaderNoteTextLine1() {
283         return checkHeaderNoteTextLine1;
284     }
285 
286     
287 
288 
289 
290     public String getCheckHeaderNoteTextLine2() {
291         return checkHeaderNoteTextLine2;
292     }
293 
294     
295 
296 
297 
298     public String getCheckHeaderNoteTextLine3() {
299         return checkHeaderNoteTextLine3;
300     }
301 
302     
303 
304 
305 
306     public String getCheckHeaderNoteTextLine4() {
307         return checkHeaderNoteTextLine4;
308     }
309 
310     
311 
312 
313 
314     public String getCity() {
315         return city;
316     }
317 
318     
319 
320 
321 
322     public String getContactFullName() {
323         return contactFullName;
324     }
325 
326 
327     
328 
329 
330 
331     public String getCustomerDescription() {
332         return customerDescription;
333     }
334 
335     
336 
337 
338 
339     public String getDefaultAccountNumber() {
340         return defaultAccountNumber;
341     }
342 
343     
344 
345 
346 
347     public String getDefaultChartCode() {
348         return defaultChartCode;
349     }
350 
351     
352 
353 
354 
355     public String getDefaultObjectCode() {
356         return defaultObjectCode;
357     }
358 
359     
360 
361 
362 
363     public String getDefaultPhysicalCampusProcessingCode() {
364         return defaultPhysicalCampusProcessingCode;
365     }
366 
367     
368 
369 
370 
371     public String getDefaultSubObjectCode() {
372         return defaultSubObjectCode;
373     }
374 
375     
376 
377 
378 
379     public KualiDecimal getFileThresholdAmount() {
380         return fileThresholdAmount;
381     }
382 
383     
384 
385 
386 
387     public String getFileThresholdEmailAddress() {
388         return fileThresholdEmailAddress;
389     }
390 
391     
392 
393 
394 
395 
396     public KualiInteger getId() {
397         return id;
398     }
399 
400     
401 
402 
403 
404     public String getUnitCode() {
405         return unitCode;
406     }
407 
408     
409 
410 
411 
412     public KualiDecimal getPaymentThresholdAmount() {
413         return paymentThresholdAmount;
414     }
415 
416     
417 
418 
419 
420     public String getPaymentThresholdEmailAddress() {
421         return paymentThresholdEmailAddress;
422     }
423 
424     
425 
426 
427 
428     public String getProcessingEmailAddr() {
429         return processingEmailAddr;
430     }
431 
432     public String getFirstFiftyProcessingEmailAddr() {
433         if ((processingEmailAddr != null) && (processingEmailAddr.length() > 50)) {
434             return processingEmailAddr.substring(0, 50);
435         }
436         return processingEmailAddr;
437     }
438 
439     
440 
441 
442 
443     public String getStateCode() {
444         return stateCode;
445     }
446 
447     
448 
449 
450 
451     public String getSubUnitCode() {
452         return subUnitCode;
453     }
454 
455     
456 
457 
458 
459     public String getZipCode() {
460         return zipCode;
461     }
462 
463     @Override
464     public int hashCode() {
465         return new HashCodeBuilder(59, 67).append(chartCode).append(unitCode).append(subUnitCode).toHashCode();
466     }
467 
468     
469 
470 
471 
472     public boolean getAdviceCreate() {
473         return adviceCreate;
474     }
475 
476     
477 
478 
479 
480     public String getAdviceSubjectLine() {
481         return adviceSubjectLine;
482     }
483 
484     
485 
486 
487 
488     public String getAdviceReturnEmailAddr() {
489         return adviceReturnEmailAddr;
490     }
491 
492     
493 
494 
495 
496     public boolean getEmployeeCheck() {
497         return employeeCheck;
498     }
499 
500     
501 
502 
503 
504     public boolean getNraReview() {
505         return nraReview;
506     }
507 
508     
509 
510 
511 
512     public boolean getOwnershipCodeRequired() {
513         return ownershipCodeRequired;
514     }
515 
516     
517 
518 
519 
520     public boolean getPayeeIdRequired() {
521         return payeeIdRequired;
522     }
523 
524     
525 
526 
527     public void setAchPaymentDescription(String achPaymentDescription) {
528         this.achPaymentDescription = achPaymentDescription;
529     }
530 
531     
532 
533 
534     public void setAdditionalCheckNoteTextLine1(String additionalCheckNoteTextLine1) {
535         this.additionalCheckNoteTextLine1 = additionalCheckNoteTextLine1;
536     }
537 
538     
539 
540 
541     public void setAdditionalCheckNoteTextLine2(String additionalCheckNoteTextLine2) {
542         this.additionalCheckNoteTextLine2 = additionalCheckNoteTextLine2;
543     }
544 
545     
546 
547 
548     public void setAdditionalCheckNoteTextLine3(String additionalCheckNoteTextLine3) {
549         this.additionalCheckNoteTextLine3 = additionalCheckNoteTextLine3;
550     }
551 
552     
553 
554 
555     public void setAdditionalCheckNoteTextLine4(String additionalCheckNoteTextLine4) {
556         this.additionalCheckNoteTextLine4 = additionalCheckNoteTextLine4;
557     }
558 
559     
560 
561 
562     public void setAddress1(String address1) {
563         this.address1 = address1;
564     }
565 
566     
567 
568 
569     public void setAddress2(String address2) {
570         this.address2 = address2;
571     }
572 
573     
574 
575 
576     public void setAddress3(String address3) {
577         this.address3 = address3;
578     }
579 
580     
581 
582 
583     public void setAddress4(String address4) {
584         this.address4 = address4;
585     }
586 
587     
588 
589 
590     public void setAdviceCreate(boolean adviceCreate) {
591         this.adviceCreate = adviceCreate;
592     }
593 
594     
595 
596 
597     public void setAdviceHeaderText(String adviceHeaderText) {
598         this.adviceHeaderText = adviceHeaderText;
599     }
600 
601     
602 
603 
604     public void setAdviceSubjectLine(String adviceSubjectLine) {
605         this.adviceSubjectLine = adviceSubjectLine;
606     }
607 
608     
609 
610 
611     public void setAdviceReturnEmailAddr(String adviceReturnEmailAddr) {
612         this.adviceReturnEmailAddr = adviceReturnEmailAddr;
613     }
614 
615     
616 
617 
618     public void setChartCode(String chartCode) {
619         this.chartCode = chartCode;
620     }
621 
622     
623 
624 
625     public void setCheckHeaderNoteTextLine1(String checkHeaderNoteTextLine1) {
626         this.checkHeaderNoteTextLine1 = checkHeaderNoteTextLine1;
627     }
628 
629     
630 
631 
632     public void setCheckHeaderNoteTextLine2(String checkHeaderNoteTextLine2) {
633         this.checkHeaderNoteTextLine2 = checkHeaderNoteTextLine2;
634     }
635 
636     
637 
638 
639     public void setCheckHeaderNoteTextLine3(String checkHeaderNoteTextLine3) {
640         this.checkHeaderNoteTextLine3 = checkHeaderNoteTextLine3;
641     }
642 
643     
644 
645 
646     public void setCheckHeaderNoteTextLine4(String checkHeaderNoteTextLine4) {
647         this.checkHeaderNoteTextLine4 = checkHeaderNoteTextLine4;
648     }
649 
650     
651 
652 
653     public void setCity(String city) {
654         this.city = city;
655     }
656 
657     
658 
659 
660     public void setContactFullName(String contactFullName) {
661         this.contactFullName = contactFullName;
662     }
663 
664     
665 
666 
667     public void setCustomerDescription(String customerDescription) {
668         this.customerDescription = customerDescription;
669     }
670 
671     
672 
673 
674     public void setDefaultAccountNumber(String defaultAccountNumber) {
675         this.defaultAccountNumber = defaultAccountNumber;
676     }
677 
678     
679 
680 
681     public void setDefaultChartCode(String defaultChartCode) {
682         this.defaultChartCode = defaultChartCode;
683     }
684 
685     
686 
687 
688     public void setDefaultObjectCode(String defaultObjectCode) {
689         this.defaultObjectCode = defaultObjectCode;
690     }
691 
692     
693 
694 
695     public void setDefaultPhysicalCampusProcessingCode(String defaultPhysicalCampusProcessingCode) {
696         this.defaultPhysicalCampusProcessingCode = defaultPhysicalCampusProcessingCode;
697     }
698 
699     
700 
701 
702     public void setDefaultSubObjectCode(String defaultSubObjectCode) {
703         this.defaultSubObjectCode = defaultSubObjectCode;
704     }
705 
706     
707 
708 
709     public void setEmployeeCheck(boolean employeeCheck) {
710         this.employeeCheck = employeeCheck;
711     }
712 
713     
714 
715 
716     public void setFileThresholdAmount(KualiDecimal fileThresholdAmount) {
717         this.fileThresholdAmount = fileThresholdAmount;
718     }
719 
720     
721 
722 
723     public void setFileThresholdEmailAddress(String fileThresholdEmailAddress) {
724         this.fileThresholdEmailAddress = fileThresholdEmailAddress;
725     }
726 
727     
728 
729 
730     public void setId(KualiInteger id) {
731         this.id = id;
732     }
733 
734     
735 
736 
737     public void setNraReview(boolean nraReview) {
738         this.nraReview = nraReview;
739     }
740 
741     
742 
743 
744     public void setUnitCode(String orgCode) {
745         this.unitCode = orgCode;
746     }
747 
748     
749 
750 
751     public void setOwnershipCodeRequired(boolean ownershipCodeRequired) {
752         this.ownershipCodeRequired = ownershipCodeRequired;
753     }
754 
755     
756 
757 
758     public void setPayeeIdRequired(boolean payeeIdRequired) {
759         this.payeeIdRequired = payeeIdRequired;
760     }
761 
762     
763 
764 
765     public void setPaymentThresholdAmount(KualiDecimal paymentThresholdAmount) {
766         this.paymentThresholdAmount = paymentThresholdAmount;
767     }
768 
769     
770 
771 
772     public void setPaymentThresholdEmailAddress(String paymentThresholdEmailAddress) {
773         this.paymentThresholdEmailAddress = paymentThresholdEmailAddress;
774     }
775 
776     
777 
778 
779     public void setProcessingEmailAddr(String processingEmailAddr) {
780         this.processingEmailAddr = processingEmailAddr;
781     }
782 
783     
784 
785 
786     public void setStateCode(String state) {
787         this.stateCode = state;
788     }
789 
790     
791 
792 
793     public void setSubUnitCode(String subUnitCode) {
794         this.subUnitCode = subUnitCode;
795     }
796 
797     
798 
799 
800     public void setZipCode(String zipCode) {
801         this.zipCode = zipCode;
802     }
803 
804     
805 
806 
807     public boolean getRelieveLiabilities() {
808         return relieveLiabilities;
809     }
810 
811     
812 
813 
814     public void setRelieveLiabilities(boolean relieveLiabilities) {
815         this.relieveLiabilities = relieveLiabilities;
816     }
817 
818     @Override
819     public String toString() {
820         return new ToStringBuilder(this).append("chartCode", this.chartCode).append("unitCode", this.unitCode).append("subUnitCode", this.subUnitCode).toString();
821     }
822 
823     public Chart getChartOfAccounts() {
824         return chartOfAccounts;
825     }
826 
827     public void setChartOfAccounts(Chart chartOfAccounts) {
828         this.chartOfAccounts = chartOfAccounts;
829     }
830 
831 
832     
833 
834 
835 
836 
837     public CampusEbo getDefaultProcessingCampus() {
838         if ( StringUtils.isBlank(defaultPhysicalCampusProcessingCode) ) {
839             defaultProcessingCampus = null;
840         } else {
841             if ( defaultProcessingCampus == null || !StringUtils.equals( defaultProcessingCampus.getCode(),defaultPhysicalCampusProcessingCode) ) {
842                 ModuleService moduleService = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(CampusEbo.class);
843                 if ( moduleService != null ) {
844                     Map<String,Object> keys = new HashMap<String, Object>(1);
845                     keys.put(LocationConstants.PrimaryKeyConstants.CODE, defaultPhysicalCampusProcessingCode);
846                     defaultProcessingCampus = moduleService.getExternalizableBusinessObject(CampusEbo.class, keys);
847                 } else {
848                     throw new RuntimeException( "CONFIGURATION ERROR: No responsible module found for EBO class.  Unable to proceed." );
849                 }
850             }
851         }
852         return defaultProcessingCampus;
853     }
854 
855     
856 
857 
858 
859 
860     public void setDefaultProcessingCampus(CampusEbo defaultProcessingCampus) {
861         this.defaultProcessingCampus = defaultProcessingCampus;
862     }
863 
864     
865 
866 
867 
868 
869     public Chart getDefaultChart() {
870         return defaultChart;
871     }
872 
873     
874 
875 
876 
877 
878     public void setDefaultChart(Chart defaultChart) {
879         this.defaultChart = defaultChart;
880     }
881 
882     
883 
884 
885 
886 
887     public Account getDefaultAccount() {
888         return defaultAccount;
889     }
890 
891     
892 
893 
894 
895 
896     public void setDefaultAccount(Account defaultAccount) {
897         this.defaultAccount = defaultAccount;
898     }
899 
900     
901 
902 
903 
904 
905     public SubAccount getDefaultSubAccount() {
906         return defaultSubAccount;
907     }
908 
909     
910 
911 
912 
913 
914     public void setDefaultSubAccount(SubAccount defaultSubAccount) {
915         this.defaultSubAccount = defaultSubAccount;
916     }
917 
918     
919 
920 
921 
922 
923     public ObjectCode getDefaultObject() {
924         return defaultObject;
925     }
926 
927     
928 
929 
930 
931 
932     public void setDefaultObject(ObjectCode defaultObject) {
933         this.defaultObject = defaultObject;
934     }
935 
936     
937 
938 
939 
940 
941     public SubObjectCode getDefaultSubObject() {
942         return defaultSubObject;
943     }
944 
945     
946 
947 
948 
949 
950     public void setDefaultSubObject(SubObjectCode defaultSubObject) {
951         this.defaultSubObject = defaultSubObject;
952     }
953 
954     
955 
956 
957 
958 
959     public StateEbo getState() {
960         if ( StringUtils.isBlank(stateCode) || StringUtils.isBlank(countryCode ) ) {
961             state = null;
962         } else {
963             if ( state == null || !StringUtils.equals( state.getCode(),stateCode) || !StringUtils.equals(state.getCountryCode(), countryCode ) ) {
964                 ModuleService moduleService = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(StateEbo.class);
965                 if ( moduleService != null ) {
966                     Map<String,Object> keys = new HashMap<String, Object>(2);
967                     keys.put(LocationConstants.PrimaryKeyConstants.COUNTRY_CODE, countryCode);
968                     keys.put(LocationConstants.PrimaryKeyConstants.CODE, stateCode);
969                     state = moduleService.getExternalizableBusinessObject(StateEbo.class, keys);
970                 } else {
971                     throw new RuntimeException( "CONFIGURATION ERROR: No responsible module found for EBO class.  Unable to proceed." );
972                 }
973             }
974         }
975         return state;
976     }
977 
978     
979 
980 
981 
982 
983     public void setState(StateEbo state) {
984         this.state = state;
985     }
986 
987     
988 
989 
990 
991 
992     public PostalCodeEbo getPostalCode() {
993         if ( StringUtils.isBlank(zipCode) || StringUtils.isBlank(countryCode) ) {
994             postalCode = null;
995         } else {
996             if ( postalCode == null || !StringUtils.equals( postalCode.getCode(),zipCode) || !StringUtils.equals(postalCode.getCountryCode(), countryCode ) ) {
997                 ModuleService moduleService = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(PostalCodeEbo.class);
998                 if ( moduleService != null ) {
999                     Map<String,Object> keys = new HashMap<String, Object>(2);
1000                     keys.put(LocationConstants.PrimaryKeyConstants.COUNTRY_CODE, countryCode);
1001                     keys.put(LocationConstants.PrimaryKeyConstants.CODE, zipCode);
1002                     postalCode = moduleService.getExternalizableBusinessObject(PostalCodeEbo.class, keys);
1003                 } else {
1004                     throw new RuntimeException( "CONFIGURATION ERROR: No responsible module found for EBO class.  Unable to proceed." );
1005                 }
1006             }
1007         }
1008         return postalCode;
1009     }
1010 
1011     
1012 
1013 
1014 
1015 
1016     public void setPostalCode(PostalCodeEbo postalCode) {
1017         this.postalCode = postalCode;
1018     }
1019 
1020     
1021 
1022 
1023 
1024 
1025     public CountryEbo getCountry() {
1026         if ( StringUtils.isBlank(countryCode) ) {
1027             country = null;
1028         } else {
1029             if ( country == null || !StringUtils.equals( country.getCode(),countryCode) ) {
1030                 ModuleService moduleService = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(CountryEbo.class);
1031                 if ( moduleService != null ) {
1032                     Map<String,Object> keys = new HashMap<String, Object>(1);
1033                     keys.put(LocationConstants.PrimaryKeyConstants.CODE, countryCode);
1034                     country = moduleService.getExternalizableBusinessObject(CountryEbo.class, keys);
1035                 } else {
1036                     throw new RuntimeException( "CONFIGURATION ERROR: No responsible module found for EBO class.  Unable to proceed." );
1037                 }
1038             }
1039         }
1040         return country;
1041     }
1042 
1043     
1044 
1045 
1046 
1047 
1048     public void setCountry(CountryEbo country) {
1049         this.country = country;
1050     }
1051 
1052     
1053 
1054 
1055     @Override
1056     public boolean isActive() {
1057         return active;
1058     }
1059 
1060     
1061 
1062 
1063     @Override
1064     public void setActive(boolean active) {
1065         this.active = active;
1066     }
1067 
1068     
1069 
1070 
1071 
1072     public String getCountryCode() {
1073         return countryCode;
1074     }
1075 
1076     
1077 
1078 
1079 
1080     public void setCountryCode(String countryCode) {
1081         this.countryCode = countryCode;
1082     }
1083 
1084     
1085 
1086 
1087 
1088 
1089     public String getAchTransactionType() {
1090         return achTransactionType;
1091     }
1092 
1093     
1094 
1095 
1096 
1097 
1098     public void setAchTransactionType(String achTransactionType) {
1099         this.achTransactionType = achTransactionType;
1100     }
1101 
1102     
1103 
1104 
1105 
1106 
1107     public ACHTransactionType getTransactionType() {
1108         return transactionType;
1109     }
1110 
1111     
1112 
1113 
1114 
1115 
1116     public void setTransactionType(ACHTransactionType transactionType) {
1117         this.transactionType = transactionType;
1118     }
1119 
1120     
1121 
1122 
1123 
1124     public boolean isSelectedForFormat() {
1125         return selectedForFormat;
1126 }
1127     
1128 
1129 
1130 
1131     public void setSelectedForFormat(boolean sameCampus) {
1132         this.selectedForFormat = sameCampus;
1133     }
1134     
1135 }