1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.routeheader.service; |
17 | |
|
18 | |
import java.math.BigDecimal; |
19 | |
import java.sql.Timestamp; |
20 | |
import java.util.Collection; |
21 | |
import java.util.List; |
22 | |
import java.util.Map; |
23 | |
import java.util.Set; |
24 | |
|
25 | |
import org.kuali.rice.kew.api.action.ActionItem; |
26 | |
import org.kuali.rice.kew.docsearch.SearchableAttributeValue; |
27 | |
import org.kuali.rice.kew.doctype.bo.DocumentType; |
28 | |
import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue; |
29 | |
import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValueContent; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
public interface RouteHeaderService { |
40 | |
|
41 | |
public DocumentRouteHeaderValue getRouteHeader(String documentId); |
42 | |
public DocumentRouteHeaderValue getRouteHeader(String documentId, boolean clearCache); |
43 | |
public Collection<DocumentRouteHeaderValue> getRouteHeaders (Collection<String> documentIds); |
44 | |
public Collection<DocumentRouteHeaderValue> getRouteHeaders (Collection<String> documentIds, boolean clearCache); |
45 | |
public Map<String,DocumentRouteHeaderValue> getRouteHeadersForActionItems(Collection<ActionItem> actionItems); |
46 | |
public void lockRouteHeader(String documentId, boolean wait); |
47 | |
public void saveRouteHeader(DocumentRouteHeaderValue routeHeader); |
48 | |
public void deleteRouteHeader(DocumentRouteHeaderValue routeHeader); |
49 | |
public String getNextDocumentId(); |
50 | |
public void validateRouteHeader(DocumentRouteHeaderValue routeHeader); |
51 | |
public Collection findPendingByResponsibilityIds(Set responsibilityIds); |
52 | |
public Collection findByDocTypeAndAppId(String documentTypeName, String appId); |
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
public void clearRouteHeaderSearchValues(String documentId); |
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
public void updateRouteHeaderSearchValues(String documentId, List<SearchableAttributeValue> searchAttributes); |
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
public String getApplicationIdByDocumentId(String documentId); |
70 | |
|
71 | |
public DocumentRouteHeaderValueContent getContent(String documentId); |
72 | |
|
73 | |
public boolean hasSearchableAttributeValue(String documentId, String searchableAttributeKey, String searchableAttributeValue); |
74 | |
|
75 | |
public String getDocumentStatus(String documentId); |
76 | |
|
77 | |
public String getAppDocId(String documentId); |
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
public List<String> getSearchableAttributeStringValuesByKey(String documentId, String key); |
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
|
95 | |
|
96 | |
public List<Timestamp> getSearchableAttributeDateTimeValuesByKey(String documentId, String key); |
97 | |
|
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
public List<BigDecimal> getSearchableAttributeFloatValuesByKey(String documentId, String key); |
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
|
114 | |
public List<Long> getSearchableAttributeLongValuesByKey(String documentId, String key); |
115 | |
|
116 | |
} |