1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.holidaycalendar.service;
17
18 import java.math.BigDecimal;
19 import java.util.Date;
20 import java.util.List;
21
22 import org.kuali.hr.job.Job;
23 import org.kuali.hr.time.assignment.Assignment;
24 import org.kuali.hr.time.holidaycalendar.HolidayCalendar;
25 import org.kuali.hr.time.holidaycalendar.HolidayCalendarDateEntry;
26 import org.kuali.hr.time.timesheet.TimesheetDocument;
27 import org.springframework.cache.annotation.Cacheable;
28
29 public interface HolidayCalendarService {
30
31
32
33
34
35 @Cacheable(value= HolidayCalendar.CACHE_NAME, key="'holidayCalendarGroup=' + #p0")
36 public HolidayCalendar getHolidayCalendarByGroup(String holidayCalendarGroup);
37
38
39
40
41
42
43
44
45 @Cacheable(value= HolidayCalendar.CACHE_NAME,
46 key="'hrHolidayCalendarId=' + #p0" +
47 "+ '|' + 'startDate=' + #p1" +
48 "+ '|' + 'endDate=' + #p2")
49 public List<HolidayCalendarDateEntry> getHolidayCalendarDateEntriesForPayPeriod(String hrHolidayCalendarId, Date startDate, Date endDate);
50
51
52
53
54
55
56 @Cacheable(value= HolidayCalendar.CACHE_NAME, key="'hrHolidayCalendarId=' + #p0 + '|' + 'startDate=' + #p1")
57 public HolidayCalendarDateEntry getHolidayCalendarDateEntryByDate(String hrHolidayCalendarId, Date startDate);
58
59
60
61
62
63
64 public Assignment getAssignmentToApplyHolidays(TimesheetDocument timesheetDocument, java.sql.Date payEndDate);
65
66
67
68
69
70
71 public BigDecimal calculateHolidayHours(Job job, BigDecimal holidayHours);
72 }