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