View Javadoc

1   /**
2    * Copyright 2004-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
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  /**
17  
18   * Copyright 2004-2013 The Kuali Foundation
19   *
20   * Licensed under the Educational Community License, Version 2.0 (the "License");
21   * you may not use this file except in compliance with the License.
22   * You may obtain a copy of the License at
23   *
24   * http://www.opensource.org/licenses/ecl2.php
25   *
26   * Unless required by applicable law or agreed to in writing, software
27   * distributed under the License is distributed on an "AS IS" BASIS,
28   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29   * See the License for the specific language governing permissions and
30   * limitations under the License.
31   */
32  package org.kuali.kpme.core.paygrade.service;
33  
34  import java.util.List;
35  
36  import org.joda.time.LocalDate;
37  import org.kuali.kpme.core.paygrade.PayGrade;
38  import org.kuali.kpme.core.paygrade.dao.PayGradeDao;
39  
40  public class PayGradeServiceImpl implements PayGradeService {
41  
42  	private PayGradeDao payGradeDao;
43  	@Override
44  	public PayGrade getPayGrade(String payGrade, String salGroup, LocalDate asOfDate) {
45  		return payGradeDao.getPayGrade(payGrade, salGroup, asOfDate);
46  	}
47   
48  	public void setPayGradeDao(PayGradeDao payGradeDao) {
49  		this.payGradeDao = payGradeDao;
50  	}
51  
52  	@Override
53  	public PayGrade getPayGrade(String hrPayGradeId) {
54  		return payGradeDao.getPayGrade(hrPayGradeId);
55  	}
56  	@Override
57  	public int getPayGradeCount(String payGrade) {
58  		return payGradeDao.getPayGradeCount(payGrade);
59  	}
60  
61      @Override
62      public List<PayGrade> getPayGrades(String payGrade, String payGradeDescr, String salGroup, String active, String showHistory) {
63          return payGradeDao.getPayGrades(payGrade, payGradeDescr, salGroup, active, showHistory);
64      }
65  
66  }