com.raritantechnologies.searchApp.taglibrary
Class RoleBasedPageImportRenderer
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.PageImportRenderer
com.raritantechnologies.searchApp.taglibrary.RoleBasedPageImportRenderer
- All Implemented Interfaces:
- IConfigurable, IPageContextRenderer
- public class RoleBasedPageImportRenderer
- extends PageImportRenderer
Imports external HTML fragments into a page - dependent on the user's role.
Use <SystemObject> for configuration. Type="PageImportRenderer".
XML Configuration Template:
<SystemObject type="PageImportRenderer" name="[The SysObject Name]"
configurableClass="com.raritantechnologies.searchApp.taglibrary.RoleBasedPageImportRenderer"
addPersistentParams="true|false"
defaultRole="RD" >
<PageElements>
<PageElement>
<Header>[The header html]</Header>
<Trailer>[The trailer html]</Trailer>
<Body fileName="[theBodyFilename]" />
</PageElement>
</PageElements>
</SystemObject>
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
| Methods inherited from class com.raritantechnologies.searchApp.taglibrary.PageImportRenderer |
addPageElement, getAddPersistent, getConfigurationXML, getPage, getPageHeader, getPageName, getPageTrailer, render, setAddPersistent, setPageHeader, setPageName, setPageTrailer, setStringFilter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleBasedPageImportRenderer
public RoleBasedPageImportRenderer()
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable- Overrides:
initialize in class PageImportRenderer
getFragmentFile
public java.lang.String getFragmentFile(PageImportRenderer.PageElement pe,
RaritanPageContext rpc)
- Get the fragment file name, with the current roll prefixed to the
filename.
- Overrides:
getFragmentFile in class PageImportRenderer