Class KualiMaintenanceDocumentAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.kuali.rice.kns.web.struts.action.KualiAction
org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction
Deprecated.
This class handles actions for maintenance documents. These include creating new edit, and copying of maintenance records.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.logging.log4j.LoggerDeprecated.Fields inherited from class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
DOCUMENT_LOAD_COMMANDSFields inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
FORM_ACTION, FORWARD_NEXT, FORWARD_TEXT_AREA_UPDATE, METHOD_TO_CALL, POST_TEXT_AREA_TO_PARENT, TEXT_AREA_FIELD_ANCHOR, TEXT_AREA_FIELD_LABEL, TEXT_AREA_FIELD_NAME, TEXT_AREA_MAX_LENGTH, TEXT_AREA_READ_ONLYFields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardaddLine(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Adds a line to a collection being maintained in a many section.buildKeyMapFromRequest(Maintainable maintainable, javax.servlet.http.HttpServletRequest request) Deprecated.Gets keys for the maintainable business object from the persistence metadata explorer.protected voidclearPrimaryKeyFields(MaintenanceDocument document) Deprecated.This method clears the value of the primary key fields on a Business Object.protected voidDeprecated.This method is used as part of the Copy functionality, to clear any field values that the user making the copy does not have permissions to modify.org.apache.struts.action.ActionForwardcopy(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Calls setupMaintenance for copy action.protected voidcopyParametersToBO(Map<String, String> parameters, PersistableBusinessObject newBO) Deprecated.org.apache.struts.action.ActionForwarddelete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.KUALRice 3070 Calls setupMaintenance for delete action.org.apache.struts.action.ActionForwarddeleteLine(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Deletes a collection line that is pending by this document.org.apache.struts.action.ActionForwarddocHandler(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Handles creating and loading of documents.protected voiddoProcessingAfterPost(KualiForm form, Map<String, String[]> parameters) Deprecated.protected voiddoProcessingAfterPost(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.ActionForwarddownloadAttachment(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Downloads the attachment to the user's browser.org.apache.struts.action.ActionForwardedit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Calls setupMaintenance for edit action.org.apache.struts.action.ActionForwardexecute(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.Deprecated.Deprecated.Deprecated.getRequestParameters(List<String> keyFieldNames, Maintainable maintainable, javax.servlet.http.HttpServletRequest request) Deprecated.protected intgetSubCollectionIndex(Object object, String documentTypeName) Deprecated.org.apache.struts.action.ActionForwardnewWithExisting(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Calls setupMaintenance for new object that have existing objects attributes.protected voidDeprecated.protected voidpopulateBOWithCopyKeyValues(javax.servlet.http.HttpServletRequest request, PersistableBusinessObject oldBusinessObject, Maintainable oldMaintainableObject) Deprecated.org.apache.struts.action.ActionForwardrefresh(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Called on return from a lookup.org.apache.struts.action.ActionForwardreplaceAttachment(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 used to replace the attachment.org.apache.struts.action.ActionForwardroute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.route the document using the document serviceprotected org.apache.struts.action.ActionForwardsetupMaintenance(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String maintenanceAction) Deprecated.Gets a new document for a maintenance record.org.apache.struts.action.ActionForwardstart(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Calls setup Maintenance for new action.org.apache.struts.action.ActionForwardtoggleInactiveRecordDisplay(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Turns on (or off) the inactive record display for a maintenance collection.Methods inherited from class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
acknowledge, approve, attemptLockRelease, blanketApprove, buildAuthorizationException, cancel, cancelBOAttachment, canSave, checkAndWarnAboutSensitiveData, checkAuthorization, close, combineAdHocRecipients, complete, convertSetToMap, createDocument, deleteAdHocRoutePerson, deleteAdHocRouteWorkgroup, deleteBONote, determineNoteWorkflowNotificationAction, disapprove, downloadBOAttachment, exitingDocument, fyi, generatePessimisticLockMessage, getAttachmentService, getBusinessObjectAuthorizationService, getBusinessObjectMetaDataService, getBusinessObjectService, getDataDictionaryService, getDocumentHelperService, getDocumentService, getEntityManagerFactory, getGroupService, getKualiConfigurationService, getKualiRuleService, getNoteService, getParameterService, getPessimisticLockService, getQuestion, hasPendingAdhocForCompletion, hideAllTabs, insertAdHocRoutePerson, insertAdHocRouteWorkgroup, insertBONote, isFormRepresentingLockObject, loadDocument, performRouteReport, populateAdHocActionRequestCodes, promptBeforeValidation, promptBeforeValidation, recall, refreshAdHocRoutingWorkgroupLookups, releaseLocks, reload, returnToSender, save, selectedAttachmentIndex, sendAdHocRequests, sendNoteWorkflowNotification, setupDocumentExit, setupPessimisticLockMessages, showAllTabs, streamToResponse, superUserApprove, superUserDisapprove, supervisorFunctions, takeSuperUserActions, toggleTabMethods inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
addMethodToCallToUncheckedList, defaultDispatch, dispatchMethod, findMethodToCall, getApplicationBaseUrl, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getLineToEdit, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, isModuleLocked, performInquiry, performLookup, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, retrieveLookupParameterValue, updateTextArea, validateLookupInquiryFullParameterMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, getMethod, getMethodName, getParameter, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
LOG
protected static final org.apache.logging.log4j.Logger LOGDeprecated.
-
-
Constructor Details
-
KualiMaintenanceDocumentAction
public KualiMaintenanceDocumentAction()Deprecated.
-
-
Method Details
-
execute
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 Deprecated.Description copied from class:KualiDocumentActionBaseEntry point to all actions. NOTE: No need to hook into execute for handling framwork setup anymore. Just implement the methodToCall for the framework setup, Constants.METHOD_REQUEST_PARAMETER will contain the full parameter, which can be sub stringed for getting framework parameters.- Overrides:
executein classKualiDocumentActionBase- Throws:
Exception- See Also:
-
start
public org.apache.struts.action.ActionForward start(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Calls setup Maintenance for new action.- Throws:
Exception
-
copy
public org.apache.struts.action.ActionForward copy(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Calls setupMaintenance for copy action.- Throws:
Exception
-
edit
public org.apache.struts.action.ActionForward edit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Calls setupMaintenance for edit action.- Throws:
Exception
-
delete
public org.apache.struts.action.ActionForward delete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.KUALRice 3070 Calls setupMaintenance for delete action.- Overrides:
deletein classKualiDocumentActionBase- Parameters:
mapping-form-request-response-- Returns:
- ActionForward
- Throws:
Exception
-
newWithExisting
public org.apache.struts.action.ActionForward newWithExisting(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Calls setupMaintenance for new object that have existing objects attributes.- Throws:
Exception
-
setupMaintenance
protected org.apache.struts.action.ActionForward setupMaintenance(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String maintenanceAction) throws Exception Deprecated.Gets a new document for a maintenance record. The maintainable is specified with the documentTypeName or business object class request parameter and request parameters are parsed for key values for retrieving the business object. Forward to the maintenance jsp which renders the page based on the maintainable's field specifications. Retrieves an existing business object for edit and copy. Checks locking on edit.- Throws:
Exception
-
populateBOWithCopyKeyValues
protected void populateBOWithCopyKeyValues(javax.servlet.http.HttpServletRequest request, PersistableBusinessObject oldBusinessObject, Maintainable oldMaintainableObject) throws Exception Deprecated.- Throws:
Exception
-
copyParametersToBO
protected void copyParametersToBO(Map<String, String> parameters, PersistableBusinessObject newBO) throws ExceptionDeprecated.- Throws:
Exception
-
downloadAttachment
public org.apache.struts.action.ActionForward downloadAttachment(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Downloads the attachment to the user's browser.- Throws:
Exception
-
replaceAttachment
public org.apache.struts.action.ActionForward replaceAttachment(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.This method used to replace the attachment.- Throws:
Exception
-
route
public org.apache.struts.action.ActionForward route(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.route the document using the document service- Overrides:
routein classKualiDocumentActionBase- Parameters:
mapping-form-request-response-- Returns:
- ActionForward
- Throws:
Exception
-
docHandler
public org.apache.struts.action.ActionForward docHandler(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Handles creating and loading of documents.- Overrides:
docHandlerin classKualiDocumentActionBase- Parameters:
mapping-form-request-response-- Returns:
- ActionForward
- Throws:
Exception
-
refresh
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 Deprecated.Called on return from a lookup.- Overrides:
refreshin classKualiDocumentActionBase- Throws:
Exception- See Also:
-
buildKeyMapFromRequest
protected Map<String,String> buildKeyMapFromRequest(Maintainable maintainable, javax.servlet.http.HttpServletRequest request) Deprecated.Gets keys for the maintainable business object from the persistence metadata explorer. Checks for existence of key property names as request parameters, if found adds them to the returned hash map. -
getRequestParameters
protected Map<String,String> getRequestParameters(List<String> keyFieldNames, Maintainable maintainable, javax.servlet.http.HttpServletRequest request) Deprecated. -
addLine
public org.apache.struts.action.ActionForward addLine(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Adds a line to a collection being maintained in a many section.- Throws:
Exception
-
getSubCollectionIndex
Deprecated. -
deleteLine
public org.apache.struts.action.ActionForward deleteLine(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Deletes a collection line that is pending by this document. The collection name and the index to delete is embedded into the delete button name. These parameters are extracted, the collection pulled out of the parent business object, and finally the collection record at the specified index is removed for the new maintainable, and the old if we are dealing with an edit.- Throws:
Exception
-
toggleInactiveRecordDisplay
public org.apache.struts.action.ActionForward toggleInactiveRecordDisplay(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Deprecated.Turns on (or off) the inactive record display for a maintenance collection.- Throws:
Exception
-
clearPrimaryKeyFields
Deprecated.This method clears the value of the primary key fields on a Business Object.- Parameters:
document- - document to clear the pk fields on
-
clearUnauthorizedNewFields
Deprecated.This method is used as part of the Copy functionality, to clear any field values that the user making the copy does not have permissions to modify. This will prevent authorization errors on a copy.- Parameters:
document- - document to be adjusted
-
doProcessingAfterPost
Deprecated.This method does all special processing on a document that should happen on each HTTP post (ie, save, route, approve, etc).- Overrides:
doProcessingAfterPostin classKualiDocumentActionBase
-
doProcessingAfterPost
Deprecated. -
populateAuthorizationFields
Deprecated.- Overrides:
populateAuthorizationFieldsin classKualiDocumentActionBase
-
getLookupService
Deprecated. -
getLookupResultsService
Deprecated. -
getMaintenanceDocumentDictionaryService
Deprecated.
-
MaintenanceDocumentController.