1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.location.service;
17
18 import org.kuali.hr.location.Location;
19 import org.kuali.hr.location.dao.LocationDao;
20
21 import java.sql.Date;
22 import java.util.List;
23
24
25
26
27
28 public class LocationServiceImpl implements LocationService {
29
30 private LocationDao locationDao;
31 @Override
32 public Location getLocation(String location, Date asOfDate) {
33 return locationDao.getLocation(location, asOfDate);
34 }
35
36 public void setLocationDao(LocationDao locationDao) {
37 this.locationDao = locationDao;
38 }
39
40 @Override
41 public Location getLocation(String hrLocationId) {
42 return locationDao.getLocation(hrLocationId);
43 }
44
45 @Override
46 public int getLocationCount(String location) {
47 return locationDao.getLocationCount(location);
48 }
49
50 @Override
51 public List<Location> searchLocations(String location, String locationDescr, String active, String showHistory) {
52 return locationDao.searchLocations(location, locationDescr, active, showHistory);
53 }
54 }