1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }