|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.sourceMap.BasicSourceMap
Represents a single set of SearchSources.
Maps a set of parameter=value pairs to one or more search sources.
Finds a set of search sources from a set of param=value values. The parameters can come from an incoming http request or user query or from user properties.
XML Configuration Template:
<Object type="BasicSourceMap" paramList="treepath,docType,subject"
securityManager="[ name of SecurityManager ]" >
<!-- Describes the context for a set of sources (one or more) -->
<SourceMap name="[ display name of source ]" >
<params>
<param name="treepath" value="Documents/Biology-Medicine/Anatomy/Head Neck" />
<param name="docType" value="Book" />
</params>
<Sources>
<Source name="WileyInterscienceBooks" >
<Field name="WileyBookSUBJECT-FIELD" value="Gray's Anatomy" />
<Field name="KY" value="neck muscles">
</Source>
</Sources>
</SourceMap>
<!-- Describes the query context for a second set of sources -->
<SourceMap name="[ display name of source ]" >
<!-- as above -->
</SourceMap>
<!-- etc... for as many different source types as needed -->
</Object>
| Constructor Summary | |
BasicSourceMap()
|
|
| Method Summary | |
void |
addSourceInputs(java.lang.String sourceKey,
SourceInput[] sourceInputs)
|
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 |
getDescription(java.lang.String sourceName)
|
java.lang.String |
getDisplayName(java.lang.String sourceKey)
|
java.lang.String |
getObjectType()
Returns the type of Source that the source map supports. |
int |
getPageCacheStyle(java.lang.String sourceKey)
|
SourceInput[] |
getSourceInputs(ILoginInfo userInfo,
IResult searchResult)
Finds a set of source inputs based on a search result. |
static SourceInput[] |
getSourceInputs(ILoginInfo userInfo,
IResult searchResult,
ISourceMap sourceMapImpl)
|
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. |
SourceInput[] |
getSourceInputs(java.lang.String sourceKey)
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
setPageCacheStyle(java.lang.String sourceKey,
int pagingStyle)
Sets/gets the paging style used by a federated source. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicSourceMap()
| Method Detail |
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurablepublic java.lang.String getObjectType()
ISourceMap
getObjectType in interface ISourceMap
public java.lang.String[] getAllSourceKeys(ILoginInfo userInfo,
boolean checkSecurity,
java.util.Map searchParams)
getAllSourceKeys in interface ISourceMap
public void addSourceInputs(java.lang.String sourceKey,
SourceInput[] sourceInputs)
addSourceInputs in interface ISourceMappublic SourceInput[] getSourceInputs(java.lang.String sourceKey)
getSourceInputs in interface ISourceMappublic java.lang.String getDisplayName(java.lang.String sourceKey)
getDisplayName in interface ISourceMap
public static SourceInput[] getSourceInputs(ILoginInfo userInfo,
IResult searchResult,
ISourceMap sourceMapImpl)
public SourceInput[] getSourceInputs(ILoginInfo userInfo,
IResult searchResult)
getSourceInputs in interface ISourceMap
public SourceInput[] getSourceInputs(ILoginInfo userInfo,
java.util.Map searchParams)
ISourceMap
getSourceInputs in interface ISourceMappublic java.lang.String getDescription(java.lang.String sourceName)
getDescription in interface ISourceMap
public void setPageCacheStyle(java.lang.String sourceKey,
int pagingStyle)
ISourceMap
setPageCacheStyle in interface ISourceMappublic int getPageCacheStyle(java.lang.String sourceKey)
getPageCacheStyle in interface ISourceMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||