1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.principal.service;
17
18 import java.util.Date;
19 import java.util.List;
20 import org.kuali.hr.time.principal.PrincipalHRAttributes;
21 import org.springframework.cache.annotation.Cacheable;
22
23 public interface PrincipalHRAttributesService {
24
25
26
27
28
29
30 @Cacheable(value= PrincipalHRAttributes.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'asOfDate=' + #p1")
31 public PrincipalHRAttributes getPrincipalCalendar(String principalId, Date asOfDate);
32
33
34
35
36
37
38
39 @Cacheable(value= PrincipalHRAttributes.CACHE_NAME, key="'payCalendarName=' + #p0 + '|' + 'asOfDate=' + #p1")
40 public List<PrincipalHRAttributes> getActiveEmployeesForPayCalendar(String payCalendarName, Date asOfDate);
41
42
43
44
45
46
47
48 @Cacheable(value= PrincipalHRAttributes.CACHE_NAME, key="'leaveCalendarName=' + #p0 + '|' + 'asOfDate=' + #p1")
49 public List<PrincipalHRAttributes> getActiveEmployeesForLeaveCalendar(String leaveCalendarName, Date asOfDate);
50
51
52
53
54
55
56
57
58 @Cacheable(value= PrincipalHRAttributes.CACHE_NAME, key="'leaveCalendarName=' + #p0 + '|' + 'asOfDate=' + #p1")
59 public List<String> getActiveEmployeesIdForLeaveCalendarAndIdList(String leaveCalendarName, List<String> pidList, Date asOfDate);
60
61
62
63
64
65
66
67
68 @Cacheable(value= PrincipalHRAttributes.CACHE_NAME, key="'timeCalendarName=' + #p0 + '|' + 'asOfDate=' + #p1")
69 public List<String> getActiveEmployeesIdForTimeCalendarAndIdList(String timeCalendarName, List<String> pidList, Date asOfDate);
70
71
72
73
74
75
76
77
78 @Cacheable(value= PrincipalHRAttributes.CACHE_NAME, key="'leavePlan=' + #p0 + '|' + 'asOfDate=' + #p1")
79 public List<PrincipalHRAttributes> getActiveEmployeesForLeavePlan(String leavePlan, Date asOfDate);
80
81
82
83
84
85
86
87 public PrincipalHRAttributes getInactivePrincipalHRAttributes(String principalId, Date asOfDate);
88
89
90
91
92
93 public PrincipalHRAttributes getPrincipalHRAttributes(String hrPrincipalAttributeId);
94
95 public List<PrincipalHRAttributes> getAllActivePrincipalHrAttributesForPrincipalId(String principalId, Date asOfDate);
96
97 public List<PrincipalHRAttributes> getAllInActivePrincipalHrAttributesForPrincipalId(String principalId, Date asOfDate);
98
99 public PrincipalHRAttributes getMaxTimeStampPrincipalHRAttributes(String principalId);
100
101
102
103
104 public List<PrincipalHRAttributes> getActivePrincipalHrAttributesForRange(String principalId, Date startDate, Date endDate);
105
106
107
108 public List<PrincipalHRAttributes> getInactivePrincipalHRAttributesForRange(String principalId, Date startDate, Date endDate);
109
110
111
112
113
114
115
116
117
118
119 public List<PrincipalHRAttributes> getPrincipalHrAtributes(String principalId, String leavePlan, java.sql.Date fromEffdt, java.sql.Date toEffdt, String active, String showHistory);
120
121
122
123
124 public List<String> getUniqueTimePayGroups();
125 }