public class BaseSearchPortlet extends AGenticsPortlet
Modifier and Type | Field and Description |
---|---|
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.
|
CONTENTID_OVERRIDE_ATTRIBUTE, CONTENTID_RENDER_PARAMETER, INITPARAM_EDITTEMPLATE_NAME, INITPARAM_STARTFOLDER_NAME, INITPARAM_STARTPAGE_NAME, INITPARAM_VIEWTEMPLATE_NAME, log, PAGE_RULE, TEMPLATE_CACHEZONE_KEY, TEMPLATECACHE_CONFIG_KEY
Constructor and Description |
---|
BaseSearchPortlet() |
Modifier and Type | Method and Description |
---|---|
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.
|
getContentid, getCrConf, getLog, getStartfolder, getStartpage, getTemplate, init, setCrConf, setLog
destroy, doDispatch, doEdit, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processEvent, render, serveResource
private static final String FILTER_KEY
public static final String SEARCH_EVENT_NAME
private String templPath
protected void initialize()
AGenticsPortlet
in this method every kind of Gentics portlet can initialize its own connectors and helpers
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.)
initialize
in class AGenticsPortlet
public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, IOException
processAction
in interface javax.portlet.Portlet
processAction
in class AGenticsPortlet
javax.portlet.PortletException
IOException
public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doView
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected void setFilterToSession(javax.portlet.PortletSession portletSession, String newfilter)
portletSession
- the portlet sessionnewfilter
- the newfilterprotected String getFilterFromSession(javax.portlet.PortletSession portletSession)
portletSession
- the portlet sessionCopyright © 2014 Gentics Software GmbH. All Rights Reserved.