Package org.kuali.rice.krad.inquiry
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.servlet.ModelAndViewcheckForModuleInquiryRedirect(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.voiddownloadBONote(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.voiddownloadCustomDataObjectAttachment(InquiryForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) When the data object is a custom object, streams the requested attachment back to the response.voiddownloadDataObjectAttachment(InquiryForm form, javax.servlet.http.HttpServletResponse response) When the data object is aPersistableAttachmentorPersistableAttachmentList, streams the selected attachment back to the response.voidsetNoteService(NoteService noteService) org.springframework.web.servlet.ModelAndViewstart(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.Methods inherited from class org.kuali.rice.krad.web.service.impl.ControllerServiceImpl
cancel, checkViewAuthorization, getModelAndViewService, getNavigationControllerService, sessionTimeout, setModelAndViewService, setNavigationControllerServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.web.service.ControllerService
cancel, checkViewAuthorization, sessionTimeout
-
Constructor Details
-
InquiryControllerServiceImpl
public InquiryControllerServiceImpl()
-
-
Method Details
-
start
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:
startin interfaceControllerService- Overrides:
startin classControllerServiceImpl- 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 datarequest- 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 aPersistableAttachmentorPersistableAttachmentList, streams the selected attachment back to the response.- Specified by:
downloadDataObjectAttachmentin interfaceInquiryControllerService- Parameters:
form- form instance containing the inquiry dataresponse- 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:
downloadCustomDataObjectAttachmentin interfaceInquiryControllerService- Parameters:
form- form instance containing the inquiry datarequest- Http request for sending the fileName, contentType, and fileContentDataObjFieldresponse- Http response for returning the attachment contents- Throws:
Exception
-
downloadBONote
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:
downloadBONotein interfaceInquiryControllerService- Parameters:
form- form instance containing the note (and attachment) instanceresponse- http servlet response instance for sending back the attachment contents
-
getNoteService
-
setNoteService
-