1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.actionrequest.service; |
18 | |
|
19 | |
import org.kuali.rice.kew.actionrequest.ActionRequestValue; |
20 | |
import org.kuali.rice.kew.actionrequest.Recipient; |
21 | |
import org.kuali.rice.kew.actiontaken.ActionTakenValue; |
22 | |
import org.kuali.rice.kew.engine.ActivationContext; |
23 | |
import org.kuali.rice.kew.engine.node.RouteNodeInstance; |
24 | |
import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue; |
25 | |
|
26 | |
import java.util.Collection; |
27 | |
import java.util.List; |
28 | |
import java.util.Map; |
29 | |
import java.util.Set; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
public interface ActionRequestService { |
40 | |
public ActionRequestValue initializeActionRequestGraph(ActionRequestValue actionRequest, DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance); |
41 | |
|
42 | |
public void deactivateRequest(ActionTakenValue actionTaken, ActionRequestValue actionRequest); |
43 | |
|
44 | |
public void deactivateRequests(ActionTakenValue actionTaken, List actionRequests); |
45 | |
|
46 | |
public void deactivateRequest(ActionTakenValue actionTaken, ActionRequestValue actionRequest, boolean simulate); |
47 | |
|
48 | |
public void deactivateRequest(ActionTakenValue actionTaken, ActionRequestValue actionRequest, ActivationContext activationContext); |
49 | |
|
50 | |
public void deactivateRequests(ActionTakenValue actionTaken, List actionRequests, boolean simulate); |
51 | |
|
52 | |
public void deactivateRequests(ActionTakenValue actionTaken, List actionRequests, ActivationContext activationContext); |
53 | |
|
54 | |
public void deleteActionRequestGraph(ActionRequestValue actionRequest); |
55 | |
|
56 | |
public List findAllValidRequests(String principalId, String documentId, String requestCode); |
57 | |
|
58 | |
public List findAllValidRequests(String principalId, Collection actionRequests, String requestCode); |
59 | |
|
60 | |
public List<ActionRequestValue> findPendingByDoc(String documentId); |
61 | |
|
62 | |
public void saveActionRequest(ActionRequestValue actionRequest); |
63 | |
|
64 | |
public void activateRequest(ActionRequestValue actionRequest); |
65 | |
|
66 | |
public void activateRequest(ActionRequestValue actionRequest, boolean simulate); |
67 | |
|
68 | |
public void activateRequest(ActionRequestValue actionRequest, ActivationContext activationContext); |
69 | |
|
70 | |
public void activateRequests(Collection actionRequests); |
71 | |
|
72 | |
public void activateRequests(Collection actionRequests, boolean simulate); |
73 | |
|
74 | |
public void activateRequests(Collection actionRequests, ActivationContext activationContext); |
75 | |
|
76 | |
public List activateRequestNoNotification(ActionRequestValue actionRequest, boolean simulate); |
77 | |
|
78 | |
public List activateRequestNoNotification(ActionRequestValue actionRequest, ActivationContext activationContext); |
79 | |
|
80 | |
public ActionRequestValue findByActionRequestId(String actionRequestId); |
81 | |
|
82 | |
public List<ActionRequestValue> findPendingRootRequestsByDocId(String documentId); |
83 | |
|
84 | |
public List<ActionRequestValue> findPendingRootRequestsByDocIdAtRouteLevel(String documentId, Integer routeLevel); |
85 | |
|
86 | |
public List<ActionRequestValue> findPendingByDocIdAtOrBelowRouteLevel(String documentId, Integer routeLevel); |
87 | |
|
88 | |
public List<ActionRequestValue> findPendingRootRequestsByDocIdAtOrBelowRouteLevel(String documentId, Integer routeLevel); |
89 | |
|
90 | |
public List<ActionRequestValue> findPendingRootRequestsByDocumentType(String documentTypeId); |
91 | |
|
92 | |
public List<ActionRequestValue> findAllActionRequestsByDocumentId(String documentId); |
93 | |
|
94 | |
public List<ActionRequestValue> findAllRootActionRequestsByDocumentId(String documentId); |
95 | |
|
96 | |
public List<ActionRequestValue> findPendingByActionRequestedAndDocId(String actionRequestedCdCd, String documentId); |
97 | |
|
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
|
106 | |
public List<String> getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId(String actionRequestedCd, String documentId); |
107 | |
|
108 | |
public List<ActionRequestValue> findByStatusAndDocId(String statusCd, String documentId); |
109 | |
|
110 | |
public void alterActionRequested(List actionRequests, String actionRequestCd); |
111 | |
|
112 | |
public List<ActionRequestValue> findByDocumentIdIgnoreCurrentInd(String documentId); |
113 | |
|
114 | |
public List findActivatedByGroup(String groupId); |
115 | |
|
116 | |
public void updateActionRequestsForResponsibilityChange(Set<String> responsibilityIds); |
117 | |
|
118 | |
public ActionRequestValue getRoot(ActionRequestValue actionRequest); |
119 | |
|
120 | |
public List<ActionRequestValue> getRootRequests(Collection<ActionRequestValue> actionRequests); |
121 | |
|
122 | |
public boolean isDuplicateRequest(ActionRequestValue actionRequest); |
123 | |
|
124 | |
public List<ActionRequestValue> findPendingByDocRequestCdRouteLevel(String documentId, String requestCode, Integer routeLevel); |
125 | |
|
126 | |
public List findPendingByDocRequestCdNodeName(String documentId, String requestCode, String nodeName); |
127 | |
|
128 | |
|
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
public abstract List<ActionRequestValue> findAllPendingRequests(String documentId); |
134 | |
|
135 | |
|
136 | |
|
137 | |
|
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
public abstract List<ActionRequestValue> filterActionRequestsByCode(List<ActionRequestValue> actionRequests, String principalId, List<String> principalGroupIds, String requestCode); |
145 | |
|
146 | |
|
147 | |
|
148 | |
|
149 | |
public Recipient findDelegator(List actionRequests); |
150 | |
|
151 | |
|
152 | |
|
153 | |
|
154 | |
public Recipient findDelegator(ActionRequestValue actionRequest); |
155 | |
|
156 | |
public ActionRequestValue findDelegatorRequest(ActionRequestValue actionRequest); |
157 | |
|
158 | |
public void deleteByDocumentId(String documentId); |
159 | |
|
160 | |
public void deleteByActionRequestId(String actionRequestId); |
161 | |
|
162 | |
public void validateActionRequest(ActionRequestValue actionRequest); |
163 | |
|
164 | |
public List<ActionRequestValue> findPendingRootRequestsByDocIdAtRouteNode(String documentId, String nodeInstanceId); |
165 | |
|
166 | |
public List<ActionRequestValue> findRootRequestsByDocIdAtRouteNode(String documentId, String nodeInstanceId); |
167 | |
|
168 | |
public List getDelegateRequests(ActionRequestValue actionRequest); |
169 | |
|
170 | |
|
171 | |
|
172 | |
|
173 | |
|
174 | |
public List getTopLevelRequests(ActionRequestValue actionRequest); |
175 | |
|
176 | |
public boolean isValidActionRequestCode(String actionRequestCode); |
177 | |
|
178 | |
|
179 | |
|
180 | |
|
181 | |
public boolean doesPrincipalHaveRequest(String principalId, String documentId); |
182 | |
|
183 | |
public Map<String, String> getActionsRequested(DocumentRouteHeaderValue routeHeader, String principalId, boolean completeAndApproveTheSame); |
184 | |
} |