com.raritantechnologies.searchApp.sourceMap
Class SourceInput

java.lang.Object
  extended bycom.raritantechnologies.searchApp.sourceMap.SourceInput

public class SourceInput
extends java.lang.Object

Defines a pre-configured or "focused" search source. Used as the target of a source mapped search.

XML Configuration Template:
  <Source name="TheSourceName" >
    <Field name="AFieldName" value="ItsValue" />
    <Field name="AnotherField" value="TheValue" />
  </Source>
 

SourceInputs can also be contructed from previous search results. For this to succeed, the parameter fields in the result output must map to input fields expected by the source mapped search source. A ResultFieldQueryProcessorFilter (com.raritantechnologies.searchApp.queryFilters package ) can be used to do this mapping if the native results from the original source are not directly mappable.


Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
SourceInput(org.w3c.dom.Element sourceElem)
           
SourceInput(IResult searchResult)
          A source input can be constructed from a search result: search result must have a "SearchSource" parameter and a a set of name=value parameters that will become the input parameters to the source mapped source.
SourceInput(java.lang.String name)
           
SourceInput(java.lang.String name, OrderedMap initParams)
           
 
Method Summary
 void addInitParam(java.lang.String paramName, java.lang.String paramValue)
           
 OrderedMap getInitParams()
           
 java.lang.String getSecurityManager()
           
 java.lang.String getSourceName()
           
 void setSecurityManager(java.lang.String securityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceInput

public SourceInput(java.lang.String name)

SourceInput

public SourceInput(java.lang.String name,
                   OrderedMap initParams)

SourceInput

public SourceInput(IResult searchResult)
A source input can be constructed from a search result: search result must have a "SearchSource" parameter and a a set of name=value parameters that will become the input parameters to the source mapped source.

For this to succeed, the parameter fields in the result output must map to input fields expected by the source mapped search source. A QueryProcessorFilter can be used to do this mapping if the native results from the original source are not mappable.


SourceInput

public SourceInput(org.w3c.dom.Element sourceElem)
Method Detail

addInitParam

public void addInitParam(java.lang.String paramName,
                         java.lang.String paramValue)

getSourceName

public java.lang.String getSourceName()

getInitParams

public OrderedMap getInitParams()

setSecurityManager

public void setSecurityManager(java.lang.String securityManager)

getSecurityManager

public java.lang.String getSecurityManager()