public class BaseNavigationPortlet extends AGenticsPortlet
Modifier and Type | Field and Description |
---|---|
private String[] |
attributes
The standard attributes.
|
static String |
CHILDFILTER
standard child filter for navigation objects.
|
private boolean |
isCached |
static String |
NAVIGATIONCACHE_CONFIG_KEY
configuration key for enabling (default) or disabling the JCS content
cache.
|
private static String |
ROOT_ATTRIBUTE_KEY
The Constant ROOT_ATTRIBUTE_KEY.
|
private String |
rootAttribute
The root attribute.
|
private com.gentics.cr.RequestProcessor |
rp
The request processor.
|
private com.gentics.cr.template.ITemplate |
template
The template.
|
private static String |
TEMPLATE_PATH_KEY
The Constant TEMPLATE_PATH_KEY.
|
private String |
tmplPath
The tmpl path.
|
private com.gentics.cr.util.velocity.VelocityTools |
tools
The tools.
|
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 |
---|
BaseNavigationPortlet() |
Modifier and Type | Method and Description |
---|---|
void |
doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
private LinkedList<String> |
getActivePath(com.gentics.cr.CRResolvableBean crBean,
String active)
Gets the active path.
|
private com.gentics.cr.CRResolvableBean |
getCrBean(String startFolder)
This method fetches the navigation object from the Request Processor and
handles the caching when configured.
|
String |
getTmplPath()
Gets the path of the configured template
|
protected void |
initialize()
the portlet instance initialize method.
|
getContentid, getCrConf, getLog, getStartfolder, getStartpage, getTemplate, init, processAction, 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
public static final String CHILDFILTER
public static final String NAVIGATIONCACHE_CONFIG_KEY
private static final String TEMPLATE_PATH_KEY
private static final String ROOT_ATTRIBUTE_KEY
private String rootAttribute
private com.gentics.cr.RequestProcessor rp
private String tmplPath
private com.gentics.cr.template.ITemplate template
private com.gentics.cr.util.velocity.VelocityTools tools
VelocityTools
to deploy into the template context.private String[] attributes
private boolean isCached
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 doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doView
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
private com.gentics.cr.CRResolvableBean getCrBean(String startFolder) throws com.gentics.cr.exceptions.CRException, javax.portlet.PortletException
startFolder
- the folder for which the navigation should be buildedcom.gentics.cr.exceptions.CRException
- the CR exceptionjavax.portlet.PortletException
- the portlet exceptionpublic String getTmplPath()
private LinkedList<String> getActivePath(com.gentics.cr.CRResolvableBean crBean, String active)
crBean
- the cr beanactive
- the activeCopyright © 2014 Gentics Software GmbH. All Rights Reserved.