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.labor.service.impl;
17:
18: import java.util.HashMap;
19: import java.util.Map;
20:
21: import org.kuali.core.service.BusinessObjectService;
22: import org.kuali.module.labor.bo.BenefitsCalculation;
23: import org.kuali.module.labor.service.LaborBenefitsCalculationService;
24:
25: public class LaborBenefitsCalculationServiceImpl implements
26: LaborBenefitsCalculationService {
27:
28: private BusinessObjectService businessObjectService;
29:
30: public void setBusinessObjectService(
31: BusinessObjectService businessObjectService) {
32: this .businessObjectService = businessObjectService;
33: }
34:
35: public BenefitsCalculation getBenefitsCalculation(
36: Integer universityFiscalYear, String chartOfAccountsCode,
37: String benefitTypeCode) {
38: Map fieldValues = new HashMap();
39: fieldValues.put("universityFiscalYear", universityFiscalYear);
40: fieldValues.put("chartOfAccountsCode", chartOfAccountsCode);
41: fieldValues.put("positionBenefitTypeCode", benefitTypeCode);
42:
43: return (BenefitsCalculation) businessObjectService
44: .findByPrimaryKey(BenefitsCalculation.class,
45: fieldValues);
46: }
47: }
|