com.raritantechnologies.portlet
Class SearchPortletHandler

java.lang.Object
  extended bycom.raritantechnologies.portlet.SearchPortletHandler
All Implemented Interfaces:
IConfigurable, IPortletActionHandler

public class SearchPortletHandler
extends java.lang.Object
implements IPortletActionHandler

Portlet ActionHandler that executes a search against a SearchSource.

XML Configuration Template:
   <PortletActionHandler class="com.raritantechnologies.portlet.SearchPortletHandler"
                            sourceType="[ fixed or default search source type ]"
                            sourceTypeParam="[ parameter used to select a search source type ]"
                            sourceCategory="[ fixed or default search source name ]"
                            sourceCategoryParam="[ request parameter used to select a search source name ]"
                            pageSizeParam="[ request parameter used to select page size (default='pageSize') ]"
                            startPageParam="[ request parameter used to select start page (default='pageNum') ]" />
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
SearchPortletHandler()
           
 
Method Summary
 void destroy()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 java.lang.String processAction(PortletHandler portletHandler, ActionRequest request, ActionResponse response)
          returns an ActionURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchPortletHandler

public SearchPortletHandler()
Method Detail

processAction

public java.lang.String processAction(PortletHandler portletHandler,
                                      ActionRequest request,
                                      ActionResponse response)
                               throws PortletException,
                                      java.io.IOException
Description copied from interface: IPortletActionHandler
returns an ActionURL

Specified by:
processAction in interface IPortletActionHandler
Throws:
PortletException
java.io.IOException

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

destroy

public void destroy()
Specified by:
destroy in interface IPortletActionHandler