1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.principal.service;
17
18 import java.util.Date;
19 import java.util.List;
20 import org.kuali.hr.time.principal.PrincipalHRAttributes;
21 import org.springframework.cache.annotation.Cacheable;
22
23 public interface PrincipalHRAttributesService {
24
25
26
27
28
29
30 @Cacheable(value= PrincipalHRAttributes.CACHE_NAME, key="'principalId=' + #p0 + '|' + 'asOfDate=' + #p1")
31 public PrincipalHRAttributes getPrincipalCalendar(String principalId, Date asOfDate);
32
33
34
35
36
37
38
39 public PrincipalHRAttributes getInactivePrincipalHRAttributes(String principalId, Date asOfDate);
40
41
42
43
44
45 public PrincipalHRAttributes getPrincipalHRAttributes(String hrPrincipalAttributeId);
46
47 public List<PrincipalHRAttributes> getAllActivePrincipalHrAttributesForPrincipalId(String principalId, Date asOfDate);
48
49 public List<PrincipalHRAttributes> getAllInActivePrincipalHrAttributesForPrincipalId(String principalId, Date asOfDate);
50
51 public PrincipalHRAttributes getMaxTimeStampPrincipalHRAttributes(String principalId);
52
53
54
55
56 public List<PrincipalHRAttributes> getActivePrincipalHrAttributesForRange(String principalId, Date startDate, Date endDate);
57
58
59
60 public List<PrincipalHRAttributes> getInactivePrincipalHRAttributesForRange(String principalId, Date startDate, Date endDate);
61
62
63
64
65
66
67
68
69
70 public List<PrincipalHRAttributes> getPrincipalHrAtributes(String principalId, java.sql.Date fromEffdt, java.sql.Date toEffdt,String active, String showHistory);
71 }