com.raritantechnologies.searchApp.resultComparators
Class ResultMatcherFilter

java.lang.Object
  extended bycom.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
      extended bycom.raritantechnologies.searchApp.resultComparators.ResultMatcherFilter
All Implemented Interfaces:
ICollectionIndexer, IConfigurable, IGatewayOutputProcessor, IResultSetFilter, IResultSetProcessor

public class ResultMatcherFilter
extends GatewayProcessorFilter
implements IResultSetFilter

GatewayProcessorFilter that uses an IResultMatcher to filter a result set.

XML Configuration Template: (GatewayOutputProcessor)
  <GatewayOutputProcessor class"com.raritantechnologies.searchApp.resultComparators.ResultMatcherFilter" >

     <ResultMatcher class="[implementation of IResultMatcher]" >
       <!-- parameters required by first matcher -->
     </ResultMatcher>

     <OutputProcessor class="[ class of com.raritantechnologies.dataCollection.IGatewayOutputProcessor ]" >

     <OutputProcessor>

   </GatewayOutputProcessor>
 
XML Configuration Template: (IResultSetFilter)
  <ResultSetFilter class"com.raritantechnologies.searchApp.resultComparators.ResultMatcherFilter" >

     <ResultMatcher class="[implementation of IResultMatcher]" >
       <!-- parameters required by first matcher -->
     </ResultMatcher>

  </ResultSetFilter>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
postProcessorFilters
 
Fields inherited from interface com.raritantechnologies.searchApp.IResultSetFilter
TEMPLATE
 
Fields inherited from interface com.raritantechnologies.searchApp.dataCollection.ICollectionIndexer
ADD, CREATE, DELETE, UPDATE
 
Constructor Summary
ResultMatcherFilter()
           
ResultMatcherFilter(IResultMatcher matcher)
           
ResultMatcherFilter(IResultMatcher matcher, ILoginInfo user)
           
 
Method Summary
protected  IResultSet filterData(IResultSet data)
           
 IResultSet filterResultSet(java.lang.String sessionID, IResultSet data)
          Filter the IResultSet (somehow)
 void initialize(org.w3c.dom.Element elem)
          Initialize the from XML Element.
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 void setResultMatcher(IResultMatcher matcher)
           
 void setUser(ILoginInfo user)
           
 
Methods inherited from class com.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
addOutputProcessor, addPostProcessor, dataComplete, filterResultSet, getConfigurationXML, initialize, processData, processResultSet, sendToOutput, setIndexMode, setUserMatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultMatcherFilter

public ResultMatcherFilter()

ResultMatcherFilter

public ResultMatcherFilter(IResultMatcher matcher)

ResultMatcherFilter

public ResultMatcherFilter(IResultMatcher matcher,
                           ILoginInfo user)
Method Detail

filterData

protected IResultSet filterData(IResultSet data)
Overrides:
filterData in class GatewayProcessorFilter

filterResultSet

public IResultSet filterResultSet(java.lang.String sessionID,
                                  IResultSet data)
Description copied from interface: IResultSetFilter
Filter the IResultSet (somehow)

Specified by:
filterResultSet in interface IResultSetFilter

setUser

public void setUser(ILoginInfo user)

setResultMatcher

public void setResultMatcher(IResultMatcher matcher)
Overrides:
setResultMatcher in class GatewayProcessorFilter

initialize

public void initialize(org.w3c.dom.Element outputProcElem,
                       ISearchFieldMap sfMap)
Description copied from interface: IGatewayOutputProcessor
Initialize the GatewayOutputProcessor from XML Configuration Element.

Specified by:
initialize in interface IGatewayOutputProcessor
Overrides:
initialize in class GatewayProcessorFilter

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IResultSetFilter
Initialize the from XML Element.

Specified by:
initialize in interface IResultSetFilter
Overrides:
initialize in class GatewayProcessorFilter