1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.core.block.service;
17
18 import java.util.List;
19
20 import org.joda.time.DateTime;
21 import org.kuali.kpme.core.api.assignment.Assignment;
22 import org.kuali.kpme.core.api.block.service.CalendarBlockService;
23 import org.kuali.kpme.core.block.CalendarBlock;
24 import org.kuali.kpme.core.block.dao.CalendarBlockDao;
25
26 public class CalendarBlockServiceImpl implements CalendarBlockService {
27
28 private CalendarBlockDao calendarBlockDao;
29
30 public CalendarBlockDao getCalendarBlockDao() {
31 return calendarBlockDao;
32 }
33
34 public void setCalendarBlockDao(CalendarBlockDao calendarBlockDao) {
35 this.calendarBlockDao = calendarBlockDao;
36 }
37
38 @Override
39 public List<CalendarBlock> getAllCalendarBlocks() {
40 return calendarBlockDao.getAllCalendarBlocks();
41 }
42
43 @Override
44 public DateTime getLatestEndTimestampForEarnCode(String earnCode, String calendarBlockType) {
45 return calendarBlockDao.getLatestEndTimestampForEarnCode(earnCode, calendarBlockType);
46 }
47
48 @Override
49 public DateTime getLatestEndTimestampForAssignment(Assignment assignment,String calendarBlockType) {
50 return calendarBlockDao.getLatestEndTimestampForAssignment(assignment,calendarBlockType);
51 }
52
53 }