1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.coa.batch;
17
18 import java.util.Date;
19
20 import org.kuali.ole.coa.service.PriorYearAccountService;
21 import org.kuali.ole.coa.service.PriorYearOrganizationService;
22 import org.kuali.ole.sys.batch.AbstractStep;
23
24
25
26
27
28 public class UpdatePriorYearDataStep extends AbstractStep {
29
30 private PriorYearAccountService priorYearAccountService;
31 private PriorYearOrganizationService priorYearOrganizationService;
32
33
34
35
36
37
38 public boolean execute(String jobName, Date jobRunDate) throws InterruptedException {
39 priorYearAccountService.populatePriorYearAccountsFromCurrent();
40 priorYearOrganizationService.populatePriorYearOrganizationsFromCurrent();
41 return true;
42 }
43
44
45
46
47
48
49 public void setPriorYearAccountService(PriorYearAccountService priorYearAccountService) {
50 this.priorYearAccountService = priorYearAccountService;
51 }
52
53
54
55
56
57
58 public void setPriorYearOrganizationService(PriorYearOrganizationService priorYearOrganizationService) {
59 this.priorYearOrganizationService = priorYearOrganizationService;
60 }
61
62 }