1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.coa.businessobject;
18
19 import java.sql.Timestamp;
20 import java.util.HashMap;
21 import java.util.Map;
22
23 import org.apache.commons.lang.StringUtils;
24 import org.kuali.ole.sys.context.SpringContext;
25 import org.kuali.rice.kim.api.identity.Person;
26 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
27 import org.kuali.rice.krad.service.KualiModuleService;
28 import org.kuali.rice.krad.service.ModuleService;
29 import org.kuali.rice.location.api.LocationConstants;
30 import org.kuali.rice.location.framework.campus.CampusEbo;
31
32
33
34
35 public class OrganizationExtension extends PersistableBusinessObjectBase {
36
37 private String chartOfAccountsCode;
38 private String organizationCode;
39 private String hrmsShortDescription;
40 private String hrmsCompany;
41 private String hrmsSetIdLocation;
42 private String hrmsLocation;
43 private String hrmsTaxLocationCode;
44 private String hrmsPersonnelApproverUniversalId;
45 private String hrmsManagerPositionNumber;
46 private Integer hrmsBudgetYearEndDate;
47 private String hrmsBudgetLevel;
48 private String hrmsGeneralLedgerExpense;
49 private String hrmsEqualEmploymentOpportunity4Function;
50 private String hrmsAccidentInsurance;
51 private String hrmsSocialInsuranceAccidentNumber;
52 private String hrmsHazard;
53 private String hrmsEstablishmentId;
54 private String hrmsRiskCode;
55 private String hrmsFullTimeEmploymentEditIndicator;
56 private String hrmsDepartmentTenureFlag;
57 private String hrmsTimeAndLaborDistributionInformation;
58 private String hrmsUseBudgetsIndicator;
59 private String hrmsUseEncumbrancesIndicator;
60 private String hrmsUseDistributionIndicator;
61 private String hrmsBudgetDepartmentId;
62 private String hrmsDistributionProrateOption;
63 private String hrmsHealthProgramStatisticsDepartmentCode;
64 private String hrmsHealthProgramStatisticsFaculty;
65 private String hrmsAccountingOwner;
66 private String hrmsCountryGroup;
67 private String hrmsIuOrganizationMailDropCode;
68 private String hrmsIuOrganizationAddress2;
69 private String hrmsIuOrganizationAddress3;
70 private String hrmsIuCampusCode;
71 private String hrmsIuCampusBuilding;
72 private String hrmsIuCampusRoom;
73 private boolean hrmsIuPositionAllowedFlag;
74 private boolean hrmsIuTenureAllowedFlag;
75 private boolean hrmsIuTitleAllowedFlag;
76 private boolean hrmsIuOccupationalUnitAllowedFlag;
77 private String fiscalApproverUniversalId;
78 private Timestamp hrmsLastUpdateDate;
79
80 private Chart chartOfAccounts;
81 private Organization organization;
82 private Person hrmsPersonnelApproverUniversal;
83 private CampusEbo hrmsIuCampus;
84 private Person fiscalApproverUniversal;
85
86
87
88
89 public OrganizationExtension() {
90
91 }
92
93
94
95
96
97
98 public String getChartOfAccountsCode() {
99 return chartOfAccountsCode;
100 }
101
102
103
104
105
106
107 public void setChartOfAccountsCode(String chartOfAccountsCode) {
108 this.chartOfAccountsCode = chartOfAccountsCode;
109 }
110
111
112
113
114
115
116
117 public String getOrganizationCode() {
118 return organizationCode;
119 }
120
121
122
123
124
125
126 public void setOrganizationCode(String organizationCode) {
127 this.organizationCode = organizationCode;
128 }
129
130
131
132
133
134
135
136 public String getHrmsShortDescription() {
137 return hrmsShortDescription;
138 }
139
140
141
142
143
144
145 public void setHrmsShortDescription(String hrmsShortDescription) {
146 this.hrmsShortDescription = hrmsShortDescription;
147 }
148
149
150
151
152
153
154
155 public String getHrmsCompany() {
156 return hrmsCompany;
157 }
158
159
160
161
162
163
164 public void setHrmsCompany(String hrmsCompany) {
165 this.hrmsCompany = hrmsCompany;
166 }
167
168
169
170
171
172
173
174 public String getHrmsSetIdLocation() {
175 return hrmsSetIdLocation;
176 }
177
178
179
180
181
182
183 public void setHrmsSetIdLocation(String hrmsSetIdLocation) {
184 this.hrmsSetIdLocation = hrmsSetIdLocation;
185 }
186
187
188
189
190
191
192
193 public String getHrmsLocation() {
194 return hrmsLocation;
195 }
196
197
198
199
200
201
202 public void setHrmsLocation(String hrmsLocation) {
203 this.hrmsLocation = hrmsLocation;
204 }
205
206
207
208
209
210
211
212 public String getHrmsTaxLocationCode() {
213 return hrmsTaxLocationCode;
214 }
215
216
217
218
219
220
221 public void setHrmsTaxLocationCode(String hrmsTaxLocationCode) {
222 this.hrmsTaxLocationCode = hrmsTaxLocationCode;
223 }
224
225
226
227
228
229
230
231 public String getHrmsPersonnelApproverUniversalId() {
232 return hrmsPersonnelApproverUniversalId;
233 }
234
235
236
237
238
239
240 public void setHrmsPersonnelApproverUniversalId(String hrmsPersonnelApproverUniversalId) {
241 this.hrmsPersonnelApproverUniversalId = hrmsPersonnelApproverUniversalId;
242 }
243
244
245
246
247
248
249
250 public String getHrmsManagerPositionNumber() {
251 return hrmsManagerPositionNumber;
252 }
253
254
255
256
257
258
259 public void setHrmsManagerPositionNumber(String hrmsManagerPositionNumber) {
260 this.hrmsManagerPositionNumber = hrmsManagerPositionNumber;
261 }
262
263
264
265
266
267
268
269 public Integer getHrmsBudgetYearEndDate() {
270 return hrmsBudgetYearEndDate;
271 }
272
273
274
275
276
277
278 public void setHrmsBudgetYearEndDate(Integer hrmsBudgetYearEndDate) {
279 this.hrmsBudgetYearEndDate = hrmsBudgetYearEndDate;
280 }
281
282
283
284
285
286
287
288 public String getHrmsBudgetLevel() {
289 return hrmsBudgetLevel;
290 }
291
292
293
294
295
296
297 public void setHrmsBudgetLevel(String hrmsBudgetLevel) {
298 this.hrmsBudgetLevel = hrmsBudgetLevel;
299 }
300
301
302
303
304
305
306
307 public String getHrmsGeneralLedgerExpense() {
308 return hrmsGeneralLedgerExpense;
309 }
310
311
312
313
314
315
316 public void setHrmsGeneralLedgerExpense(String hrmsGeneralLedgerExpense) {
317 this.hrmsGeneralLedgerExpense = hrmsGeneralLedgerExpense;
318 }
319
320
321
322
323
324
325
326 public String getHrmsEqualEmploymentOpportunity4Function() {
327 return hrmsEqualEmploymentOpportunity4Function;
328 }
329
330
331
332
333
334
335 public void setHrmsEqualEmploymentOpportunity4Function(String hrmsEqualEmploymentOpportunity4Function) {
336 this.hrmsEqualEmploymentOpportunity4Function = hrmsEqualEmploymentOpportunity4Function;
337 }
338
339
340
341
342
343
344
345 public String getHrmsAccidentInsurance() {
346 return hrmsAccidentInsurance;
347 }
348
349
350
351
352
353
354 public void setHrmsAccidentInsurance(String hrmsAccidentInsurance) {
355 this.hrmsAccidentInsurance = hrmsAccidentInsurance;
356 }
357
358
359
360
361
362
363
364 public String getHrmsSocialInsuranceAccidentNumber() {
365 return hrmsSocialInsuranceAccidentNumber;
366 }
367
368
369
370
371
372
373 public void setHrmsSocialInsuranceAccidentNumber(String hrmsSocialInsuranceAccidentNumber) {
374 this.hrmsSocialInsuranceAccidentNumber = hrmsSocialInsuranceAccidentNumber;
375 }
376
377
378
379
380
381
382
383 public String getHrmsHazard() {
384 return hrmsHazard;
385 }
386
387
388
389
390
391
392 public void setHrmsHazard(String hrmsHazard) {
393 this.hrmsHazard = hrmsHazard;
394 }
395
396
397
398
399
400
401
402 public String getHrmsEstablishmentId() {
403 return hrmsEstablishmentId;
404 }
405
406
407
408
409
410
411 public void setHrmsEstablishmentId(String hrmsEstablishmentId) {
412 this.hrmsEstablishmentId = hrmsEstablishmentId;
413 }
414
415
416
417
418
419
420
421 public String getHrmsRiskCode() {
422 return hrmsRiskCode;
423 }
424
425
426
427
428
429
430 public void setHrmsRiskCode(String hrmsRiskCode) {
431 this.hrmsRiskCode = hrmsRiskCode;
432 }
433
434
435
436
437
438
439
440 public String getHrmsFullTimeEmploymentEditIndicator() {
441 return hrmsFullTimeEmploymentEditIndicator;
442 }
443
444
445
446
447
448
449 public void setHrmsFullTimeEmploymentEditIndicator(String hrmsFullTimeEmploymentEditIndicator) {
450 this.hrmsFullTimeEmploymentEditIndicator = hrmsFullTimeEmploymentEditIndicator;
451 }
452
453
454
455
456
457
458
459 public String getHrmsDepartmentTenureFlag() {
460 return hrmsDepartmentTenureFlag;
461 }
462
463
464
465
466
467
468 public void setHrmsDepartmentTenureFlag(String hrmsDepartmentTenureFlag) {
469 this.hrmsDepartmentTenureFlag = hrmsDepartmentTenureFlag;
470 }
471
472
473
474
475
476
477
478 public String getHrmsTimeAndLaborDistributionInformation() {
479 return hrmsTimeAndLaborDistributionInformation;
480 }
481
482
483
484
485
486
487 public void setHrmsTimeAndLaborDistributionInformation(String hrmsTimeAndLaborDistributionInformation) {
488 this.hrmsTimeAndLaborDistributionInformation = hrmsTimeAndLaborDistributionInformation;
489 }
490
491
492
493
494
495
496
497 public String getHrmsUseBudgetsIndicator() {
498 return hrmsUseBudgetsIndicator;
499 }
500
501
502
503
504
505
506 public void setHrmsUseBudgetsIndicator(String hrmsUseBudgetsIndicator) {
507 this.hrmsUseBudgetsIndicator = hrmsUseBudgetsIndicator;
508 }
509
510
511
512
513
514
515
516 public String getHrmsUseEncumbrancesIndicator() {
517 return hrmsUseEncumbrancesIndicator;
518 }
519
520
521
522
523
524
525 public void setHrmsUseEncumbrancesIndicator(String hrmsUseEncumbrancesIndicator) {
526 this.hrmsUseEncumbrancesIndicator = hrmsUseEncumbrancesIndicator;
527 }
528
529
530
531
532
533
534
535 public String getHrmsUseDistributionIndicator() {
536 return hrmsUseDistributionIndicator;
537 }
538
539
540
541
542
543
544 public void setHrmsUseDistributionIndicator(String hrmsUseDistributionIndicator) {
545 this.hrmsUseDistributionIndicator = hrmsUseDistributionIndicator;
546 }
547
548
549
550
551
552
553
554 public String getHrmsBudgetDepartmentId() {
555 return hrmsBudgetDepartmentId;
556 }
557
558
559
560
561
562
563 public void setHrmsBudgetDepartmentId(String hrmsBudgetDepartmentId) {
564 this.hrmsBudgetDepartmentId = hrmsBudgetDepartmentId;
565 }
566
567
568
569
570
571
572
573 public String getHrmsDistributionProrateOption() {
574 return hrmsDistributionProrateOption;
575 }
576
577
578
579
580
581
582 public void setHrmsDistributionProrateOption(String hrmsDistributionProrateOption) {
583 this.hrmsDistributionProrateOption = hrmsDistributionProrateOption;
584 }
585
586
587
588
589
590
591
592 public String getHrmsHealthProgramStatisticsDepartmentCode() {
593 return hrmsHealthProgramStatisticsDepartmentCode;
594 }
595
596
597
598
599
600
601 public void setHrmsHealthProgramStatisticsDepartmentCode(String hrmsHealthProgramStatisticsDepartmentCode) {
602 this.hrmsHealthProgramStatisticsDepartmentCode = hrmsHealthProgramStatisticsDepartmentCode;
603 }
604
605
606
607
608
609
610
611 public String getHrmsHealthProgramStatisticsFaculty() {
612 return hrmsHealthProgramStatisticsFaculty;
613 }
614
615
616
617
618
619
620 public void setHrmsHealthProgramStatisticsFaculty(String hrmsHealthProgramStatisticsFaculty) {
621 this.hrmsHealthProgramStatisticsFaculty = hrmsHealthProgramStatisticsFaculty;
622 }
623
624
625
626
627
628
629
630 public String getHrmsAccountingOwner() {
631 return hrmsAccountingOwner;
632 }
633
634
635
636
637
638
639 public void setHrmsAccountingOwner(String hrmsAccountingOwner) {
640 this.hrmsAccountingOwner = hrmsAccountingOwner;
641 }
642
643
644
645
646
647
648
649 public String getHrmsCountryGroup() {
650 return hrmsCountryGroup;
651 }
652
653
654
655
656
657
658 public void setHrmsCountryGroup(String hrmsCountryGroup) {
659 this.hrmsCountryGroup = hrmsCountryGroup;
660 }
661
662
663
664
665
666
667
668 public String getHrmsIuOrganizationMailDropCode() {
669 return hrmsIuOrganizationMailDropCode;
670 }
671
672
673
674
675
676
677 public void setHrmsIuOrganizationMailDropCode(String hrmsIuOrganizationMailDropCode) {
678 this.hrmsIuOrganizationMailDropCode = hrmsIuOrganizationMailDropCode;
679 }
680
681
682
683
684
685
686
687 public String getHrmsIuOrganizationAddress2() {
688 return hrmsIuOrganizationAddress2;
689 }
690
691
692
693
694
695
696 public void setHrmsIuOrganizationAddress2(String hrmsIuOrganizationAddress2) {
697 this.hrmsIuOrganizationAddress2 = hrmsIuOrganizationAddress2;
698 }
699
700
701
702
703
704
705
706 public String getHrmsIuOrganizationAddress3() {
707 return hrmsIuOrganizationAddress3;
708 }
709
710
711
712
713
714
715 public void setHrmsIuOrganizationAddress3(String hrmsIuOrganizationAddress3) {
716 this.hrmsIuOrganizationAddress3 = hrmsIuOrganizationAddress3;
717 }
718
719
720
721
722
723
724
725 public String getHrmsIuCampusCode() {
726 return hrmsIuCampusCode;
727 }
728
729
730
731
732
733
734 public void setHrmsIuCampusCode(String hrmsIuCampusCode) {
735 this.hrmsIuCampusCode = hrmsIuCampusCode;
736 }
737
738
739
740
741
742
743
744 public String getHrmsIuCampusBuilding() {
745 return hrmsIuCampusBuilding;
746 }
747
748
749
750
751
752
753 public void setHrmsIuCampusBuilding(String hrmsIuCampusBuilding) {
754 this.hrmsIuCampusBuilding = hrmsIuCampusBuilding;
755 }
756
757
758
759
760
761
762
763 public String getHrmsIuCampusRoom() {
764 return hrmsIuCampusRoom;
765 }
766
767
768
769
770
771
772 public void setHrmsIuCampusRoom(String hrmsIuCampusRoom) {
773 this.hrmsIuCampusRoom = hrmsIuCampusRoom;
774 }
775
776
777
778
779
780
781 public final boolean isHrmsIuOccupationalUnitAllowedFlag() {
782 return hrmsIuOccupationalUnitAllowedFlag;
783 }
784
785
786
787
788
789
790 public final void setHrmsIuOccupationalUnitAllowedFlag(boolean hrmsIuOccupationalUnitAllowedFlag) {
791 this.hrmsIuOccupationalUnitAllowedFlag = hrmsIuOccupationalUnitAllowedFlag;
792 }
793
794
795
796
797
798
799 public final boolean isHrmsIuPositionAllowedFlag() {
800 return hrmsIuPositionAllowedFlag;
801 }
802
803
804
805
806
807
808 public final void setHrmsIuPositionAllowedFlag(boolean hrmsIuPositionAllowedFlag) {
809 this.hrmsIuPositionAllowedFlag = hrmsIuPositionAllowedFlag;
810 }
811
812
813
814
815
816
817 public final boolean isHrmsIuTenureAllowedFlag() {
818 return hrmsIuTenureAllowedFlag;
819 }
820
821
822
823
824
825
826 public final void setHrmsIuTenureAllowedFlag(boolean hrmsIuTenureAllowedFlag) {
827 this.hrmsIuTenureAllowedFlag = hrmsIuTenureAllowedFlag;
828 }
829
830
831
832
833
834
835 public final boolean isHrmsIuTitleAllowedFlag() {
836 return hrmsIuTitleAllowedFlag;
837 }
838
839
840
841
842
843
844 public final void setHrmsIuTitleAllowedFlag(boolean hrmsIuTitleAllowedFlag) {
845 this.hrmsIuTitleAllowedFlag = hrmsIuTitleAllowedFlag;
846 }
847
848
849
850
851
852
853 public String getFiscalApproverUniversalId() {
854 return fiscalApproverUniversalId;
855 }
856
857
858
859
860
861
862 public void setFiscalApproverUniversalId(String fiscalApproverUniversalId) {
863 this.fiscalApproverUniversalId = fiscalApproverUniversalId;
864 }
865
866
867
868
869
870
871
872 public Timestamp getHrmsLastUpdateDate() {
873 return hrmsLastUpdateDate;
874 }
875
876
877
878
879
880
881 public void setHrmsLastUpdateDate(Timestamp hrmsLastUpdateDate) {
882 this.hrmsLastUpdateDate = hrmsLastUpdateDate;
883 }
884
885
886
887
888
889
890
891 public Chart getChartOfAccounts() {
892 return chartOfAccounts;
893 }
894
895
896
897
898
899
900
901 public void setChartOfAccounts(Chart chartOfAccounts) {
902 this.chartOfAccounts = chartOfAccounts;
903 }
904
905
906
907
908
909
910 public Organization getOrganization() {
911 return organization;
912 }
913
914
915
916
917
918
919
920 public void setOrganization(Organization organization) {
921 this.organization = organization;
922 }
923
924 public Person getHrmsPersonnelApproverUniversal() {
925 hrmsPersonnelApproverUniversal = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(hrmsPersonnelApproverUniversalId, hrmsPersonnelApproverUniversal);
926 return hrmsPersonnelApproverUniversal;
927 }
928
929
930
931
932
933
934
935 public void setHrmsPersonnelApproverUniversal(Person hrmsPersonnelApproverUniversal) {
936 this.hrmsPersonnelApproverUniversal = hrmsPersonnelApproverUniversal;
937 }
938
939
940
941
942
943
944 public CampusEbo getHrmsIuCampus() {
945 if ( StringUtils.isBlank(hrmsIuCampusCode) ) {
946 hrmsIuCampus = null;
947 } else {
948 if ( hrmsIuCampus == null || !StringUtils.equals( hrmsIuCampus.getCode(),hrmsIuCampusCode) ) {
949 ModuleService moduleService = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(CampusEbo.class);
950 if ( moduleService != null ) {
951 Map<String,Object> keys = new HashMap<String, Object>(1);
952 keys.put(LocationConstants.PrimaryKeyConstants.CODE, hrmsIuCampusCode);
953 hrmsIuCampus = moduleService.getExternalizableBusinessObject(CampusEbo.class, keys);
954 } else {
955 throw new RuntimeException( "CONFIGURATION ERROR: No responsible module found for EBO class. Unable to proceed." );
956 }
957 }
958 }
959 return hrmsIuCampus;
960 }
961
962
963
964
965
966
967
968 public void setHrmsIuCampus(CampusEbo hrmsIuCampus) {
969 this.hrmsIuCampus = hrmsIuCampus;
970 }
971
972 public Person getFiscalApproverUniversal() {
973 fiscalApproverUniversal = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(fiscalApproverUniversalId, fiscalApproverUniversal);
974 return fiscalApproverUniversal;
975 }
976
977
978
979
980
981
982
983 public void setFiscalApproverUniversal(Person fiscalApproverUniversal) {
984 this.fiscalApproverUniversal = fiscalApproverUniversal;
985 }
986
987 }
988