1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.core.calendar.service;
17
18 import java.util.List;
19
20 import org.joda.time.LocalDate;
21 import org.kuali.kpme.core.calendar.Calendar;
22 import org.springframework.cache.annotation.Cacheable;
23
24 public interface CalendarService {
25
26
27
28
29
30 @Cacheable(value= Calendar.CACHE_NAME, key="'hrCalendarId=' + #p0")
31 public Calendar getCalendar(String hrCalendarId);
32
33
34
35
36
37
38 @Cacheable(value= Calendar.CACHE_NAME, key="'calendarName=' + #p0")
39 public Calendar getCalendarByGroup(String calendarName);
40
41
42
43
44
45
46
47
48 public Calendar getCalendarByPrincipalIdAndDate(String principalId, LocalDate asOfDate, boolean findLeaveCal);
49
50
51
52
53
54
55
56
57 public Calendar getCalendarByPrincipalIdAndDate(String principalId, LocalDate beginDate, LocalDate endDate, boolean findLeaveCal);
58
59 public Calendar getCalendarByName(String calendarName);
60
61 public List<Calendar> getCalendars(String calendarName, String calendarTypes, String flsaBeginDay, String flsaBeginTime);
62
63 }