MainJavadocExampleSource
BrowseListOutputProcessor

com.raritantechnologies.searchApp.browse
Class BrowseListOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.searchApp.browse.BrowseListOutputProcessor
All Implemented Interfaces:
IGatewayOutputProcessor

public class BrowseListOutputProcessor
extends java.lang.Object
implements IGatewayOutputProcessor

Creates a browse list from a set of RTI IResults as part of a ICollectionGateway initiated data collection / processing pipeline.

Includes a IBrowseListWriter to store the browse list output. Can contain a IResultMatcher to filter the results that generate browse list entries and a IStringFilter to filter the browse entries before adding them to the browse list and another string filter to transform the displayable format of the browse entry.

XML Configuration Template:
   <GatewayOutputProcessor class="com.raritantechnologies.searchApp.browse.BrowseListOutputProcessor"
                              resultField="[ result field that contains browse term(s) ]"
                              browseField="[ name of field in browse list (if omitted browseField == resultField ]"
                              searchSourceName="[ name of associated search source ]"
                              newBrowseList="true(default)|false"
                              oneCountPerRecord="true|false(default)" >

     <BrowseListWriter class="[ class of com.raritantechnologies.searchApp.browse.IBrowseListWriter ]" >

     </BrowseListWriter>

     <ResultMatcher class="[ class of com.raritantechnologies.searchApp.IResultMatcher" >

     </ResultMatcher>

     <!-- Optional String filter to transform the main term for sorting purposes -->
     <SortFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >

     </SortFilter>

     <!-- Optional String filter to transform the main term -->
     <TermFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >

     </TermFilter>

     <!-- Optional String filter to transform the term display -->
     <DisplayFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >

     </DisplayFilter>

   </GatewayOutputProcessor>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
BrowseListOutputProcessor()
           
 
Method Summary
 voiddataComplete()
          Data feed is complete.
 java.lang.StringgetConfigurationXML()
           
 voidinitialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 voidinitialize(java.util.Map initParams)
          Used for dynamic initialization (connection, collection name, file name, etc.)
 java.lang.StringprocessData(IResultSet data)
          returns name of XML File created/appended.
 voidsetBrowseField(java.lang.String browseField)
           
 voidsetBrowseListWriter(IBrowseListWriter browseListWriter)
           
 voidsetResultField(java.lang.String resultField)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowseListOutputProcessor

public BrowseListOutputProcessor()
Method Detail

setResultField

public void setResultField(java.lang.String resultField)

setBrowseField

public void setBrowseField(java.lang.String browseField)

setBrowseListWriter

public void setBrowseListWriter(IBrowseListWriter browseListWriter)

processData

public java.lang.String processData(IResultSet data)
Description copied from interface: IGatewayOutputProcessor
returns name of XML File created/appended.

Specified by:
processData in interface IGatewayOutputProcessor

dataComplete

public void dataComplete()
Description copied from interface: IGatewayOutputProcessor
Data feed is complete.

Specified by:
dataComplete in interface IGatewayOutputProcessor

initialize

public void initialize(java.util.Map initParams)
Description copied from interface: IGatewayOutputProcessor
Used for dynamic initialization (connection, collection name, file name, etc.)

Specified by:
initialize in interface IGatewayOutputProcessor

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

getConfigurationXML

public java.lang.String getConfigurationXML()
Specified by:
getConfigurationXML in interface IGatewayOutputProcessor