1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.pm.positionappointment.service;
17
18 import java.util.List;
19
20 import org.joda.time.LocalDate;
21 import org.kuali.kpme.pm.api.positionappointment.PositionAppointment;
22 import org.kuali.kpme.pm.api.positionappointment.service.PositionAppointmentService;
23 import org.kuali.kpme.pm.positionappointment.PositionAppointmentBo;
24 import org.kuali.kpme.pm.positionappointment.dao.PositionAppointmentDao;
25 import org.kuali.rice.core.api.mo.ModelObjectUtils;
26
27 public class PositionAppointmentServiceImpl implements PositionAppointmentService {
28
29 private PositionAppointmentDao positionAppointmentDao;
30
31
32 public PositionAppointment getPositionAppointmentById(String pmPositionAppointmentId) {
33 return PositionAppointmentBo.to(positionAppointmentDao.getPositionAppointmentById(pmPositionAppointmentId));
34 }
35
36
37 public List<PositionAppointment> getPositionAppointmentList(String positionAppointment, String description, String groupKeyCode, LocalDate fromEffdt, LocalDate toEffdt, String active, String showHistory) {
38 return ModelObjectUtils.transform(positionAppointmentDao.getPositionAppointmentList(positionAppointment, description, groupKeyCode, fromEffdt, toEffdt, active, showHistory),PositionAppointmentBo.toImmutable);
39 }
40
41 public List<PositionAppointment> getPositionAppointmentList(String positionAppointment, String groupKeyCode, LocalDate asOfDate) {
42 return ModelObjectUtils.transform(positionAppointmentDao.getPositionAppointmentList(positionAppointment, groupKeyCode, asOfDate), PositionAppointmentBo.toImmutable);
43 }
44
45 public PositionAppointmentDao getPositionAppointmentDao() {
46 return positionAppointmentDao;
47 }
48
49 public void setPositionAppointmentDao(
50 PositionAppointmentDao positionAppointmentDao) {
51 this.positionAppointmentDao = positionAppointmentDao;
52 }
53
54 }