com.raritantechnologies.exalead.taglibrary
Class ExaleadTaxonomyRenderer

java.lang.Object
  extended bycom.raritantechnologies.exalead.taglibrary.ExaleadTaxonomyRenderer
All Implemented Interfaces:
IConfigurable, ISearchElementRenderer, ITreeNodeHyperlinkRenderer

public class ExaleadTaxonomyRenderer
extends java.lang.Object
implements ISearchElementRenderer, ITreeNodeHyperlinkRenderer

Renders a Taxonomy for Exalead results. Exalead uses a "Drill-Down" or Search within paradigm for taxonomies. To show a taxonomy BEFORE the search therefore requires that we know the full taxonomy - which is the taxonomy that was created at build or update time.

XML Configuration Template:
  <SearchElementRenderer
     rendererClass="com.raritantechnologies.exalead.taglibrary.ExaleadTaxonomyRenderer" >

    <!-- Builds the full taxonomy tree (used for initial search) -->
    <FullTreeBuilder class="[ class of com.raritantechnologies.utils.tree.ITreeBuilder ]" >

    </FullTreeBuilder>

    <TreeRenderer class="[ class of com.raritantechnologies.utils.tree.taglibrary.ITreeRenderer ]" >

    </TreeRenderer>

  </SearchElementRenderer>
 


Constructor Summary
ExaleadTaxonomyRenderer()
           
 
Method Summary
 java.lang.String getBody(ISearchFormRenderer parent, RaritanPageContext pageContext)
          Returns the element html fragment.
 java.lang.String getHyperlink(java.lang.String targetURL, TreeNode treeNode, OrderedMap searchAttributes)
           
 ISearchElementRenderer getRenderer(java.lang.String name)
          Returns ISearchElementRenderer of this render or a nested renderer matching the name given or null if no match is found.
 void initialize(org.w3c.dom.Element elem)
          Initialize renderer-specific parameters from the configuration XML tag.
 void setEnable(boolean enabled)
          Enable/Disable the renderer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.raritantechnologies.searchApp.taglibrary.ISearchElementRenderer
isHidden
 
Methods inherited from interface com.raritantechnologies.utils.tree.ITreeNodeHyperlinkRenderer
getHyperlink
 

Constructor Detail

ExaleadTaxonomyRenderer

public ExaleadTaxonomyRenderer()
Method Detail

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: ISearchElementRenderer
Initialize renderer-specific parameters from the configuration XML tag.

Specified by:
initialize in interface ISearchElementRenderer

getBody

public java.lang.String getBody(ISearchFormRenderer parent,
                                RaritanPageContext pageContext)
Description copied from interface: ISearchElementRenderer
Returns the element html fragment.

Specified by:
getBody in interface ISearchElementRenderer

getHyperlink

public java.lang.String getHyperlink(java.lang.String targetURL,
                                     TreeNode treeNode,
                                     OrderedMap searchAttributes)

setEnable

public void setEnable(boolean enabled)
Description copied from interface: ISearchElementRenderer
Enable/Disable the renderer. Disabled renderers are not included in the html output of an ISearchFormRenderer.

Specified by:
setEnable in interface ISearchElementRenderer

getRenderer

public ISearchElementRenderer getRenderer(java.lang.String name)
Description copied from interface: ISearchElementRenderer
Returns ISearchElementRenderer of this render or a nested renderer matching the name given or null if no match is found.

Specified by:
getRenderer in interface ISearchElementRenderer