public interface IPortletControllerBean extends IPropertyBag
Portlet controller bean is the state information for the portlet controller. It is stored per portlet instance in the user's session.
The portlet controller bean is available on the portlet bean via IPortletBean.getControllerBean()
. If this
method returns null the portlet controller is not configured in the portlet descriptor
The configuration of the portlet controller is done in the portlet descriptor. Please see
IPortletControllerInfo
for more details
Modifier and Type | Field and Description |
---|---|
static String |
LAYOUT_PARAM
Parameter name for the portlet layout to render
|
static String |
METHOD_PARAM
Parameter name for the portlet method to invoke
|
static String |
PCB_KEY
Key for the portlet controller bean stored in the user session
|
Modifier and Type | Method and Description |
---|---|
boolean |
cleanup(IContext context)
Cleanup procedure that handles state 'expiration'
|
void |
clear()
Clears the portlet controller state
|
Throwable |
getException()
Returns the current exception or null if there is no exception
|
String |
getLayout()
Returns the current layout during render request and last
render layout during action request unless overwritten with
setLayout(String) |
IPortletLayoutInfo |
getLayoutInfo()
Returns current layout info
|
IPortletMethodInfo |
getMethodInfo()
Returns the requested method info.
|
javax.portlet.PortletMode |
getPortletMode() |
String |
getPrevLayout()
Returns the previous layout name
|
String |
getReturnUrl()
Returns the current return url.
|
IThingID |
getThingID()
Returns the portlet thing id
|
javax.portlet.WindowState |
getWindowState() |
boolean |
hasException()
Returns whether there is an exception currently set
|
boolean |
isMethodRequested()
Returns true if the portlet method invocation is requested
|
void |
setErrorLayout(String layout)
Sets the current error layout by its name
|
void |
setException(Throwable e)
Sets the exception object to show on the error page
|
void |
setLayout(String layout)
Sets a new layout by its name.
|
void |
setPortletMode(javax.portlet.PortletMode portletMode) |
void |
setReturnUrl(String returnUrl)
Sets a new return url.
|
void |
setThingID(IThingID portletThingID)
Sets the portlet instance thing id
|
void |
setWindowState(javax.portlet.WindowState windowState) |
assignProperties, createCopy, getProperties, getProperty, load, load, load, save, save, setProperties, setProperty
static final String METHOD_PARAM
static final String LAYOUT_PARAM
static final String PCB_KEY
void setThingID(IThingID portletThingID) throws PortalException
portletThingID
- portlet thing idPortalException
IThingID getThingID()
boolean isMethodRequested()
IPortletMethodInfo getMethodInfo() throws PortalException
PortalException
IPortletLayoutInfo getLayoutInfo() throws PortalException
PortalException
String getLayout()
setLayout(String)
void setLayout(String layout)
layout
- new layout nameString getPrevLayout()
void setErrorLayout(String layout)
layout
- the layout name to display the portlet errorsvoid setException(Throwable e)
e
- the exception object or nullThrowable getException()
boolean hasException()
String getReturnUrl()
void setReturnUrl(String returnUrl)
returnUrl
- url to use for the redirectvoid clear()
boolean cleanup(IContext context)
context
- void setPortletMode(javax.portlet.PortletMode portletMode)
void setWindowState(javax.portlet.WindowState windowState)
javax.portlet.PortletMode getPortletMode()
javax.portlet.WindowState getWindowState()