Class KualiMaintenanceDocumentAction

java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction

@Deprecated public class KualiMaintenanceDocumentAction extends KualiDocumentActionBase
This class handles actions for maintenance documents. These include creating new edit, and copying of maintenance records.
  • Field Details

    • LOG

      protected static final org.apache.logging.log4j.Logger LOG
      Deprecated.
  • 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: KualiDocumentActionBase
      Entry 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:
      execute in class KualiDocumentActionBase
      Throws:
      Exception
      See Also:
      • Action.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    • 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:
      delete in class KualiDocumentActionBase
      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 Exception
      Deprecated.
      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:
      route in class KualiDocumentActionBase
      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:
      docHandler in class KualiDocumentActionBase
      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:
      refresh in class KualiDocumentActionBase
      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

      protected int getSubCollectionIndex(Object object, String documentTypeName)
      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

      protected void clearPrimaryKeyFields(MaintenanceDocument document)
      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

      protected void clearUnauthorizedNewFields(MaintenanceDocument document)
      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

      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).
      Overrides:
      doProcessingAfterPost in class KualiDocumentActionBase
    • doProcessingAfterPost

      protected void doProcessingAfterPost(KualiForm form, Map<String,String[]> parameters)
      Deprecated.
    • populateAuthorizationFields

      protected void populateAuthorizationFields(KualiDocumentFormBase formBase)
      Deprecated.
      Overrides:
      populateAuthorizationFields in class KualiDocumentActionBase
    • getLookupService

      public LookupService getLookupService()
      Deprecated.
    • getLookupResultsService

      public LookupResultsService getLookupResultsService()
      Deprecated.
    • getMaintenanceDocumentDictionaryService

      public MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
      Deprecated.