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  package org.kuali.kpme.pm.positiondepartmentaffiliation.service;
17  
18  import java.util.List;
19  
20  import org.joda.time.LocalDate;
21  import org.kuali.kpme.pm.positiondepartmentaffiliation.PositionDepartmentAffiliation;
22  import org.kuali.kpme.pm.positiondepartmentaffiliation.dao.PositionDepartmentAffiliationDao;
23  
24  public class PositionDepartmentAffiliationServiceImpl implements PositionDepartmentAffiliationService {
25  
26  	private PositionDepartmentAffiliationDao positionDepartmentAffiliationDao;
27  
28  	/**
29  	 * @return the positionDepartmentAffiliationDao
30  	 */
31  	public PositionDepartmentAffiliationDao getPositionDepartmentAffiliationDao() {
32  		return positionDepartmentAffiliationDao;
33  	}
34  
35  	/**
36  	 * @param positionDepartmentAffiliationDao the positionDepartmentAffiliationDao to set
37  	 */
38  	public void setPositionDepartmentAffiliationDao(
39  			PositionDepartmentAffiliationDao positionDepartmentAffiliationDao) {
40  		this.positionDepartmentAffiliationDao = positionDepartmentAffiliationDao;
41  	}
42  
43  	@Override
44  	public PositionDepartmentAffiliation getPositionDepartmentAffiliationById(
45  			String pmPositionDeptAfflId) {
46  		return this.positionDepartmentAffiliationDao.getPositionDepartmentAffiliationById(pmPositionDeptAfflId);
47  	}
48  	
49  	@Override
50  	public List<PositionDepartmentAffiliation> getPositionDepartmentAffiliationList(String positionDeptAfflType, LocalDate asOfDate) {
51  		return this.positionDepartmentAffiliationDao.getPositionDepartmentAffiliationList(positionDeptAfflType, asOfDate);
52  	}
53  
54  
55  }