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, vEngineCONTENTID_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, serveResourcegetContentid, getCrConf, getLog, getStartfolder, getStartpage, getTemplate, init, setCrConf, setLogdoDispatch, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, renderprivate 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()
AGenticsPortletin 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 AContentDisplayPortletpublic void processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
IOException
processAction in interface javax.portlet.PortletprocessAction in class AContentDisplayPortletjavax.portlet.PortletExceptionIOExceptionpublic final void processEvent(javax.portlet.EventRequest request,
javax.portlet.EventResponse response)
throws javax.portlet.PortletException,
IOException
processEvent in interface javax.portlet.EventPortletprocessEvent in class javax.portlet.GenericPortletjavax.portlet.PortletExceptionIOExceptionpublic final void doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
doEdit in class javax.portlet.GenericPortletjavax.portlet.PortletExceptionIOExceptionprotected void handleError(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
javax.portlet.PortletException exception)
throws javax.portlet.PortletException
AContentDisplayPortlethandleError in class AContentDisplayPortletrequest - the requestresponse - the responseexception - the exceptionjavax.portlet.PortletExceptionprotected void doInternalView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
AContentDisplayPortletTODO
doInternalView in class AContentDisplayPortletrequest - 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.Portletdestroy in class javax.portlet.GenericPortletCopyright © 2014 Gentics Software GmbH. All Rights Reserved.