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 org.kuali.rice.kew.api.action.ActionItem;
19 import org.kuali.rice.kew.docsearch.SearchableAttributeValue;
20 import org.kuali.rice.kew.doctype.bo.DocumentType;
21 import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue;
22 import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValueContent;
23
24 import java.math.BigDecimal;
25 import java.sql.Timestamp;
26 import java.util.Collection;
27 import java.util.List;
28 import java.util.Map;
29 import java.util.Set;
30
31
32
33
34
35
36
37
38
39 public interface RouteHeaderService {
40
41 DocumentRouteHeaderValue getRouteHeader(String documentId);
42
43 DocumentRouteHeaderValue getRouteHeader(String documentId, boolean clearCache);
44
45 Collection<DocumentRouteHeaderValue> getRouteHeaders (Collection<String> documentIds);
46
47 Collection<DocumentRouteHeaderValue> getRouteHeaders (Collection<String> documentIds, boolean clearCache);
48
49 Map<String,DocumentRouteHeaderValue> getRouteHeadersForActionItems(Collection<ActionItem> actionItems);
50
51 void lockRouteHeader(String documentId);
52
53 DocumentRouteHeaderValue saveRouteHeader(DocumentRouteHeaderValue routeHeader);
54
55 void deleteRouteHeader(DocumentRouteHeaderValue routeHeader);
56
57 String getNextDocumentId();
58
59 void validateRouteHeader(DocumentRouteHeaderValue routeHeader);
60
61 Collection findPendingByResponsibilityIds(Set responsibilityIds);
62
63 Collection findByDocTypeAndAppId(String documentTypeName, String appId);
64
65
66
67
68
69 void clearRouteHeaderSearchValues(String documentId);
70
71
72
73
74
75 void updateRouteHeaderSearchValues(String documentId, List<SearchableAttributeValue> searchAttributes);
76
77
78
79
80 String getApplicationIdByDocumentId(String documentId);
81
82 DocumentRouteHeaderValueContent getContent(String documentId);
83
84 boolean hasSearchableAttributeValue(String documentId, String searchableAttributeKey, String searchableAttributeValue);
85
86 String getDocumentStatus(String documentId);
87
88 String getAppDocId(String documentId);
89
90
91
92
93
94
95
96
97 String getAppDocStatus(String documentId);
98
99
100
101
102
103
104
105
106
107 List<String> getSearchableAttributeStringValuesByKey(String documentId, String key);
108
109
110
111
112
113
114
115
116 List<Timestamp> getSearchableAttributeDateTimeValuesByKey(String documentId, String key);
117
118
119
120
121
122
123
124
125 List<BigDecimal> getSearchableAttributeFloatValuesByKey(String documentId, String key);
126
127
128
129
130
131
132
133
134 List<Long> getSearchableAttributeLongValuesByKey(String documentId, String key);
135
136 }