|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
com.gentics.cr.portlet.AGenticsPortlet
com.gentics.cr.portlet.AContentDisplayPortlet
com.gentics.cr.portlet.BaseContentPortlet
public class BaseContentPortlet
The Class BaseContentPortlet.
![]() |
![]() |
Field Summary | |
---|---|
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
|
Fields inherited from class com.gentics.cr.portlet.AContentDisplayPortlet |
---|
attributes, ATTRIBUTES_KEY, ISVELOCITYRENDERED_KEY, vEngine |
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 | |
---|---|
BaseContentPortlet()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class com.gentics.cr.portlet.AContentDisplayPortlet |
---|
dispatch, doView, executeVelocityRender, getRp, prepareDisplayResponse, serveResource |
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 |
---|
doDispatch, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public BaseContentPortlet()
Method Detail |
---|
protected void initialize()
AGenticsPortlet
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.)
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 exception
javax.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 response
javax.portlet.PortletException
- the portlet exception
IOException
- 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 response
IOException
- Signals that an I/O exception has occurred.public void destroy()
destroy
in interface javax.portlet.Portlet
destroy
in class javax.portlet.GenericPortlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |