@Deprecated public abstract class PortletUpdateAction extends BaseUpdateAction
portletmain
method must be implemented in the children.
The method will contain the logic for updating the specific
Portlet
, and for determining the ActionForward
after the Portlet
is updated.
The canAcces
method currently checks if the user has
editor privileges and can perform an update.
(@see com.appiancorp.suiteapi.portal.Portlet#PORTLET_ACCESS_LEVEL_EDIT )
It can be overwritten to give anyone privileges by always returning
true
as it is done in BaseUpdateAction
BaseUpdateAction
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
FORM_FORWARD
Deprecated.
|
FORWARD_CANCEL, FORWARD_INVALID_TOKEN, FORWARD_PREPARE, REQUEST_FORM_STATE, REQUEST_RECOVERED, REQUEST_TOKEN, REQUEST_TOKEN_OVERRIDE, STATE_PREPARE, STATE_SAVE, STATE_VALIDATE
FORWARD_ERROR, FORWARD_NO_ACCESS, FORWARD_SUCCESS
Constructor and Description |
---|
PortletUpdateAction()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canAccess(org.apache.struts.action.ActionMapping m_,
javax.servlet.http.HttpServletRequest q_)
Deprecated.
Checks if the user has update privileges on the
Portlet . |
static void |
clearPortletTarget(javax.servlet.http.HttpServletRequest q_)
Deprecated.
Clears the portlet target action path, so that the next time the
portlet is loaded it will use the default $t from its tiles config.
|
static void |
clearPortletTarget(com.appiancorp.ap2.PortalRequest pq_)
Deprecated.
|
org.apache.struts.action.ActionForward |
main(org.apache.struts.action.ActionMapping m_,
org.apache.struts.action.ActionForm f_,
javax.servlet.http.HttpServletRequest q_,
javax.servlet.http.HttpServletResponse r_)
Deprecated.
Executes the
portletmain method of its child class,
returns the child ActionForward , and resets the
PortletTarget to be null ; |
abstract org.apache.struts.action.ActionForward |
portletMain(org.apache.struts.action.ActionMapping m_,
org.apache.struts.action.ActionForm f_,
javax.servlet.http.HttpServletRequest q_,
javax.servlet.http.HttpServletResponse r_)
Deprecated.
Abstract method that must be overriden to specify the
ActionForward after the Portlet updates |
afterPrepare, afterValidate, beforePrepare, beforeValidate, handleInvalidToken, prepare, validate
addOutput, afterMain, beforeMain, getOutputValue, getServiceContext
addError, addError, addError, addError, addError, addError, addError, addError, addMessage, addMessage, addMessage, addMessage, decodeParameters, execute, generateToken, getAuthorizationActionName, getAuthorizationProvider, getValueFromRequest, getValueFromRequest, initBundle, isTokenValid, isTokenValid, requiresAuthorization, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken
protected static final java.lang.String FORM_FORWARD
public final org.apache.struts.action.ActionForward main(org.apache.struts.action.ActionMapping m_, org.apache.struts.action.ActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_)
portletmain
method of its child class,
returns the child ActionForward
, and resets the
PortletTarget
to be null
;main
in class BaseViewAction
m_
- the mappingf_
- the formq_
- the requestr_
- the responseActionForward
public abstract org.apache.struts.action.ActionForward portletMain(org.apache.struts.action.ActionMapping m_, org.apache.struts.action.ActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_)
ActionForward
after the Portlet
updatesm_
- the mappingf_
- the formq_
- the requestr_
- the responseActionForward
protected boolean canAccess(org.apache.struts.action.ActionMapping m_, javax.servlet.http.HttpServletRequest q_)
Portlet
.
Guards against people updating portlets
they do not have
access to.
This can be extended and overriden to return always true
if
anyone can update.canAccess
in class BaseAction
m_
- the mapping of a particular request to an instance of a
particular Action
classq_
- the requesttrue
if the user has edit privileges otherwise
false
public static void clearPortletTarget(javax.servlet.http.HttpServletRequest q_)
q_
- the requestpublic static void clearPortletTarget(com.appiancorp.ap2.PortalRequest pq_)
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.