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