Class BaseViewAction
java.lang.Object
com.appiancorp.web.framework.kernel.main.Action
com.appiancorp.common.appianwebmvc.BaseAction
com.appiancorp.common.appianwebmvc.BaseViewAction
- All Implemented Interfaces:
com.appiancorp.web.framework.kernel.main.IAction
- Direct Known Subclasses:
BaseUpdateAction
Deprecated.
The Portal functionality will be removed in a future release. Use the Tempo Interface for similar functionality.
Super class for all actions in the product concerned
only with viewing data (not saving to the database). This class
provides useful features for all implemented appianwebmvc actions, including
simplified integration for customizers.
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.
-
Field Summary
Fields inherited from class com.appiancorp.common.appianwebmvc.BaseAction
FORWARD_ERROR, FORWARD_NO_ACCESS, FORWARD_SUCCESSFields inherited from class com.appiancorp.web.framework.kernel.main.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidDeprecated.Add a value to ajava.util.Mapthat is stored as a request attributecom.appiancorp.web.framework.kernel.main.IActionForwardafterMain(com.appiancorp.web.framework.kernel.main.IActionMapping m_, com.appiancorp.web.framework.kernel.main.IActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_, com.appiancorp.web.framework.kernel.main.IActionForward defaultForward_) Deprecated.Should never be implemented in-house.com.appiancorp.web.framework.kernel.main.IActionForwardbeforeMain(com.appiancorp.web.framework.kernel.main.IActionMapping m_, com.appiancorp.web.framework.kernel.main.IActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_) Deprecated.Should never be implemented in-house.protected final ObjectgetOutputValue(javax.servlet.http.HttpServletRequest q_, String key_) Deprecated.Retrieve a value from the output mapprotected ServiceContextgetServiceContext(javax.servlet.http.HttpServletRequest q_) Deprecated.Returns theServiceContextfor the user executing this request.abstract com.appiancorp.web.framework.kernel.main.IActionForwardmain(com.appiancorp.web.framework.kernel.main.IActionMapping m_, com.appiancorp.web.framework.kernel.main.IActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_) Deprecated.Should be implemented only by internal Appian development.Methods inherited from class com.appiancorp.common.appianwebmvc.BaseAction
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, saveTokenMethods inherited from class com.appiancorp.web.framework.kernel.main.Action
addErrors, addMessages, execute, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, saveErrors, saveMessages, setLocale, setServlet
-
Constructor Details
-
BaseViewAction
public BaseViewAction()Deprecated.
-
-
Method Details
-
getServiceContext
Deprecated.Description copied from class:BaseActionReturns theServiceContextfor the user executing this request.- Overrides:
getServiceContextin classBaseAction
-
addOutput
protected final void addOutput(javax.servlet.http.HttpServletRequest q_, String key_, Object value_) Deprecated.Add a value to ajava.util.Mapthat is stored as a request attribute- Parameters:
q_- the requestkey_- the key under which the value will be stoedvalue_- the value to be stored
-
getOutputValue
Deprecated.Retrieve a value from the output map- Parameters:
q_- the requestkey_- the key- Returns:
- the object stored in the output map at the given key
- See Also:
-
main
public abstract com.appiancorp.web.framework.kernel.main.IActionForward main(com.appiancorp.web.framework.kernel.main.IActionMapping m_, com.appiancorp.web.framework.kernel.main.IActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_) Deprecated.Should be implemented only by internal Appian development. No consultants should write code that extends this method directly.- Parameters:
m_- The appianwebmvc action mapping.f_- The action form.q_- The request.r_- The response.- Throws:
com.appiancorp.common.appianwebmvc.InvalidFormClassException- if theActionFormcannot be cast to the requiredActionFormimplementation.
-
beforeMain
public com.appiancorp.web.framework.kernel.main.IActionForward beforeMain(com.appiancorp.web.framework.kernel.main.IActionMapping m_, com.appiancorp.web.framework.kernel.main.IActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_) Deprecated.Should never be implemented in-house. Should only be implemented by customizers of AES. This method will be called beforemain.- Parameters:
m_- The appianwebmvc action mapping.f_- The action form.q_- The request.r_- The response.- Throws:
com.appiancorp.common.appianwebmvc.InvalidFormClassException- if theActionFormcannot be cast to the requiredActionFormimplementation.
-
afterMain
public com.appiancorp.web.framework.kernel.main.IActionForward afterMain(com.appiancorp.web.framework.kernel.main.IActionMapping m_, com.appiancorp.web.framework.kernel.main.IActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_, com.appiancorp.web.framework.kernel.main.IActionForward defaultForward_) Deprecated.Should never be implemented in-house. Should only be implemented by customizers of AES. This method will be called aftermain.- Parameters:
m_- The appianwebmvc action mapping.f_- The action form.q_- The request.r_- The response.- Throws:
com.appiancorp.common.appianwebmvc.InvalidFormClassException- if theActionFormcannot be cast to requiredActionFormimplementation.
-