01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.gl.batch;
17:
18: import org.kuali.kfs.batch.AbstractStep;
19: import org.kuali.module.gl.service.EnterpriseFeederService;
20:
21: /**
22: * This step executes the enterprise feeder
23: */
24: public class EnterpriseFeedStep extends AbstractStep {
25:
26: private EnterpriseFeederService enterpriseFeederService;
27:
28: /**
29: * Runs the enterprise feeder process
30: *
31: * @jobName the name of the job this step is being execute as part of
32: * @return true if the job completed successfully, false if otherwise
33: * @see org.kuali.kfs.batch.Step#execute()
34: */
35: public boolean execute(String jobName) throws InterruptedException {
36: enterpriseFeederService.feed(jobName, true);
37: return true;
38: }
39:
40: /**
41: * Gets the enterpriseFeederService attribute.
42: *
43: * @return Returns the enterpriseFeederService.
44: * @see org.kuali.module.gl.service.EnterpriseFeederService
45: */
46: public EnterpriseFeederService getEnterpriseFeederService() {
47: return enterpriseFeederService;
48: }
49:
50: /**
51: * Sets the enterpriseFeederService attribute value.
52: *
53: * @param enterpriseFeederService The enterpriseFeederService to set.
54: * @see org.kuali.module.gl.service.EnterpriseFeederService
55: */
56: public void setEnterpriseFeederService(
57: EnterpriseFeederService enterpriseFeederService) {
58: this.enterpriseFeederService = enterpriseFeederService;
59: }
60:
61: }
|