@Deprecated public abstract class BaseViewAction extends BaseAction
When extending this class, all Actions core to the AES should implement the
main
method. No core action should implement
beforeMain
or afterMain
. Those methods should
be implemented by customizers who wish to modify the action in some way.
Customizers should not extend the main
method.
When customizers extend a concrete BaseAction class they must use
the same ActionForm
class for the parent or a subclass of that
ActionForm
so that the main
in the parent does
not break.
FORWARD_ERROR, FORWARD_NO_ACCESS, FORWARD_SUCCESS
Constructor and Description |
---|
BaseViewAction()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addOutput(javax.servlet.http.HttpServletRequest q_,
java.lang.String key_,
java.lang.Object value_)
Deprecated.
Add a value to a
java.util.Map that is stored as a
request attribute |
org.apache.struts.action.ActionForward |
afterMain(org.apache.struts.action.ActionMapping m_,
org.apache.struts.action.ActionForm f_,
javax.servlet.http.HttpServletRequest q_,
javax.servlet.http.HttpServletResponse r_,
org.apache.struts.action.ActionForward defaultForward_)
Deprecated.
Should never be implemented in-house.
|
org.apache.struts.action.ActionForward |
beforeMain(org.apache.struts.action.ActionMapping m_,
org.apache.struts.action.ActionForm f_,
javax.servlet.http.HttpServletRequest q_,
javax.servlet.http.HttpServletResponse r_)
Deprecated.
Should never be implemented in-house.
|
protected java.lang.Object |
getOutputValue(javax.servlet.http.HttpServletRequest q_,
java.lang.String key_)
Deprecated.
Retrieve a value from the output map
|
protected ServiceContext |
getServiceContext(javax.servlet.http.HttpServletRequest q_)
Deprecated.
Returns the
ServiceContext for the user executing this request. |
abstract 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.
Should be implemented only by internal Appian development.
|
addError, addError, addError, addError, addError, addError, addError, addError, addMessage, addMessage, addMessage, addMessage, canAccess, decodeParameters, execute, generateToken, getAuthorizationActionName, getAuthorizationProvider, getValueFromRequest, getValueFromRequest, initBundle, isTokenValid, isTokenValid, requiresAuthorization, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken
protected ServiceContext getServiceContext(javax.servlet.http.HttpServletRequest q_)
BaseAction
ServiceContext
for the user executing this request.getServiceContext
in class BaseAction
protected final void addOutput(javax.servlet.http.HttpServletRequest q_, java.lang.String key_, java.lang.Object value_)
java.util.Map
that is stored as a
request attributeq_
- the requestkey_
- the key under which the value will be stoedvalue_
- the value to be storedprotected final java.lang.Object getOutputValue(javax.servlet.http.HttpServletRequest q_, java.lang.String key_)
q_
- the requestkey_
- the keyaddOutput(javax.servlet.http.HttpServletRequest, java.lang.String, java.lang.Object)
public abstract 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_)
m_
- The struts action mapping.f_
- The action form.q_
- The request.r_
- The response.InvalidFormClassException
- if the ActionForm
cannot be
cast to the required ActionForm
implementation.public org.apache.struts.action.ActionForward beforeMain(org.apache.struts.action.ActionMapping m_, org.apache.struts.action.ActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_)
main
.m_
- The struts action mapping.f_
- The action form.q_
- The request.r_
- The response.InvalidFormClassException
- if the ActionForm
cannot be
cast to the required ActionForm
implementation.public org.apache.struts.action.ActionForward afterMain(org.apache.struts.action.ActionMapping m_, org.apache.struts.action.ActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_, org.apache.struts.action.ActionForward defaultForward_)
main
.m_
- The struts action mapping.f_
- The action form.q_
- The request.r_
- The response.InvalidFormClassException
- if the ActionForm
cannot be
cast to required ActionForm
implementation.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.