|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.sourceMap.BasicSourceMap
com.raritantechnologies.searchApp.sourceMap.DynamicSourceMap
Provides a two-stage search source map. An initial set of search parameters is used to generate a search result which is then used by a subsequent SourceMap. The initial search source can be any RTI SearchSource ( or QueryProcessorFilter ).
Examples: Choose sources based on user identity by using an
LDAPSearchSource for the initial search.
<Object type="DynamicSourceMap" name="[ SourceMap Name ]" sourceName="[ SearchSource name ]"
userParamsOnly="true|false"
proxySourceFirst="true|false(default) - if true check proxy source first ]" >
<!-- Describes how to translate the initial source map query for use by
the lookup SearchSource -->
<QueryInputMap userNameParam="user name field in search source"
passwordParam="password field in search source" >
<!-- ====================================================================================== -->
<!-- One or more QueryParam Elements: The input attribute describes what parameter to use to -->
<!-- extract a value from the input source, the 'output' parameter describes the parameter -->
<!-- to use at the lookup source. -->
<!-- ====================================================================================== -->
<QueryParam input="input param" output="query param" />
<QueryParam input="another input param" output="another query param" />
</QueryInputMap>
<UserInputMap>
<!-- ====================================================================================== -->
<!-- One or more UserParam Elements: The input attribute describes what parameter to use to -->
<!-- extract a value from the user attribute list, the 'output' parameter describes the -->
<!-- parameter name to use at the lookup source. -->
<!-- ====================================================================================== -->
<UserParam input="input param" output="query param" />
<UserParam input="another input param" output="another query param" />
</UserInputMap>
<!-- Used to translate search result to source map input parameter set.
If not present, result fields are used directly -->
<SearchResultMap>
<!-- One or more ResultParam elements: -->
<ResultParam input="result param" output="source map param" />
<!-- Can have a StringFilter associated with it: -->
<ResultParam input="result param" output="source map param" >
<StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >
</StringFilter>
</ResultParam>
</SearchResultMap>
<!-- Default sources to return if no inputs returned -->
<DefaultSources>
<!-- One or more Source elements -->
<Source>
<!-- See SourceInput configuration -->
</Source>
</DefaultSources>
<!-- Proxy source map -->
<ProxySourceMap class="[ class of com.raritantechnologies.searchApp.sourceMap.ISourceMap ]" params="..." >
<!-- Initialization parameters for proxy source map -->
</ProxySourceMap>
</Object>
| Constructor Summary | |
DynamicSourceMap()
|
|
| Method Summary | |
java.lang.String[] |
getAllSourceKeys(ILoginInfo userInfo,
boolean checkSecurity,
java.util.Map searchParams)
returns a list of all of the source names - links to SearchSource in the ISearchFieldMap |
java.lang.String[] |
getAllSourceNames()
returns a list of all of the source names - links to SearchSource in the ISearchFieldMap |
java.lang.String |
getObjectType()
Returns the type of Source that the source map supports. |
SourceInput[] |
getSourceInputs(ILoginInfo userInfo,
IResult result)
Finds a set of source inputs based on a search result. |
SourceInput[] |
getSourceInputs(ILoginInfo userInfo,
java.util.Map searchParams)
Looks up the set of federated sources that are appropriate for the parameter set chosen by the user. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
| Methods inherited from class com.raritantechnologies.searchApp.sourceMap.BasicSourceMap |
addSourceInputs, getDescription, getDisplayName, getPageCacheStyle, getSourceInputs, getSourceInputs, setPageCacheStyle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DynamicSourceMap()
| Method Detail |
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurableinitialize in class BasicSourceMappublic java.lang.String getObjectType()
ISourceMap
getObjectType in interface ISourceMapgetObjectType in class BasicSourceMappublic java.lang.String[] getAllSourceNames()
public java.lang.String[] getAllSourceKeys(ILoginInfo userInfo,
boolean checkSecurity,
java.util.Map searchParams)
BasicSourceMap
getAllSourceKeys in interface ISourceMapgetAllSourceKeys in class BasicSourceMap
public SourceInput[] getSourceInputs(ILoginInfo userInfo,
java.util.Map searchParams)
ISourceMap
getSourceInputs in interface ISourceMapgetSourceInputs in class BasicSourceMap
public SourceInput[] getSourceInputs(ILoginInfo userInfo,
IResult result)
BasicSourceMap
getSourceInputs in interface ISourceMapgetSourceInputs in class BasicSourceMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||