1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.actionlist.service;
17
18 import java.util.Collection;
19 import java.util.List;
20
21 import org.kuali.rice.kew.actionitem.ActionItem;
22 import org.kuali.rice.kew.actionitem.ActionItemActionListExtension;
23 import org.kuali.rice.kew.actionitem.OutboxItemActionListExtension;
24 import org.kuali.rice.kew.actionlist.ActionListFilter;
25 import org.kuali.rice.kew.actionrequest.ActionRequestValue;
26 import org.kuali.rice.kew.actionrequest.Recipient;
27
28
29
30
31
32
33
34
35
36
37 public interface ActionListService {
38 public ActionItem createActionItemForActionRequest(ActionRequestValue actionRequest);
39
40 public Collection<ActionItemActionListExtension> getActionList(String principalId, ActionListFilter filter);
41
42 public Collection<ActionItemActionListExtension> getActionListForSingleDocument(String documentId);
43
44
45
46
47
48
49 public Collection<Recipient> findUserSecondaryDelegators(String principalId);
50
51
52
53
54
55
56 public Collection<Recipient> findUserPrimaryDelegations(String principalId);
57
58 public void saveActionItem(ActionItem actionItem);
59
60 public void deleteActionItem(ActionItem actionItem);
61
62 public void deleteActionItem(ActionItem actionItem, boolean forceIntoOutbox);
63
64 public void deleteByDocumentId(String documentId);
65
66 public Collection<ActionItem> findByPrincipalId(String principalId);
67
68 public Collection<ActionItem> findByWorkflowUserDocumentId(String workflowUserId, String documentId);
69
70 public Collection<ActionItem> findByDocumentId(String documentId);
71
72 public Collection<ActionItem> findByDocumentTypeName(String documentTypeName);
73
74 public void updateActionItemsForTitleChange(String documentId, String newTitle);
75
76 public void validateActionItem(ActionItem actionItem);
77
78 public ActionItem findByActionItemId(String actionItemId);
79
80
81
82
83 public int getCount(String principalId);
84
85
86
87
88
89
90 public List<Object> getMaxActionItemDateAssignedAndCountForUser(String principalId);
91
92 public Collection<ActionItem> findByActionRequestId(String actionRequestId);
93
94
95
96
97
98
99
100
101
102 public Collection<OutboxItemActionListExtension> getOutbox(String principalId, ActionListFilter filter);
103 public Collection<OutboxItemActionListExtension> getOutboxItemsByDocumentType(String documentTypeName);
104 public void removeOutboxItems(String principalId, List<String> outboxItems);
105 public void saveOutboxItem(ActionItem actionItem);
106 public void saveOutboxItem(ActionItem actionItem, boolean forceIntoOutbox);
107 }