com.raritantechnologies.utils.tagging
Class CollectionGatewayTagSource

java.lang.Object
  extended bycom.raritantechnologies.utils.tagging.CollectionGatewayTagSource
All Implemented Interfaces:
IConfigurable, IHyperlinkTagSource, InitializableSystemObject

public class CollectionGatewayTagSource
extends java.lang.Object
implements IHyperlinkTagSource, InitializableSystemObject

Uses a ICollectionGateway to load terms for tagging. Extracts the tag values from a result field.

XML Configuration Template:
   <TagSource class="com.raritantechnologies.utils.tagging.CollectionGatewayTagSource"
                 name="[unique name for this TagSource]"
                 action="[URL of hyperlink action]"
                 tagTermField="[ name of result field to extract tag(s) from ]" >

      <CollectionGateway class="[ class of com.raritantechnologies.searchApp.dataCollection.ICollectionGateway ]">

      </CollectionGateway>

      <!-- Optional ResultSetProcessor -->
      <ResultSetProcessor class="[ com.raritantechnologies.searchApp.IResultSetProcessor ]" >

      </ResultSetProcessor>

      <!-- Defines the list of parameters that will be extracted from the tagging search source result -->
      <!-- and added to the final tagged http request. -->
      <RequestParams>
        <Param ID="[field id in IResult]" name="[request param name]" />
        <Param ID="[ another result field]" name="[another request param]" />
      </RequestParams>

      <-- Defines a set of optional fixed parameters that will be added to the final tagged http request -->
      <FixedParams>
         <Param name="[request param name]" value="[fixed value]" />
         <Param name="[another param name]" value="[another value]" />
      </FixedParams>

      <!-- optional TermExtractor that will extract terms from search results -->
      <TermExtractor class="[ class of com.raritantechnologies.utils.tagging.ITermExtractor ]" >
        <!-- configuration parameters of TermExtractor -->
      </TermExtractor>

      <!-- Internal list of excluded terms ... -->
      <ExcludedTerms delimiter="[ delimiter (default is comma ',') ]" caseSensitive="[ true(default)|false ]" >
        [delimited list of terms that should not be added]
      </ExcludedTerms>

      <ExcludedTerms fileName="[ name of file with list of excluded terms (one per line ) ]" caseSensitive="[ true(default)|false ]" />

   </TagSource>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
CollectionGatewayTagSource()
           
 
Method Summary
 java.util.HashMap getTagWords()
          returns a HashMap of first tag word --> URLWordsTagger
 void init()
           
 void initialize(org.w3c.dom.Element elem)
          Initialize TagWriter from an XML configuation element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionGatewayTagSource

public CollectionGatewayTagSource()
Method Detail

init

public void init()
Specified by:
init in interface InitializableSystemObject

getTagWords

public java.util.HashMap getTagWords()
Description copied from interface: IHyperlinkTagSource
returns a HashMap of first tag word --> URLWordsTagger

Specified by:
getTagWords in interface IHyperlinkTagSource

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IHyperlinkTagSource
Initialize TagWriter from an XML configuation element.

Specified by:
initialize in interface IHyperlinkTagSource