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
64 public CalendarEntries getCurrentCalendarDates(String principalId, Date beginDate, Date endDate);
65
66
67
68
69
70
71
72
73
74 @Cacheable(value= Calendar.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'payEndDate=' + #p1 + '|' + 'calendarType=' + #p2")
75 public CalendarEntries getCalendarDatesByPayEndDate(String principalId, Date payEndDate, String calendarType);
76
77
78
79
80
81
82
83 @Cacheable(value= Calendar.CACHE_NAME, key="'tkCalendarId=' + #p0 + '|' + 'beginDateCurrentCalendar=' + #p1")
84 public CalendarEntries getPreviousCalendarEntry(String tkCalendarId, Date beginDateCurrentCalendar);
85
86
87
88
89
90
91
92 public Calendar getCalendarByPrincipalIdAndDate(String principalId, Date asOfDate, boolean findLeaveCal);
93
94
95
96
97
98
99
100
101 public Calendar getCalendarByPrincipalIdAndDate(String principalId, Date beginDate, Date endDate, boolean findLeaveCal);
102
103
104
105
106
107
108
109
110 @Cacheable(value= Calendar.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'beginDate=' + #p1 + '|' + 'endDate=' + #p2")
111 public CalendarEntries getCurrentCalendarDatesForLeaveCalendar(String principalId, Date beginDate, Date endDate);
112
113
114
115
116
117
118
119 @Cacheable(value= Calendar.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'currentDate=' + #p1")
120 public CalendarEntries getCurrentCalendarDatesForLeaveCalendar(String principalId, Date currentDate);
121
122 public List<Calendar> getCalendars(String calendarName, String calendarTypes, String flsaBeginDay, String flsaBeginTime);
123
124 }