1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.time.rules.graceperiod.service;
17
18 import java.util.List;
19
20 import org.joda.time.DateTime;
21 import org.joda.time.LocalDate;
22 import org.kuali.kpme.tklm.time.rules.graceperiod.GracePeriodRule;
23 import org.springframework.cache.annotation.Cacheable;
24
25 public interface GracePeriodService {
26
27
28
29
30
31 @Cacheable(value= GracePeriodRule.CACHE_NAME, key="'asOfDate=' + #p0")
32 public GracePeriodRule getGracePeriodRule(LocalDate asOfDate);
33
34
35
36
37
38
39 public DateTime processGracePeriodRule(DateTime actualDateTime, LocalDate asOfDate);
40
41
42
43
44
45
46 @Cacheable(value= GracePeriodRule.CACHE_NAME, key="'tkGracePeriodId=' + #p0")
47 public GracePeriodRule getGracePeriodRule(String tkGracePeriodId);
48
49 List<GracePeriodRule> getGracePeriodRules(String hourFactor, String active, String showHistory);
50 }