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.core.institution.service;
17  
18  import java.util.List;
19  
20  import org.joda.time.LocalDate;
21  import org.kuali.kpme.core.institution.Institution;
22  import org.kuali.kpme.core.institution.dao.InstitutionDao;
23  
24  public class InstitutionServiceImpl implements InstitutionService {
25  
26  	private InstitutionDao institutionDao;
27  	
28  	@Override
29  	public Institution getInstitutionById(String institutionId) {
30  		return institutionDao.getInstitutionById(institutionId);
31  	}
32  
33  	@Override
34  	public List<Institution> getActiveInstitutionsAsOf(LocalDate asOfDate) {
35  		return institutionDao.getActiveInstitutions(asOfDate);
36  	}
37  
38  	@Override
39  	public List<Institution> getInstitutionsByCode(String code) {
40  		return institutionDao.getInstitutionByCode(code);
41  	}
42  
43  	public InstitutionDao getInstitutionDao() {
44  		return institutionDao;
45  	}
46  
47  	public void setInstitutionDao(InstitutionDao institutionDao) {
48  		this.institutionDao = institutionDao;
49  	}
50  	
51  	@Override
52  	public Institution getInstitution(String institutionCode, LocalDate asOfDate) {
53  		return institutionDao.getInstitution(institutionCode, asOfDate);
54  	}
55  
56  	@Override
57  	public int getInstitutionCount(String institutionCode, LocalDate asOfDate) {
58  		return institutionDao.getInstitutionCount(institutionCode, asOfDate);
59  	}
60  
61  	@Override
62  	public List<Institution> getInstitutions(LocalDate fromEffdt,
63  			LocalDate toEffdt, String institutionCode, String active, String showHistory) {
64  		return institutionDao.getInstitutions(fromEffdt, toEffdt, institutionCode, active, showHistory);
65  	}
66  
67  }