1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.calendar.service;
17
18 import java.sql.Time;
19 import java.util.Date;
20 import java.util.List;
21
22 import org.kuali.hr.time.calendar.Calendar;
23 import org.kuali.hr.time.calendar.CalendarEntries;
24 import org.springframework.cache.annotation.Cacheable;
25
26 public interface CalendarService {
27
28
29
30
31
32 @Cacheable(value= Calendar.CACHE_NAME, key="'hrCalendarId=' + #p0")
33 public Calendar getCalendar(String hrCalendarId);
34
35
36
37
38
39
40 @Cacheable(value= Calendar.CACHE_NAME, key="'calendarName=' + #p0")
41 public Calendar getCalendarByGroup(String calendarName);
42
43
44
45
46
47
48
49
50
51
52
53 public CalendarEntries getCurrentCalendarDates(String principalId, Date currentDate);
54
55
56
57
58
59
60
61
62
63 @Cacheable(value= Calendar.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'payEndDate=' + #p1 + '|' + 'calendarType=' + #p2")
64 public CalendarEntries getCalendarDatesByPayEndDate(String principalId, Date payEndDate, String calendarType);
65
66
67
68
69
70
71
72 @Cacheable(value= Calendar.CACHE_NAME, key="'tkCalendarId=' + #p0 + '|' + 'beginDateCurrentCalendar=' + #p1")
73 public CalendarEntries getPreviousCalendarEntry(String tkCalendarId, Date beginDateCurrentCalendar);
74
75
76
77
78
79
80
81 public Calendar getCalendarByPrincipalIdAndDate(String principalId, Date asOfDate, boolean findLeaveCal);
82
83
84
85
86
87
88
89 @Cacheable(value= Calendar.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'currentDate=' + #p1")
90 public CalendarEntries getCurrentCalendarDatesForLeaveCalendar(String principalId, Date currentDate);
91
92 public List<Calendar> getCalendars(String calendarName, String calendarTypes, String flsaBeginDay, String flsaBeginTime);
93
94 }