public class BaseContentPortlet extends AContentDisplayPortlet
Modifier and Type | Field and Description |
---|---|
private CCPortletConfig |
crSearchConf
The cr search conf.
|
static String |
MODE_CONTENT
The Constant MODE_CONTENT.
|
static String |
MODE_NAME
The Constant MODE_NAME.
|
static String |
MODE_SEARCH
The Constant MODE_SEARCH.
|
private static String |
SEARCHCONFIGNAME_CONFIG_KEY
The Constant SEARCHCONFIGNAME_CONFIG_KEY.
|
private static String |
SEARCHCONFIGNAME_DEFAULT
The Constant SEARCHCONFIGNAME_DEFAULT.
|
private RESTSimpleStreamContainer |
searchContainer
The search_container.
|
private static String |
SEARCHTERM_BUILDER_CLASS_KEY |
private SearchTermBuilder |
searchTermBuilder |
private String |
searchtermBuilderClass |
private Class<?> |
searchTermBuilderClazz |
attributes, ATTRIBUTES_KEY, downloadMimetypes, ISVELOCITYRENDERED_KEY, vEngine
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 |
---|
BaseContentPortlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
protected void |
doInternalView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Do internal view.
|
protected void |
handleError(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
javax.portlet.PortletException exception)
Handle error.
|
protected void |
initialize()
the portlet instance initialize method.
|
private void |
prepareSearchResponse(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Prepare search response.
|
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response) |
void |
processEvent(javax.portlet.EventRequest request,
javax.portlet.EventResponse response) |
dispatch, doView, executeVelocityRender, getRp, prepareDisplayResponse, serveResource
getContentid, getCrConf, getLog, getStartfolder, getStartpage, getTemplate, init, setCrConf, setLog
doDispatch, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, render
private static final String SEARCHCONFIGNAME_DEFAULT
private static final String SEARCHCONFIGNAME_CONFIG_KEY
private static final String SEARCHTERM_BUILDER_CLASS_KEY
private String searchtermBuilderClass
private Class<?> searchTermBuilderClazz
public static final String MODE_NAME
public static final String MODE_CONTENT
public static final String MODE_SEARCH
private RESTSimpleStreamContainer searchContainer
private CCPortletConfig crSearchConf
private SearchTermBuilder searchTermBuilder
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 AContentDisplayPortlet
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 AContentDisplayPortlet
javax.portlet.PortletException
IOException
public final void processEvent(javax.portlet.EventRequest request, javax.portlet.EventResponse response) throws javax.portlet.PortletException, IOException
processEvent
in interface javax.portlet.EventPortlet
processEvent
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
public final void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doEdit
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected void handleError(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, javax.portlet.PortletException exception) throws javax.portlet.PortletException
AContentDisplayPortlet
handleError
in class AContentDisplayPortlet
request
- the requestresponse
- the responseexception
- the exceptionjavax.portlet.PortletException
protected void doInternalView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
AContentDisplayPortlet
TODO
doInternalView
in class AContentDisplayPortlet
request
- the requestresponse
- the responsejavax.portlet.PortletException
- the portlet exceptionIOException
- Signals that an I/O exception has occurred.private void prepareSearchResponse(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws IOException
request
- the requestresponse
- the responseIOException
- Signals that an I/O exception has occurred.public void destroy()
destroy
in interface javax.portlet.Portlet
destroy
in class javax.portlet.GenericPortlet
Copyright © 2014 Gentics Software GmbH. All Rights Reserved.