001    /**
002     * Copyright 2004-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.hr.lm.earncodesec.service;
017    
018    import org.kuali.hr.lm.earncodesec.EarnCodeSecurity;
019    import org.kuali.hr.lm.earncodesec.dao.EarnCodeSecurityDao;
020    
021    import java.sql.Date;
022    import java.util.List;
023    
024    public class EarnCodeSecurityServiceImpl implements EarnCodeSecurityService {
025    
026        private EarnCodeSecurityDao earnCodeSecurityDao;
027    
028            public void setEarnCodeSecurityDao(EarnCodeSecurityDao earnCodeSecurityDao) {
029                    this.earnCodeSecurityDao = earnCodeSecurityDao;
030            }
031    
032            @Override
033            public List<EarnCodeSecurity> getEarnCodeSecurities(String department, String hrSalGroup, String location, java.util.Date asOfDate) {
034                    return earnCodeSecurityDao.getEarnCodeSecurities(department, hrSalGroup, location, asOfDate);
035            }
036    
037            @Override
038            public EarnCodeSecurity getEarnCodeSecurity(String hrEarnCodeSecId) {
039                    return earnCodeSecurityDao.getEarnCodeSecurity(hrEarnCodeSecId);
040            }
041    
042            @Override
043            public List<EarnCodeSecurity> searchEarnCodeSecurities(String dept,
044                            String salGroup, String earnCode, String location, Date fromEffdt,
045                            Date toEffdt, String active, String showHistory) {
046                    return earnCodeSecurityDao.searchEarnCodeSecurities(dept, salGroup, earnCode, location, fromEffdt,
047                                                                    toEffdt, active, showHistory);
048            }
049            @Override
050            public int getEarnCodeSecurityCount(String dept, String salGroup, String earnCode, String employee, String approver, String location,
051                            String active, java.sql.Date effdt,String hrDeptEarnCodeId) {
052                    return earnCodeSecurityDao.getEarnCodeSecurityCount(dept, salGroup, earnCode, employee, approver, location,
053                                    active, effdt, hrDeptEarnCodeId);
054            }
055            @Override
056            public int getNewerEarnCodeSecurityCount(String earnCode, java.util.Date effdt) {
057                    return earnCodeSecurityDao.getNewerEarnCodeSecurityCount(earnCode, effdt);
058            }
059    }