com.raritantechnologies.searchApp.queryFilters
Class ResultSelector
java.lang.Object
com.raritantechnologies.searchApp.QueryProcessorFilter
com.raritantechnologies.searchApp.queryFilters.ResultSelector
- All Implemented Interfaces:
- IQueryProcessor
- public class ResultSelector
- extends QueryProcessorFilter
Selects Results from the search result IResultSet based
on a set of accept/reject comparisons or criteria defined by an IResultMatcher
object.
XML Configuration Template:
<SourceType name="filteredSourceName" type="QueryProcessorFilterSource"
sourceFactoryClass = "com.raritantechnologies.searchApp.QueryProcessorFilterFactory"
filterClass = "com.raritantechnologies.searchApp.queryFilters.ResultSelector"
inputSource = "realSourceName"
cacheParams="[ search params for cache key ]"
acivateOn="[ param=value to activate ResultSelector ]" >
<ResultMatcher class="[The IResultMatcher class...]" >
<!-- configuration parameters used by the ResultMatcher -->
</ResultMatcher>
<!-- Alternatively: can use a QueryResultMatcher (not both) -->
<QueryResultMatcher class="[The IQueryResultMatcher class...]" >
<!-- configuration parameters used by the ResultMatcher -->
</QueryResultMatcher>
</SourceType>
Developed by
Raritan Technologies .
- 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 initElem)
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 |
ResultSelector
public ResultSelector()
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
initialize
public void initialize(org.w3c.dom.Element initElem)
- Description copied from class:
QueryProcessorFilter
- subclasses should override this to initialize themselves.
- Overrides:
initialize in class QueryProcessorFilter