@Deprecated public abstract class KualiAction extends org.apache.struts.actions.DispatchAction
The base Action
class for all KNS-based Actions. Extends from the standard
DispatchAction
which allows for a methodToCall request parameter to
be used to indicate which method to invoke.
This Action overrides #execute to set methodToCall for image submits. Also performs other setup required for KNS framework calls.
Modifier and Type | Field and Description |
---|---|
static String |
FORM_ACTION
Deprecated.
Constant defined to match with TextArea.jsp and updateTextArea function in core.js
|
static String |
FORWARD_NEXT
Deprecated.
Constant defined to match with local forwarding in struts-config.xml
for the parent of the Updated Text Area.
|
static String |
FORWARD_TEXT_AREA_UPDATE
Deprecated.
Constant defined to match with global forwarding in struts-config.xml
for Text Area Update.
|
static String |
METHOD_TO_CALL
Deprecated.
Constant defined to match input parameter from URL and from TextArea.jsp.
|
static String |
POST_TEXT_AREA_TO_PARENT
Deprecated.
Constant defined to match with method to call in TextArea.jsp.
|
static String |
TEXT_AREA_FIELD_ANCHOR
Deprecated.
Constant defined to match with TextArea.jsp and updateTextArea function in core.js
|
static String |
TEXT_AREA_FIELD_LABEL
Deprecated.
Constant defined to match with TextArea.jsp and updateTextArea function in core.js
|
static String |
TEXT_AREA_FIELD_NAME
Deprecated.
Constant defined to match with TextArea.jsp and updateTextArea function in core.js
|
static String |
TEXT_AREA_MAX_LENGTH
Deprecated.
Constant defined to match with TextArea.jsp and updateTextArea function in core.js
|
static String |
TEXT_AREA_READ_ONLY
Deprecated.
Constant defined to match with TextArea.jsp and updateTextArea function in core.js
|
Constructor and Description |
---|
KualiAction()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMethodToCallToUncheckedList(String methodToCall)
Deprecated.
Use to add a methodToCall to the a list which will not have authorization checks.
|
protected void |
checkAuthorization(org.apache.struts.action.ActionForm form,
String methodToCall)
Deprecated.
Override this method to provide action-level access controls to the application.
|
protected org.apache.struts.action.ActionForward |
defaultDispatch(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
When no methodToCall is specified, the defaultDispatch method is invoked.
|
protected org.apache.struts.action.ActionForward |
dispatchMethod(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String methodToCall)
Deprecated.
|
protected void |
doProcessingAfterPost(KualiForm form,
javax.servlet.http.HttpServletRequest request)
Deprecated.
This method does all special processing on a document that should happen on each HTTP post (ie, save, route, approve, etc).
|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Entry point to all actions.
|
protected String |
findMethodToCall(org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
static String |
getApplicationBaseUrl()
Deprecated.
|
protected BusinessObjectAuthorizationService |
getBusinessObjectAuthorizationService()
Deprecated.
|
protected EncryptionService |
getEncryptionService()
Deprecated.
|
protected String |
getHeaderTabDispatch(javax.servlet.http.HttpServletRequest request)
Deprecated.
Retrieves the header tab dispatch.
|
protected String |
getHeaderTabNavigateTo(javax.servlet.http.HttpServletRequest request)
Deprecated.
Retrieves the header tab to navigate to.
|
protected String |
getImageContext(javax.servlet.http.HttpServletRequest request,
String contextKey)
Deprecated.
Retrieves the image context
|
protected static KualiModuleService |
getKualiModuleService()
Deprecated.
|
protected int |
getLineToDelete(javax.servlet.http.HttpServletRequest request)
Deprecated.
Parses the method to call attribute to pick off the line number which should be deleted.
|
protected int |
getLineToEdit(javax.servlet.http.HttpServletRequest request)
Deprecated.
Parses the method to call attribute to pick off the line number which should be edited.
|
protected String |
getReturnLocation(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
Deprecated.
|
protected Map<String,String> |
getRoleQualification(org.apache.struts.action.ActionForm form,
String methodToCall)
Deprecated.
override this method to add data from the form for role qualification in the authorization check
|
protected int |
getSelectedLine(javax.servlet.http.HttpServletRequest request)
Deprecated.
Parses the method to call attribute to pick off the line number which should have an action performed on it.
|
protected String |
getTabToToggle(javax.servlet.http.HttpServletRequest request)
Deprecated.
Determines which tab was requested to be toggled
|
org.apache.struts.action.ActionForward |
headerTab(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Handles requests that originate via Header Tabs.
|
org.apache.struts.action.ActionForward |
hideAllTabs(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Toggles all tabs to closed
|
protected boolean |
isModuleLocked(org.apache.struts.action.ActionForm form,
String methodToCall,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
org.apache.struts.action.ActionForward |
performInquiry(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
org.apache.struts.action.ActionForward |
performLookup(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Takes care of storing the action form in the User session and forwarding to the lookup action.
|
protected org.apache.struts.action.ActionForward |
performQuestionWithInput(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String questionId,
String questionText,
String questionType,
String caller,
String context)
Deprecated.
Handles rendering a question prompt - without a specified context.
|
protected org.apache.struts.action.ActionForward |
performQuestionWithInputAgainBecauseOfErrors(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String questionId,
String questionText,
String questionType,
String caller,
String context,
String reason,
String errorKey,
String errorPropertyName,
String errorParameter)
Deprecated.
Handles re-rendering a question prompt because of an error on what was submitted.
|
protected org.apache.struts.action.ActionForward |
performQuestionWithoutInput(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String questionId,
String questionText,
String questionType,
String caller,
String context)
Deprecated.
This method handles rendering the question component, but without any of the extra error fields
|
org.apache.struts.action.ActionForward |
performWorkgroupLookup(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Takes care of storing the action form in the User session and forwarding to the workflow workgroup lookup action.
|
org.apache.struts.action.ActionForward |
postTextAreaToParent(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
This method is invoked from the TextArea.jsp for posting its value to the parent
page that called the extended text area page.
|
org.apache.struts.action.ActionForward |
refresh(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Default refresh method.
|
protected String |
retrieveLookupParameterValue(Class<? extends BusinessObject> boClass,
String parameterName,
String parameterValuePropertyName,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request)
Deprecated.
Retrieves the value of a parameter to be passed into the lookup or inquiry frameworks.
|
org.apache.struts.action.ActionForward |
showAllTabs(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Toggles all tabs to open
|
org.apache.struts.action.ActionForward |
toggleTab(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Toggles the tab state in the ui
|
org.apache.struts.action.ActionForward |
updateTextArea(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
This method is invoked when Java Script is turned off from the web browser.
|
protected void |
validateLookupInquiryFullParameter(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionForm form,
String fullParameter)
Deprecated.
|
cancelled, getMethod, getMethodName, getParameter, unspecified
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
public static final String TEXT_AREA_FIELD_NAME
Value is textAreaFieldName
public static final String TEXT_AREA_FIELD_LABEL
Value is textAreaFieldLabel
public static final String TEXT_AREA_READ_ONLY
Value is textAreaReadOnly
public static final String TEXT_AREA_FIELD_ANCHOR
Value is textAreaFieldAnchor
public static final String TEXT_AREA_MAX_LENGTH
Value is textAreaFieldAnchor
public static final String FORM_ACTION
Value is htmlFormAction
public static final String METHOD_TO_CALL
Value is methodToCall
public static final String FORWARD_TEXT_AREA_UPDATE
Value is updateTextArea
public static final String POST_TEXT_AREA_TO_PARENT
Value is postTextAreaToParent
public static final String FORWARD_NEXT
Value is forwardNext
public KualiAction()
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
execute
in class org.apache.struts.actions.DispatchAction
Exception
Action.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected org.apache.struts.action.ActionForward defaultDispatch(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected org.apache.struts.action.ActionForward dispatchMethod(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String methodToCall) throws Exception
dispatchMethod
in class org.apache.struts.actions.DispatchAction
Exception
protected String findMethodToCall(org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public org.apache.struts.action.ActionForward toggleTab(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
public org.apache.struts.action.ActionForward showAllTabs(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
public org.apache.struts.action.ActionForward hideAllTabs(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
public org.apache.struts.action.ActionForward refresh(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
protected int getLineToDelete(javax.servlet.http.HttpServletRequest request)
request
- protected int getLineToEdit(javax.servlet.http.HttpServletRequest request)
request
- protected int getSelectedLine(javax.servlet.http.HttpServletRequest request)
request
- protected String getTabToToggle(javax.servlet.http.HttpServletRequest request)
request
- protected String getHeaderTabNavigateTo(javax.servlet.http.HttpServletRequest request)
request
- protected String getHeaderTabDispatch(javax.servlet.http.HttpServletRequest request)
request
- protected String getImageContext(javax.servlet.http.HttpServletRequest request, String contextKey)
request
- contextKey
- protected String getReturnLocation(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMapping mapping)
protected String retrieveLookupParameterValue(Class<? extends BusinessObject> boClass, String parameterName, String parameterValuePropertyName, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request) throws Exception
boClass
- a class implementing boClass, representing the BO that will be looked upparameterName
- the name of the parameterparameterValuePropertyName
- the property (relative to the form object) where the value to be passed into the lookup/inquiry may be foundform
- request
- Exception
public org.apache.struts.action.ActionForward performLookup(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
protected void validateLookupInquiryFullParameter(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionForm form, String fullParameter)
public org.apache.struts.action.ActionForward performInquiry(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected org.apache.struts.action.ActionForward performQuestionWithoutInput(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String questionId, String questionText, String questionType, String caller, String context) throws Exception
mapping
- form
- request
- response
- questionId
- questionText
- questionType
- caller
- context
- Exception
protected org.apache.struts.action.ActionForward performQuestionWithInput(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String questionId, String questionText, String questionType, String caller, String context) throws Exception
mapping
- form
- request
- response
- questionId
- questionText
- questionType
- caller
- context
- Exception
protected org.apache.struts.action.ActionForward performQuestionWithInputAgainBecauseOfErrors(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String questionId, String questionText, String questionType, String caller, String context, String reason, String errorKey, String errorPropertyName, String errorParameter) throws Exception
mapping
- form
- request
- response
- questionId
- questionText
- questionType
- caller
- context
- reason
- errorKey
- errorPropertyName
- errorParameter
- Exception
public org.apache.struts.action.ActionForward performWorkgroupLookup(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
public org.apache.struts.action.ActionForward headerTab(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- request
- response
- Exception
protected void checkAuthorization(org.apache.struts.action.ActionForm form, String methodToCall) throws AuthorizationException
form
- AuthorizationException
protected Map<String,String> getRoleQualification(org.apache.struts.action.ActionForm form, String methodToCall)
protected static KualiModuleService getKualiModuleService()
public org.apache.struts.action.ActionForward updateTextArea(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- form
- request
- response
- public org.apache.struts.action.ActionForward postTextAreaToParent(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- form
- request
- response
- protected final void addMethodToCallToUncheckedList(String methodToCall)
protected void doProcessingAfterPost(KualiForm form, javax.servlet.http.HttpServletRequest request)
protected BusinessObjectAuthorizationService getBusinessObjectAuthorizationService()
protected EncryptionService getEncryptionService()
public static String getApplicationBaseUrl()
protected boolean isModuleLocked(org.apache.struts.action.ActionForm form, String methodToCall, javax.servlet.http.HttpServletRequest request)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.