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 import org.kuali.rice.kew.impl.document.lookup.DocumentLookupGeneratorImpl;
21
22
23
24
25
26 public class CustomDocumentLookupGeneratorImpl extends DocumentLookupGeneratorImpl {
27
28 @Override
29 public void addExtraDocumentTypesToSearch(StringBuilder whereSql, DocumentType docType) {
30 if ("SearchDocType_DefaultCustomProcessor_2".equals(docType.getName())) {
31 addDocumentTypeNameToSearchOn(whereSql, "SearchDocType_DefaultCustomProcessor");
32 } else if ("SearchDocType_DefaultCustomProcessor".equals(docType.getName())) {
33 addDocumentTypeNameToSearchOn(whereSql, "SearchDocType_DefaultCustomProcessor_2");
34 }
35 }
36
37 }