1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.assignment.service;
17
18 import org.kuali.hr.lm.leavecalendar.LeaveCalendarDocument;
19 import org.kuali.hr.time.assignment.Assignment;
20 import org.kuali.hr.time.assignment.AssignmentDescriptionKey;
21 import org.kuali.hr.time.calendar.CalendarEntries;
22 import org.kuali.hr.time.timesheet.TimesheetDocument;
23 import org.springframework.cache.annotation.Cacheable;
24
25 import java.sql.Date;
26 import java.util.List;
27 import java.util.Map;
28
29 public interface AssignmentService {
30
31
32
33
34
35
36 @Cacheable(value= Assignment.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'asOfDate=' + #p1")
37 public List<Assignment> getAssignments(String principalId, Date asOfDate);
38
39
40
41
42
43
44 public Assignment getAssignment(TimesheetDocument timesheetDocument, String assignmentKey);
45
46
47
48
49
50 @Cacheable(value= Assignment.CACHE_NAME, key="'tkAssignmentId=' + #p0")
51 public Assignment getAssignment(String tkAssignmentId);
52
53
54
55
56
57 public AssignmentDescriptionKey getAssignmentDescriptionKey(String assignmentDesc);
58
59
60
61
62
63
64 public Map<String,String> getAssignmentDescriptions(TimesheetDocument td, boolean clockOnlyAssignments);
65
66
67
68
69
70 public Map<String,String> getAssignmentDescriptions(Assignment assignment);
71
72
73
74
75
76
77 @Cacheable(value= Assignment.CACHE_NAME, key="'workArea=' + #p0 + '|' + 'asOfDate=' + #p1")
78 public List<Assignment> getActiveAssignmentsForWorkArea(Long workArea, Date asOfDate);
79
80
81
82
83
84
85
86
87 @Cacheable(value= Assignment.CACHE_NAME, key="'asOfDate=' + #p0")
88 public List<Assignment> getActiveAssignments(Date asOfDate);
89
90
91
92
93
94
95
96 public Assignment getAssignment(AssignmentDescriptionKey key, Date asOfDate);
97
98
99
100
101
102
103
104
105
106 public Assignment getAssignment(String principalId, AssignmentDescriptionKey key, Date asOfDate);
107
108
109
110
111
112
113
114 public List<Assignment> getAssignmentsByPayEntry(String principalId, CalendarEntries payCalendarEntry);
115
116
117
118
119
120
121 public List<Assignment> getAssignmentsByCalEntryForTimeCalendar(String principalId, CalendarEntries calendarEntry);
122
123
124
125
126
127
128 public List<Assignment> getAssignmentsByCalEntryForLeaveCalendar(String principalId, CalendarEntries calendarEntry);
129
130
131
132
133
134
135
136
137
138 @Cacheable(value= Assignment.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'jobNumber=' + #p1 + '|' + 'asOfDate=' + #p2")
139 public List<Assignment> getActiveAssignmentsForJob(String principalId, Long jobNumber, Date asOfDate);
140
141 List<Assignment> searchAssignments(Date fromEffdt, Date toEffdt, String principalId, String jobNumber,
142 String dept, String workArea, String active, String showHistory);
143
144
145
146
147
148
149
150
151 public Map<String,String> getAssignmentDescriptions(LeaveCalendarDocument lcd);
152
153
154
155
156
157
158 public Map<String, String> getAssignmentDescriptionsForAssignments(List<Assignment> assignments);
159
160 public Assignment getAssignment(LeaveCalendarDocument leaveCalendarDocument, String assignmentKey);
161
162 public Assignment getAssignment(List<Assignment> assignments, String assignmentKey, Date beginDate);
163
164 public Assignment getMaxTimestampAssignment(String principalId);
165
166
167
168
169
170
171
172
173 public List<Assignment> filterAssignments(List<Assignment> assignments, String flsaStatus, boolean chkForLeaveEligible);
174
175
176
177
178
179
180
181
182 public Assignment getAssignmentToApplyScheduledTimeOff(TimesheetDocument timesheetDocument, java.sql.Date payEndDate);
183
184
185
186
187
188
189
190
191 public List<String> getPrincipalIds(List<String> workAreaList, Date effdt, Date startDate, Date endDate);
192
193 public List<Assignment> getAssignments(List<String> workAreaList, Date effdt, Date startDate, Date endDate);
194 }