1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.api.time.timehourdetail;
17
18 import org.kuali.kpme.tklm.api.time.timeblock.TimeBlock;
19 import org.kuali.kpme.tklm.api.time.timehourdetail.TimeHourDetail;
20 import org.springframework.cache.annotation.CacheEvict;
21 import org.springframework.cache.annotation.Caching;
22
23 import java.util.List;
24
25
26 public interface TimeHourDetailService{
27
28
29
30
31
32 public TimeHourDetail getTimeHourDetail(String timeHourDetailId);
33
34
35
36
37
38 @Caching(evict = {
39 @CacheEvict(value={TimeBlock.CACHE_NAME}, allEntries = true)
40 })
41 public TimeHourDetail saveTimeHourDetail(TimeBlock timeBlock);
42
43
44
45
46 @Caching(evict = {
47 @CacheEvict(value={TimeBlock.CACHE_NAME}, allEntries = true)
48 })
49 public void removeTimeHourDetails(String timeBlockId);
50
51
52
53
54
55
56 public List<TimeHourDetail> getTimeHourDetailsForTimeBlock(String timeBlockId);
57
58
59 void removeTimeHourDetail(String timeHourDetailId);
60 }