View Javadoc

1   /**
2    * Copyright 2004-2012 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  package org.kuali.hr.earncodesec.service;
17  
18  import org.kuali.hr.earncodesec.EarnCodeSecurity;
19  import org.kuali.hr.earncodesec.dao.EarnCodeSecurityDao;
20  
21  import java.sql.Date;
22  import java.util.List;
23  
24  public class EarnCodeSecurityServiceImpl implements EarnCodeSecurityService {
25  
26      private EarnCodeSecurityDao earnCodeSecurityDao;
27  
28  	public void setEarnCodeSecurityDao(EarnCodeSecurityDao earnCodeSecurityDao) {
29  		this.earnCodeSecurityDao = earnCodeSecurityDao;
30  	}
31  
32  	@Override
33  	public List<EarnCodeSecurity> getEarnCodeSecurities(String department, String hrSalGroup, String location, java.util.Date asOfDate) {
34  		return earnCodeSecurityDao.getEarnCodeSecurities(department, hrSalGroup, location, asOfDate);
35  	}
36  
37  	@Override
38  	public EarnCodeSecurity getEarnCodeSecurity(String hrEarnCodeSecId) {
39  		return earnCodeSecurityDao.getEarnCodeSecurity(hrEarnCodeSecId);
40  	}
41  
42  	@Override
43  	public List<EarnCodeSecurity> searchEarnCodeSecurities(String dept,
44  			String salGroup, String earnCode, String location, Date fromEffdt,
45  			Date toEffdt, String active, String showHistory) {
46  		return earnCodeSecurityDao.searchEarnCodeSecurities(dept, salGroup, earnCode, location, fromEffdt,
47  								toEffdt, active, showHistory);
48  	}
49  	@Override
50  	public int getEarnCodeSecurityCount(String dept, String salGroup, String earnCode, String employee, String approver, String location,
51  			String active, Date effdt,String hrDeptEarnCodeId) {
52  		return earnCodeSecurityDao.getEarnCodeSecurityCount(dept, salGroup, earnCode, employee, approver, location,
53  				active, effdt, hrDeptEarnCodeId);
54  	}
55  	@Override
56  	public int getNewerEarnCodeSecurityCount(String earnCode, java.util.Date effdt) {
57  		return earnCodeSecurityDao.getNewerEarnCodeSecurityCount(earnCode, effdt);
58  	}
59  }