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.doctype.bo.DocumentType;
20
21
22
23
24
25
26 public class CustomDocumentSearchGenerator extends StandardDocumentSearchGenerator {
27
28 public static final int RESULT_SET_LIMIT = 5000;
29
30
31
32
33 @Override
34 public void addExtraDocumentTypesToSearch(StringBuffer whereSql, DocumentType docType) {
35 if ("SearchDocType_DefaultCustomProcessor_2".equals(docType.getName())) {
36 addDocumentTypeNameToSearchOn(whereSql, "SearchDocType_DefaultCustomProcessor");
37 } else if ("SearchDocType_DefaultCustomProcessor".equals(docType.getName())) {
38 addDocumentTypeNameToSearchOn(whereSql, "SearchDocType_DefaultCustomProcessor_2");
39 }
40 }
41
42 @Override
43 public int getDocumentSearchResultSetLimit() {
44 return RESULT_SET_LIMIT;
45 }
46
47 }