1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.kew.docsearch;
18
19 import org.kuali.rice.kew.docsearch.StandardDocumentSearchGenerator;
20 import org.kuali.rice.kew.doctype.bo.DocumentType;
21
22
23
24
25
26
27 public class CustomDocumentSearchGenerator extends StandardDocumentSearchGenerator {
28
29 public static final int RESULT_SET_LIMIT = 5000;
30
31
32
33
34 @Override
35 public void addExtraDocumentTypesToSearch(StringBuffer whereSql, DocumentType docType) {
36 if ("SearchDocType_DefaultCustomProcessor_2".equals(docType.getName())) {
37 addDocumentTypeNameToSearchOn(whereSql, "SearchDocType_DefaultCustomProcessor");
38 } else if ("SearchDocType_DefaultCustomProcessor".equals(docType.getName())) {
39 addDocumentTypeNameToSearchOn(whereSql, "SearchDocType_DefaultCustomProcessor_2");
40 }
41 }
42
43 @Override
44 public int getDocumentSearchResultSetLimit() {
45 return RESULT_SET_LIMIT;
46 }
47
48 }