1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.dept.lunch.service;
17
18 import java.sql.Date;
19 import java.util.List;
20
21 import org.kuali.hr.time.dept.lunch.DeptLunchRule;
22 import org.kuali.hr.time.timeblock.TimeBlock;
23 import org.springframework.cache.annotation.Cacheable;
24
25 public interface DepartmentLunchRuleService {
26
27
28
29
30
31
32
33
34
35 @Cacheable(value= DeptLunchRule.CACHE_NAME,
36 key="'dept=' + #p0" +
37 "+ '|' + 'workArea=' + #p1" +
38 "+ '|' + 'principalId=' + #p2" +
39 "+ '|' + 'jobNumber=' + #p3" +
40 "+ '|' + 'asOfDate=' + #p4")
41 public DeptLunchRule getDepartmentLunchRule(String dept, Long workArea, String principalId, Long jobNumber, Date asOfDate);
42
43
44
45
46
47
48
49
50
51
52
53 @Cacheable(value= DeptLunchRule.CACHE_NAME,
54 key="'{getEarnCodesForLeaveAndTime}'" +
55 "+ 'dept=' + #p0" +
56 "+ '|' + 'workArea=' + #p1" +
57 "+ '|' + 'principalId=' + #p2" +
58 "+ '|' + 'jobNumber=' + #p3" +
59 "+ '|' + 'asOfDate=' + #p4")
60 public DeptLunchRule getDepartmentLunchRuleNoWildCards(String dept, Long workArea, String principalId, Long jobNumber, Date asOfDate);
61
62
63
64
65 public void applyDepartmentLunchRule(List<TimeBlock> timeblocks);
66
67
68
69
70
71
72 @Cacheable(value= DeptLunchRule.CACHE_NAME, key="'tkDeptLunchRuleId=' + #p0")
73 public DeptLunchRule getDepartmentLunchRule(String tkDeptLunchRuleId);
74
75 List<DeptLunchRule> getDepartmentLunchRules(String dept, String workArea, String principalId, String jobNumber,
76 Date fromEffdt, Date toEffdt, String active, String showHistory);
77 }