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 java.util.List;
19
20 import org.joda.time.LocalDate;
21 import org.kuali.kpme.core.assignment.Assignment;
22
23 public interface AssignmentDao {
24
25
26
27
28
29
30
31
32
33 public List<Assignment> findAssignments(String principalId, LocalDate asOfDate);
34
35
36
37
38 public void saveOrUpdate(Assignment assignment);
39
40
41
42
43 public void saveOrUpdate(List<Assignment> assignments);
44
45
46
47
48
49 public void delete(Assignment assignment);
50
51
52
53
54
55
56
57 public List<Assignment> getActiveAssignmentsInWorkArea(Long workArea, LocalDate asOfDate);
58
59 public List<Assignment> getActiveAssignmentsInWorkAreas(List<Long> workAreas, LocalDate asOfDate);
60
61 public Assignment getAssignment(String tkAssignmentId);
62
63 public Assignment getAssignmentForTargetPrincipal(Long job, Long workArea, Long task, LocalDate asOfDate);
64
65 public List<Assignment> getActiveAssignments(LocalDate asOfDate);
66
67 public Assignment getAssignment(String principalId, Long jobNumber, Long workArea, Long task, LocalDate asOfDate);
68
69
70
71
72
73
74
75
76
77 public List<Assignment> getActiveAssignmentsForJob(String principalId, Long jobNumber, LocalDate asOfDate);
78
79 List<Assignment> findAssignmentsWithinPeriod(String principalId, LocalDate startDate, LocalDate endDate);
80
81 List<Assignment> searchAssignments(LocalDate fromEffdt, LocalDate toEffdt, String principalId, String jobNumber,
82 String dept, String workArea, String active, String showHistory);
83
84 public Assignment getMaxTimestampAssignment(String principalId);
85
86 public List<String> getPrincipalIds(List<String> workAreaList, LocalDate effdt, LocalDate startDate, LocalDate endDate);
87
88 public List<Assignment> getAssignments(List<String> workAreaList, LocalDate effdt, LocalDate startDate, LocalDate endDate);
89 }