|
||||||||||
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
public abstract class AGenticsPortlet
The Class AbstractGenticsPortlet.
This is the basic Gentics portlet abstract class that provides some basic features
![]() |
![]() |
![]() |
![]() |
Field Summary | |
---|---|
static String |
CONTENTID_OVERRIDE_ATTRIBUTE
The Constant CONTENTID_OVERRIDE_PARAMETER. |
static String |
CONTENTID_RENDER_PARAMETER
The Constant CONTENTID_RENDER_PARAMETER. |
private CCPortletConfig |
crConf
The Content Repository configuration. |
static String |
INITPARAM_EDITTEMPLATE_NAME
The Constant INITPARAM_EDITTEMPLATE_NAME. |
static String |
INITPARAM_STARTFOLDER_NAME
The Constant INITPARAM_STARTFOLDER_NAME. |
static String |
INITPARAM_STARTPAGE_NAME
The Constant INITPARAM_STARTPAGE_NAME. |
static String |
INITPARAM_VIEWTEMPLATE_NAME
The Constant INITPARAM_VIEWTAMPLATE_NAME. |
protected org.apache.log4j.Logger |
log
the Logger. |
static String |
PAGE_RULE
the Page Rule. |
private String |
startfolder
the startfolder for this portlet instance. |
private String |
startpage
the startpage for this portlet instance. |
Constructor Summary | |
---|---|
AGenticsPortlet()
|
Method Summary | |
---|---|
protected String |
getContentid(javax.portlet.RenderRequest request)
returns the current contentid set as public render parameter. |
protected CCPortletConfig |
getCrConf()
Gets the cr conf. |
protected com.gentics.cr.template.FileTemplate |
getFileTemplate(String templatePath)
Gets the File Template from configured Template path or from default template file path if left empty. |
protected org.apache.log4j.Logger |
getLog()
Gets the log. |
protected String |
getStartfolder()
Gets the startfolder. |
protected String |
getStartpage()
Gets the startpage. |
void |
init()
|
protected abstract void |
initialize()
the portlet instance initialize method. |
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
protected void |
setCrConf(CCPortletConfig crConfig)
Sets the cr conf. |
protected void |
setLog(org.apache.log4j.Logger logger)
Sets the log. |
private void |
setStartfolder(String sf)
Sets the startfolder. |
private void |
setStartpage(String sp)
Sets the startpage. |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doDispatch, doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processEvent, render, serveResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INITPARAM_STARTPAGE_NAME
public static final String INITPARAM_STARTFOLDER_NAME
public static final String INITPARAM_VIEWTEMPLATE_NAME
public static final String INITPARAM_EDITTEMPLATE_NAME
public static final String CONTENTID_RENDER_PARAMETER
public static final String CONTENTID_OVERRIDE_ATTRIBUTE
public static final String PAGE_RULE
protected org.apache.log4j.Logger log
private CCPortletConfig crConf
private String startfolder
private String startpage
Constructor Detail |
---|
public AGenticsPortlet()
Method Detail |
---|
public final void init()
init
in class javax.portlet.GenericPortlet
protected abstract void initialize()
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.)
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 javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected String getContentid(javax.portlet.RenderRequest request) throws com.gentics.cr.exceptions.CRException
request
- the request
com.gentics.cr.exceptions.CRException
protected com.gentics.cr.template.FileTemplate getFileTemplate(String templatePath) throws FileNotFoundException, com.gentics.cr.exceptions.CRException
templatePath
- the path of the template
FileNotFoundException
- the file not found exception
com.gentics.cr.exceptions.CRException
- the cR exceptionprotected org.apache.log4j.Logger getLog()
protected void setLog(org.apache.log4j.Logger logger)
logger
- the new logprotected CCPortletConfig getCrConf()
protected void setCrConf(CCPortletConfig crConfig)
crConfig
- the new cr confprotected String getStartfolder()
private void setStartfolder(String sf)
sf
- the new startfolderprotected String getStartpage()
private void setStartpage(String sp)
sp
- the new startpage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |