1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.time.rules.timecollection.service;
17
18 import java.util.List;
19
20 import org.joda.time.LocalDate;
21 import org.kuali.kpme.tklm.time.rules.timecollection.TimeCollectionRule;
22 import org.springframework.cache.annotation.Cacheable;
23
24 public interface TimeCollectionRuleService {
25
26 @Cacheable(value= TimeCollectionRule.CACHE_NAME,
27 key="'dept=' + #p0" +
28 "+ '|' + 'workArea=' + #p1" +
29 "+ '|' + 'payType=' + #p2" +
30 "+ '|' + 'asOfDate=' + #p3")
31 public TimeCollectionRule getTimeCollectionRule(String dept, Long workArea, String payType, LocalDate asOfDate);
32
33 @Cacheable(value= TimeCollectionRule.CACHE_NAME, key="'tkTimeCollectionRuleId=' + #p0")
34 public TimeCollectionRule getTimeCollectionRule(String tkTimeCollectionRuleId);
35
36 List<TimeCollectionRule> getTimeCollectionRules(String userPrincipalId, String dept, String workArea, String payType, String active, String showHistory);
37 }