com.raritantechnologies.searchApp.query
Class ResultToQueryRenderer
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.BasicResultRenderer
com.raritantechnologies.searchApp.query.ResultToQueryRenderer
- All Implemented Interfaces:
- IConfigurable, IPreferencesBeanInfo, IResultRenderer
- public class ResultToQueryRenderer
- extends BasicResultRenderer
- implements IResultRenderer
Converts a Result into a Query -
First builds an OrderedMap from the result fields
Second renders the map using an IQueryFormatter.
Used by UserLogDisplayForm to display user's queries.
XML Configuration Template:
<ResultRenderer class="com.raritantechnologies.query.ResultToQueryRenderer" >
<!-- Optional mapping or selection -->
<Field resultField="fieldID in Result" queryField="field in query" />
<QueryFormatter class="[ class of com.raritantechnologies.searchApp.query.IQueryFormatter ]" >
</QueryFormatter>
</ResultRenderer>
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultToQueryRenderer
public ResultToQueryRenderer()
doRenderResult
protected java.lang.String doRenderResult(IResult result,
int firstResult,
int lastResult,
int resultNum,
RaritanPageContext pageContext)
- Specified by:
doRenderResult in class BasicResultRenderer
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IResultRenderer
- IResultRenderers are XML configurable.
- Specified by:
initialize in interface IResultRenderer- Overrides:
initialize in class BasicResultRenderer
getConfigurationXML
public java.lang.String getConfigurationXML()
- Specified by:
getConfigurationXML in interface IResultRenderer
getConfigurationXML
public java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
- Specified by:
getConfigurationXML in interface IResultRenderer