com.raritantechnologies.federated.verity.webServices
Class UpdateVerityCacheResultFilter

java.lang.Object
  extended bycom.raritantechnologies.federated.verity.webServices.UpdateVerityCacheResultFilter
All Implemented Interfaces:
IConfigurable, IResultSetFilter

public class UpdateVerityCacheResultFilter
extends java.lang.Object
implements IResultSetFilter

Updates a Verity WebServices Federator SearchResponseMessage in Raritan session cache. Used to pass information to a Verity Federator Web Service application from the RTI Framework, "in process". XML Configuration Template:

  <ResultSetFilter class="com.raritantechnologies.federated.verity.webServices.UpdateVerityCacheResultFilter" 
                      searchResponseCacheName="[ name of the cached Verity SearchResultMessage object ]"
                      rtiMatchField="[ field in Raritan IResult that matches on a Verity federator Result ]"
                      verityMatchField="[ field in Verity federator Result used for matching ]"
                      delimiter="[ delimiter for multiple values ]" >

    <!-- List of fields that will be added to Verity Result -->
    <UpdateFields>
      <Field rtiField="[ field in Raritan IResult ]"
                verityField="[ optional field name for verity: if absent will use rtiField name ]" />

      <Field rtiField="[ field in Raritan IResult ]"
                verityField="[ optional field name for verity: if absent will use rtiField name ]" >

        <StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >

        </StringFilter>
      </Field>
    </UpdateFields>
  </ResultSetFilter>
 


Field Summary
 
Fields inherited from interface com.raritantechnologies.searchApp.IResultSetFilter
TEMPLATE
 
Constructor Summary
UpdateVerityCacheResultFilter()
           
 
Method Summary
 IResultSet filterResultSet(java.lang.String sessionID, IResultSet data)
          Filters a Raritan ResultSet by adding fields to a Verity Federator SearchResponseMessage from an RTI IResult.
 void initialize(org.w3c.dom.Element configElem)
          Initialize the from XML Element.
 void updateResult(IResult rtiResult, Result vResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateVerityCacheResultFilter

public UpdateVerityCacheResultFilter()
Method Detail

filterResultSet

public IResultSet filterResultSet(java.lang.String sessionID,
                                  IResultSet data)
Filters a Raritan ResultSet by adding fields to a Verity Federator SearchResponseMessage from an RTI IResult. The SearchResponseMessage is assumed to be stored in session cache.

Specified by:
filterResultSet in interface IResultSetFilter

updateResult

public void updateResult(IResult rtiResult,
                         Result vResult)

initialize

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

Specified by:
initialize in interface IResultSetFilter