1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.task.service;
17
18
19 import org.kuali.hr.time.task.Task;
20 import org.springframework.cache.annotation.CacheEvict;
21 import org.springframework.cache.annotation.Cacheable;
22
23 import java.sql.Date;
24 import java.util.List;
25
26 public interface TaskService {
27
28
29
30
31
32 @Cacheable(value= Task.CACHE_NAME, key="'tkTaskId=' + #p0")
33 public Task getTask(String tkTaskId);
34
35
36
37
38
39
40 @Cacheable(value= Task.CACHE_NAME, key="'task=' + #p0 + '|' + 'asOfDate=' + #p1")
41 public Task getTask(Long task, Date asOfDate);
42
43
44
45
46 @CacheEvict(value={Task.CACHE_NAME}, allEntries = true)
47 public void saveTask(Task task);
48
49
50
51
52 @CacheEvict(value={Task.CACHE_NAME}, allEntries = true)
53 public void saveTasks(List<Task> tasks);
54
55 public Task getMaxTask();
56
57 List<Task> getTasks(String task, String description, String workArea, Date fromEffdt, Date toEffdt);
58
59
60
61
62
63
64 public int getTaskCount(Long task);
65 }