1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.accrual.service;
17
18 import org.kuali.hr.time.accrual.TimeOffAccrual;
19 import org.kuali.hr.time.timeblock.TimeBlock;
20 import org.kuali.hr.time.timesheet.TimesheetDocument;
21 import org.springframework.cache.annotation.Cacheable;
22
23 import java.sql.Date;
24 import java.util.List;
25 import java.util.Map;
26
27 public interface TimeOffAccrualService {
28
29
30
31
32
33
34 @Cacheable(value= TimeOffAccrual.CACHE_NAME, key="'{getTimeOffAccrualsCalc}' + 'principalId=' + #p0 + '|' + 'asOfDate=' + #p1")
35 public List<Map<String, Object>> getTimeOffAccrualsCalc(String principalId, Date asOfDate);
36
37
38
39
40
41
42
43 public List<String> validateAccrualHoursLimit(TimesheetDocument timesheetDocument);
44
45 public List<String> validateAccrualHoursLimit(String pId, List<TimeBlock> tbList, Date asOfDate);
46
47
48
49
50
51
52
53 public List<String> validateAccrualHoursLimitByEarnCode(TimesheetDocument timesheetDocument, String selectEarnCode);
54
55
56
57
58
59
60 @Cacheable(value= TimeOffAccrual.CACHE_NAME, key="'laTimeOffAccrualId=' + #p0")
61 public TimeOffAccrual getTimeOffAccrual(Long laTimeOffAccrualId);
62
63 @Cacheable(value= TimeOffAccrual.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'asOfDate=' + #p1")
64 public List<TimeOffAccrual> getTimeOffAccruals(String principalId, Date asOfDate);
65
66
67
68
69
70
71
72
73
74 public int getTimeOffAccrualCount(String accrualCategory, Date effectiveDate, String principalId, String lmAccrualId);
75
76 List<TimeOffAccrual> getTimeOffAccruals(String principalId, String accrualCategory);
77 }