com.raritantechnologies.searchApp.queryFilters
Class SelectionFilter
java.lang.Object
com.raritantechnologies.searchApp.QueryProcessorFilter
com.raritantechnologies.searchApp.queryFilters.SelectionFilter
- All Implemented Interfaces:
- IQueryProcessor
- public class SelectionFilter
- extends QueryProcessorFilter
Composite QueryProcessorFilter which does different
things depending on the Request or Result parameter settings.
XML Configuration Template:
<SourceType name="filteredResults"
type="QueryProcessorFilterSource"
sourceFactoryClass = "com.raritantechnologies.searchApp.QueryProcessorFilterFactory"
filterClass = "com.raritantechnologies.searchApp.queryFilters.SelectionFilter"
inputSource = "Filter Source" >
<UseFilter >
<!-- Request Parameters condition or conditions that will activate this queryProcessor Filter -->
<RequestParams>
<Param name="taxField_1">
<ValidValues> <!-- Any of these values will activate the element renderer -->
<Value>Relvant/path/to/activate/this/query Filter</Value>
<Value>Another/path/that/can/activate/this/query Filter</Value>
</ValidValues>
</Param>
<!-- If the above field is valid, check this field (fields are ANDed) -->
<Param name="select_field">
<ValidValues> <!-- Any of these values will activate the Query Filter: -->
<Value>Book</Value>
<Value>Magazine</Value>
</ValidValues>
</Param>
</RequestParams>
<!-- Nested Filter to use if the above criterion are matched -->
<QueryProcessorFilter filterClass ="A real QueryProcessorFilter goes here]" >
<!-- parameters needed by the nested renderer -- >
</QueryProcessorFilter>
</UseFilter>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
Method Summary |
IResultSet |
executeQuery(java.lang.Integer queryID,
ISearchFieldMap searchMap,
SourceLoginInfo[] sources,
OrderedMap inputParameters,
java.lang.Integer pageSize,
java.lang.Integer startRec)
Base implementation executes the query then starts filter chain. |
void |
initialize(org.w3c.dom.Element elem)
subclasses should override this to initialize themselves. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectionFilter
public SelectionFilter()
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from class:
QueryProcessorFilter
- subclasses should override this to initialize themselves.
- Overrides:
initialize in class QueryProcessorFilter
executeQuery
public IResultSet executeQuery(java.lang.Integer queryID,
ISearchFieldMap searchMap,
SourceLoginInfo[] sources,
OrderedMap inputParameters,
java.lang.Integer pageSize,
java.lang.Integer startRec)
throws QueryProcessorException
- Description copied from class:
QueryProcessorFilter
- Base implementation executes the query then starts filter chain.
- Specified by:
executeQuery in interface IQueryProcessor- Overrides:
executeQuery in class QueryProcessorFilter
- Throws:
QueryProcessorException