|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An ActionEvent is sent by the portlet container when an HTTP
request is received that is associated with an action
| Field Summary | |
static java.lang.String |
ACTION_CONFIGURE
Name of the action if the portlet in Portlet.Mode.CONFIGURE mode |
static java.lang.String |
ACTION_EDIT
Name of the action if the portlet in Portlet.Mode.EDIT mode |
static java.lang.String |
ACTION_HELP
Name of the action if the portlet in Portlet.Mode.HELP mode |
static java.lang.String |
ACTION_VIEW
Name of the action if the portlet in Portlet.Mode.VIEW mode |
static java.lang.String |
RETURN_ERROR
Code to return if an error has occured while perfoming the action |
static java.lang.String |
RETURN_INPUT
Code to return if mode input data are required |
static java.lang.String |
RETURN_SUCCESS
Code to return if performing the action was successfull |
| Method Summary | |
void |
addError(java.lang.Object error)
Add an error. |
java.lang.String |
getAction()
Returns the action that this action event carries. |
net.sf.jportlet.portlet.PortletURI |
getNextURI()
Return the URI where to move after the action is executed. |
java.lang.String |
getReturnCode()
Returns the returnCode. |
boolean |
hasErrors()
Return true if the action has errors |
void |
setNextURI(net.sf.jportlet.portlet.PortletURI nextURI)
Set the URI where to move after the action is executed |
void |
setReturnCode(java.lang.String returnCode)
Set the returnCode. |
| Methods inherited from interface net.sf.jportlet.portlet.event.Event |
getPortlet, getPortletRequest, getPortletResponse |
| Field Detail |
public static final java.lang.String ACTION_CONFIGURE
Portlet.Mode.CONFIGURE mode
public static final java.lang.String ACTION_EDIT
Portlet.Mode.EDIT mode
public static final java.lang.String ACTION_HELP
Portlet.Mode.HELP mode
public static final java.lang.String ACTION_VIEW
Portlet.Mode.VIEW mode
public static final java.lang.String RETURN_ERROR
public static final java.lang.String RETURN_SUCCESS
public static final java.lang.String RETURN_INPUT
| Method Detail |
public void addError(java.lang.Object error)
public boolean hasErrors()
true if the action has errors
public java.lang.String getAction()
ACTION_VIEW or ACTION_EDIT
or ACTION_CONFIGURE or ACTION_HELP
public java.lang.String getReturnCode()
returnCode is used by the container for managing the
navigation using the <webflow> tag from the portlet
deployment descriptor, if the nextURI
was not set with setNextURI(net.sf.jportlet.portlet.PortletURI).
public net.sf.jportlet.portlet.PortletURI getNextURI()
getReturnCode() to determine the URI where to move.
This is useful for managing navigation inside the portlet.
public void setReturnCode(java.lang.String returnCode)
returnCode - RETURN_SUCCESS,
RETURN_ERROR,
RETURN_INPUTpublic void setNextURI(net.sf.jportlet.portlet.PortletURI nextURI)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||