1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.routeheader.dao;
17
18 import org.kuali.rice.kew.docsearch.SearchableAttributeValue;
19 import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue;
20 import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValueContent;
21
22 import java.util.Collection;
23 import java.util.Set;
24
25
26
27
28 public interface DocumentRouteHeaderDAO {
29
30
31
32
33 void lockRouteHeader(String documentId);
34
35 DocumentRouteHeaderValue findRouteHeader(String documentId, boolean clearCache);
36
37 Collection<DocumentRouteHeaderValue> findRouteHeaders(Collection<String> documentIds);
38
39 Collection<DocumentRouteHeaderValue> findRouteHeaders(Collection<String> documentIds, boolean clearCache);
40
41 String getNextDocumentId();
42
43 Collection<String> findPendingByResponsibilityIds(Set<String> responsibilityIds);
44
45 void clearRouteHeaderSearchValues(String documentId);
46
47 Collection<SearchableAttributeValue> findSearchableAttributeValues(String documentId);
48
49 String getApplicationIdByDocumentId(String documentId);
50
51 DocumentRouteHeaderValueContent getContent(String documentId);
52
53 boolean hasSearchableAttributeValue(String documentId, String searchableAttributeKey,
54 String searchableAttributeValue);
55
56 String getDocumentStatus(String documentId);
57
58 void save(SearchableAttributeValue searchableAttribute);
59
60 String getAppDocId(String documentId);
61
62 String getAppDocStatus(String documentId);
63
64 Collection findByDocTypeAndAppId(String documentTypeName, String appId);
65
66 }