1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.job.service;
17
18 import org.kuali.hr.job.Job;
19 import org.springframework.cache.annotation.CacheEvict;
20 import org.springframework.cache.annotation.Cacheable;
21
22 import java.math.BigDecimal;
23 import java.util.Date;
24 import java.util.List;
25
26 public interface JobService {
27
28
29
30
31
32 @CacheEvict(value={Job.CACHE_NAME}, allEntries = true)
33 public void saveOrUpdate(Job job);
34
35
36
37
38
39 @CacheEvict(value={Job.CACHE_NAME}, allEntries = true)
40 public void saveOrUpdate(List<Job> jobList);
41
42
43
44
45
46
47
48
49
50
51
52
53
54 @Cacheable(value= Job.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'asOfDate=' + #p1")
55 public List<Job> getJobs(String principalId, Date asOfDate);
56
57
58
59
60 @Cacheable(value= Job.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'jobNumber=' + #p1 + '|' + 'asOfDate=' + #p2")
61 public Job getJob(String principalId, Long jobNumber, Date asOfDate);
62
63
64
65
66 @Cacheable(value= Job.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'jobNumber=' + #p1 + '|' + 'asOfDate=' + #p2 + '|' + 'chkDetails=' + #p3")
67 public Job getJob(String principalId, Long jobNumber, Date asOfDate, boolean chkDetails);
68
69
70
71
72
73
74
75
76
77 @Cacheable(value= Job.CACHE_NAME, key="'{getPrimaryJob}' + 'principalId=' + #p0 + '|' + 'asOfDate=' + #p1")
78 public Job getPrimaryJob(String principalId, Date asOfDate);
79
80
81
82
83
84
85
86 @Cacheable(value= Job.CACHE_NAME, key="'positionNbr=' + #p0 + '|' + 'asOfDate=' + #p1")
87 public List<Job> getActiveJobsForPosition(String positionNbr, Date asOfDate);
88
89
90
91
92
93
94
95 @Cacheable(value= Job.CACHE_NAME, key="'hrPayType=' + #p0 + '|' + 'asOfDate=' + #p1")
96 public List<Job> getActiveJobsForPayType(String hrPayType, Date asOfDate);
97
98
99
100
101
102
103 @Cacheable(value= Job.CACHE_NAME, key="'hrJobId=' + #p0")
104 public Job getJob(String hrJobId);
105
106
107
108
109
110
111 @Cacheable(value= Job.CACHE_NAME, key="'principalId=' + #p0")
112 public Job getMaxJob(String principalId);
113
114 List<Job> getJobs(String principalId, String firstName, String lastName, String jobNumber,
115 String dept, String positionNbr, String payType,
116 java.sql.Date fromEffdt, java.sql.Date toEffdt, String active, String showHistory);
117
118 public int getJobCount(String principalId, Long jobNumber, String dept);
119
120
121
122
123
124
125
126 public BigDecimal getStandardHoursSumForJobs(List<Job> jobs);
127
128
129 }