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 public void applyDepartmentLunchRule(List<TimeBlock> timeblocks);
47
48
49
50
51
52
53 @Cacheable(value= DeptLunchRule.CACHE_NAME, key="'tkDeptLunchRuleId=' + #p0")
54 public DeptLunchRule getDepartmentLunchRule(String tkDeptLunchRuleId);
55
56 List<DeptLunchRule> getDepartmentLunchRules(String dept, String workArea, String principalId, String jobNumber, String active);
57 }