1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.core.assignment.dao;
17
18 import org.joda.time.LocalDate;
19 import org.kuali.kpme.core.assignment.AssignmentBo;
20
21 import java.util.List;
22
23 public interface AssignmentDao {
24
25
26
27
28
29
30
31
32
33 public List<AssignmentBo> findAssignments(String principalId, LocalDate asOfDate);
34
35
36
37
38 public void saveOrUpdate(AssignmentBo assignment);
39
40
41
42
43 public void saveOrUpdate(List<AssignmentBo> assignments);
44
45
46
47
48
49 public void delete(AssignmentBo assignment);
50
51
52
53
54
55
56
57 public List<AssignmentBo> getActiveAssignmentsInWorkArea(Long workArea, LocalDate asOfDate);
58
59 public List<AssignmentBo> getActiveAssignmentsInWorkAreas(List<Long> workAreas, LocalDate asOfDate);
60
61 public AssignmentBo getAssignment(String tkAssignmentId);
62
63 public AssignmentBo getAssignmentForTargetPrincipal(String groupKeyCode, Long job, Long workArea, Long task, LocalDate asOfDate);
64
65 public List<AssignmentBo> getActiveAssignments(LocalDate asOfDate);
66
67 public AssignmentBo getAssignment(String principalId, String groupKeyCode, Long jobNumber, Long workArea, Long task, LocalDate asOfDate);
68
69
70
71
72
73
74
75
76
77 public List<AssignmentBo> getActiveAssignmentsForJob(String principalId, Long jobNumber, LocalDate asOfDate);
78
79 List<AssignmentBo> findAssignmentsWithinPeriod(String principalId, LocalDate startDate, LocalDate endDate);
80
81 public AssignmentBo getMaxTimestampAssignment(String principalId);
82
83 public List<String> getPrincipalIds(List<String> workAreaList, LocalDate effdt, LocalDate startDate, LocalDate endDate);
84
85 public List<AssignmentBo> getAssignments(List<String> workAreaList, LocalDate effdt, LocalDate startDate, LocalDate endDate);
86
87 public List<AssignmentBo> findAssignmentsHistoryForPeriod(String principalId, LocalDate startDate, LocalDate endDate);
88
89 public List<AssignmentBo> findAssignmentsWithinPeriod(String principalId, LocalDate startDate, LocalDate endDate, boolean requireActive);
90 }
91