Class InquiryControllerServiceImpl

java.lang.Object
org.kuali.rice.krad.web.service.impl.ControllerServiceImpl
org.kuali.rice.krad.inquiry.InquiryControllerServiceImpl
All Implemented Interfaces:
InquiryControllerService, ControllerService

public class InquiryControllerServiceImpl extends ControllerServiceImpl implements InquiryControllerService
Override of navigation controller service to check if the initial inquiry needs redirected and also to retrieve the inquiry data object on the initial call.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • InquiryControllerServiceImpl

      public InquiryControllerServiceImpl()
  • Method Details

    • start

      public org.springframework.web.servlet.ModelAndView start(UifFormBase form)
      Determines if the inquiry request needs to be redirected based on the module service, if not retrieves the inquiry data object and sets the instance onto the form for display.

      Note the inquiry data object is retrieved based on the key values passed by the request.

      Initial method called when requesting a new view instance.
      Specified by:
      start in interface ControllerService
      Overrides:
      start in class ControllerServiceImpl
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • checkForModuleInquiryRedirect

      protected org.springframework.web.servlet.ModelAndView checkForModuleInquiryRedirect(InquiryForm inquiryForm, javax.servlet.http.HttpServletRequest request)
      Checks for a module service that claims the inquiry class as an EBO, and if found redirects to the URL given by the module service.
      Parameters:
      inquiryForm - form instance containing the inquiry data
      request - http request being handled
      Returns:
      ModelAndView instance for redirecting to the inquiry, or null if a redirect is not needed
    • downloadDataObjectAttachment

      public void downloadDataObjectAttachment(InquiryForm form, javax.servlet.http.HttpServletResponse response)
      When the data object is a PersistableAttachment or PersistableAttachmentList, streams the selected attachment back to the response.
      Specified by:
      downloadDataObjectAttachment in interface InquiryControllerService
      Parameters:
      form - form instance containing the inquiry data
      response - Http response for returning the attachment contents
    • downloadCustomDataObjectAttachment

      public void downloadCustomDataObjectAttachment(InquiryForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      When the data object is a custom object, streams the requested attachment back to the response.
      Specified by:
      downloadCustomDataObjectAttachment in interface InquiryControllerService
      Parameters:
      form - form instance containing the inquiry data
      request - Http request for sending the fileName, contentType, and fileContentDataObjField
      response - Http response for returning the attachment contents
      Throws:
      Exception
    • downloadBONote

      public void downloadBONote(InquiryForm form, javax.servlet.http.HttpServletResponse response)
      Retrieves a note attachment by the line index of the note within the inquiry boNotes collection Invoked to download an attachment that has been uploaded for a note.
      Specified by:
      downloadBONote in interface InquiryControllerService
      Parameters:
      form - form instance containing the note (and attachment) instance
      response - http servlet response instance for sending back the attachment contents
    • getNoteService

      public org.kuali.rice.krad.service.NoteService getNoteService()
    • setNoteService

      public void setNoteService(org.kuali.rice.krad.service.NoteService noteService)