1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.gl.batch.service.impl;
17
18 import java.sql.Date;
19 import java.util.Collection;
20
21 import org.kuali.ole.gl.batch.CollectorBatch;
22 import org.kuali.ole.gl.batch.CollectorScrubberProcess;
23 import org.kuali.ole.gl.batch.service.CollectorScrubberService;
24 import org.kuali.ole.gl.report.CollectorReportData;
25 import org.kuali.ole.gl.service.ScrubberService;
26 import org.kuali.ole.gl.service.impl.CollectorScrubberStatus;
27 import org.kuali.ole.sys.dataaccess.UniversityDateDao;
28 import org.kuali.rice.core.api.config.property.ConfigurationService;
29 import org.kuali.rice.core.api.datetime.DateTimeService;
30 import org.kuali.rice.krad.service.PersistenceService;
31 import org.springframework.transaction.annotation.Transactional;
32
33
34
35
36 @Transactional
37 public class CollectorScrubberServiceImpl implements CollectorScrubberService {
38 private DateTimeService dateTimeService;
39 private UniversityDateDao universityDateDao;
40 private ConfigurationService kualiConfigurationService;
41 private PersistenceService persistenceService;
42 private ScrubberService scrubberService;
43 private String batchFileDirectoryName;
44
45
46
47
48
49
50
51
52
53
54
55 public CollectorScrubberStatus scrub(CollectorBatch batch, CollectorReportData collectorReportData, String collectorFileDirectoryName) {
56 CollectorScrubberProcess collectorScrubberProcess = new CollectorScrubberProcess(batch, kualiConfigurationService, persistenceService, scrubberService, collectorReportData, dateTimeService, batchFileDirectoryName);
57 return collectorScrubberProcess.scrub();
58
59 }
60
61
62
63
64
65
66
67
68
69
70
71 public void removeTempGroups(Collection<CollectorScrubberStatus> allStatusObjectsFromCollectorExecution) {
72 }
73
74
75
76
77
78 protected Date calculateRunDate() {
79 return dateTimeService.getCurrentSqlDate();
80 }
81
82
83
84
85
86
87 public DateTimeService getDateTimeService() {
88 return dateTimeService;
89 }
90
91
92
93
94
95
96 public void setDateTimeService(DateTimeService dateTimeService) {
97 this.dateTimeService = dateTimeService;
98 }
99
100
101
102
103
104
105 public ConfigurationService getConfigurationService() {
106 return kualiConfigurationService;
107 }
108
109
110
111
112
113
114 public void setConfigurationService(ConfigurationService kualiConfigurationService) {
115 this.kualiConfigurationService = kualiConfigurationService;
116 }
117
118
119
120
121
122
123 public void setUniversityDateDao(UniversityDateDao universityDateDao) {
124 this.universityDateDao = universityDateDao;
125 }
126
127
128
129
130
131
132 public PersistenceService getPersistenceService() {
133 return persistenceService;
134 }
135
136
137
138
139
140
141 public void setPersistenceService(PersistenceService persistenceService) {
142 this.persistenceService = persistenceService;
143 }
144
145
146
147
148
149
150 public UniversityDateDao getUniversityDateDao() {
151 return universityDateDao;
152 }
153
154
155
156
157
158
159 public void setScrubberService(ScrubberService scrubberService) {
160 this.scrubberService = scrubberService;
161 }
162
163
164
165
166
167 public void setBatchFileDirectoryName(String batchFileDirectoryName) {
168 this.batchFileDirectoryName = batchFileDirectoryName;
169 }
170
171
172 }