1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.docsearch;
17
18 import java.sql.ResultSet;
19 import java.sql.SQLException;
20 import java.util.Map;
21
22 import org.kuali.rice.kew.api.document.attribute.DocumentAttribute;
23 import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue;
24
25
26
27
28
29
30
31
32 public interface SearchableAttributeValue {
33
34 public String getAttributeDataType();
35
36 public String getAttributeTableName();
37
38 public boolean allowsWildcards();
39
40 public boolean allowsCaseInsensitivity();
41
42 public boolean allowsRangeSearches();
43
44 public boolean isPassesDefaultValidation(String valueEntered);
45
46 public Boolean isRangeValid(String lowerValue, String upperValue);
47
48 public void setupAttributeValue(String value);
49
50 public void setupAttributeValue(ResultSet resultSet, String columnName) throws SQLException;
51
52 public String getSearchableAttributeDisplayValue();
53
54 public String getOjbConcreteClass();
55
56 public void setOjbConcreteClass(String ojbConcreteClass);
57
58 public DocumentRouteHeaderValue getRouteHeader();
59
60 public void setRouteHeader(DocumentRouteHeaderValue routeHeader);
61
62 public String getDocumentId();
63
64 public void setDocumentId(String documentId);
65
66 public String getSearchableAttributeKey();
67
68 public void setSearchableAttributeKey(String searchableAttributeKey);
69
70 public String getSearchableAttributeValueId();
71
72 public void setSearchableAttributeValueId(String searchableAttributeValueId);
73
74 public Object getSearchableAttributeValue();
75
76 public DocumentAttribute toDocumentAttribute();
77 }