com.gentics.cr.portlet
Class BaseSearchPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by com.gentics.cr.portlet.AGenticsPortlet
          extended by com.gentics.cr.portlet.BaseSearchPortlet
All Implemented Interfaces:
javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet

public class BaseSearchPortlet
extends AGenticsPortlet

The Class BaseSearchPortlet.

 

Field Summary
private static String FILTER_KEY
          The Constant FILTER_KEY.
static String SEARCH_EVENT_NAME
          The Constant SEARCH_EVENT_NAME.
private  String templPath
          The templ path.
 
Fields inherited from class com.gentics.cr.portlet.AGenticsPortlet
CONTENTID_OVERRIDE_ATTRIBUTE, CONTENTID_RENDER_PARAMETER, INITPARAM_EDITTEMPLATE_NAME, INITPARAM_STARTFOLDER_NAME, INITPARAM_STARTPAGE_NAME, INITPARAM_VIEWTEMPLATE_NAME, log, PAGE_RULE
 
Constructor Summary
BaseSearchPortlet()
           
 
Method Summary
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  String getFilterFromSession(javax.portlet.PortletSession portletSession)
          Gets the filter from session.
protected  void initialize()
          the portlet instance initialize method.
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
protected  void setFilterToSession(javax.portlet.PortletSession portletSession, String newfilter)
          Sets the filter to session.
 
Methods inherited from class com.gentics.cr.portlet.AGenticsPortlet
getContentid, getCrConf, getFileTemplate, getLog, getStartfolder, getStartpage, init, setCrConf, setLog
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, doEdit, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processEvent, render, serveResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILTER_KEY

private static final String FILTER_KEY
The Constant FILTER_KEY.

See Also:
Constant Field Values

SEARCH_EVENT_NAME

public static final String SEARCH_EVENT_NAME
The Constant SEARCH_EVENT_NAME.

See Also:
Constant Field Values

templPath

private String templPath
The templ path.

Constructor Detail

BaseSearchPortlet

public BaseSearchPortlet()
Method Detail

initialize

protected void initialize()
Description copied from class: AGenticsPortlet
the portlet instance initialize method.

in this method every kind of Gentics portlet can initialize its own connectors and helpers

please remeber! Always call super.init(); if you override this method!

This method is called exact once on portlet init.

Please use this method if you have to initialize components within your portlet instance (E.g. connectors, helper classes etc.)

Specified by:
initialize in class AGenticsPortlet

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
                   throws javax.portlet.PortletException,
                          IOException
Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class AGenticsPortlet
Throws:
javax.portlet.PortletException
IOException

doView

public void doView(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Overrides:
doView in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
IOException

setFilterToSession

protected void setFilterToSession(javax.portlet.PortletSession portletSession,
                                  String newfilter)
Sets the filter to session.

Parameters:
portletSession - the portlet session
newfilter - the newfilter

getFilterFromSession

protected String getFilterFromSession(javax.portlet.PortletSession portletSession)
Gets the filter from session.

Parameters:
portletSession - the portlet session
Returns:
the filter from session


Copyright © 2014 Gentics Software GmbH. All Rights Reserved.