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
40 ActionRequestValue initializeActionRequestGraph(ActionRequestValue actionRequest, DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance);
41
42 List<ActionRequestValue> findAllValidRequests(String principalId, String documentId, String requestCode);
43
44 List<ActionRequestValue> findAllValidRequests(String principalId, List<ActionRequestValue> actionRequests, String requestCode);
45
46 List<ActionRequestValue> findPendingByDoc(String documentId);
47
48 ActionRequestValue saveActionRequest(ActionRequestValue actionRequest);
49
50 ActionRequestValue activateRequest(ActionRequestValue actionRequest);
51
52 ActionRequestValue activateRequest(ActionRequestValue actionRequest, boolean simulate);
53
54 ActionRequestValue activateRequest(ActionRequestValue actionRequest, ActivationContext activationContext);
55
56 List<ActionRequestValue> activateRequests(List<ActionRequestValue> actionRequests);
57
58 List<ActionRequestValue> activateRequests(List<ActionRequestValue> actionRequests, boolean simulate);
59
60 List<ActionRequestValue> activateRequests(List<ActionRequestValue> actionRequests, ActivationContext activationContext);
61
62 ActionRequestValue activateRequestNoNotification(ActionRequestValue actionRequest, ActivationContext activationContext);
63
64 ActionRequestValue deactivateRequest(ActionTakenValue actionTaken, ActionRequestValue actionRequest);
65
66 List<ActionRequestValue> deactivateRequests(ActionTakenValue actionTaken, List<ActionRequestValue> actionRequests);
67
68 ActionRequestValue deactivateRequest(ActionTakenValue actionTaken, ActionRequestValue actionRequest, ActivationContext activationContext);
69
70 List<ActionRequestValue> deactivateRequests(ActionTakenValue actionTaken, List<ActionRequestValue> actionRequests, boolean simulate);
71
72 List<ActionRequestValue> deactivateRequests(ActionTakenValue actionTaken, List<ActionRequestValue> actionRequests, ActivationContext activationContext);
73
74 void deleteActionRequestGraph(ActionRequestValue actionRequest);
75
76 void deleteActionRequestGraphNoOutbox(ActionRequestValue actionRequest);
77
78 ActionRequestValue findByActionRequestId(String actionRequestId);
79
80 List<ActionRequestValue> findPendingRootRequestsByDocId(String documentId);
81
82 List<ActionRequestValue> findPendingRootRequestsByDocumentType(String documentTypeId);
83
84 List<ActionRequestValue> findAllActionRequestsByDocumentId(String documentId);
85
86 List<ActionRequestValue> findAllRootActionRequestsByDocumentId(String documentId);
87
88 List<ActionRequestValue> findPendingByActionRequestedAndDocId(String actionRequestedCdCd, String documentId);
89
90
91
92
93 List<String> getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId(String actionRequestedCd, String documentId);
94
95 List<ActionRequestValue> findByStatusAndDocId(String statusCd, String documentId);
96
97 List<ActionRequestValue> findByDocumentIdIgnoreCurrentInd(String documentId);
98
99 List<ActionRequestValue> findActivatedByGroup(String groupId);
100
101 void updateActionRequestsForResponsibilityChange(Set<String> responsibilityIds);
102
103 ActionRequestValue getRoot(ActionRequestValue actionRequest);
104
105 List<ActionRequestValue> getRootRequests(Collection<ActionRequestValue> actionRequests);
106
107 List<ActionRequestValue> findPendingByDocRequestCdNodeName(String documentId, String requestCode, String nodeName);
108
109
110
111
112
113
114 List<ActionRequestValue> findAllPendingRequests(String documentId);
115
116
117
118
119
120
121
122
123
124
125 List<ActionRequestValue> filterActionRequestsByCode(List<ActionRequestValue> actionRequests, String principalId, List<String> principalGroupIds, String requestCode);
126
127
128
129
130 Recipient findDelegator(List<ActionRequestValue> actionRequests);
131
132 ActionRequestValue findDelegatorRequest(ActionRequestValue actionRequest);
133
134 List<ActionRequestValue> findPendingRootRequestsByDocIdAtRouteNode(String documentId, String nodeInstanceId);
135
136 List<ActionRequestValue> findRootRequestsByDocIdAtRouteNode(String documentId, String nodeInstanceId);
137
138 List<ActionRequestValue> getDelegateRequests(ActionRequestValue actionRequest);
139
140
141
142
143
144 List<ActionRequestValue> getTopLevelRequests(ActionRequestValue actionRequest);
145
146
147
148
149 boolean doesPrincipalHaveRequest(String principalId, String documentId);
150
151 Map<String, String> getActionsRequested(DocumentRouteHeaderValue routeHeader, String principalId, boolean completeAndApproveTheSame);
152
153 ActionRequestValue getActionRequestForRole(String actionTakenId);
154 }