org.kuali.rice.krad.web.controller
Class InquiryController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.rice.krad.web.controller.InquiryController
Direct Known Subclasses:
AgendaInquiryController

@Controller
@RequestMapping(value="/inquiry")
public class InquiryController
extends UifControllerBase

Controller for InquiryView screens which handle initial requests for the inquiry and actions coming from the inquiry view such as export

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
InquiryController()
           
 
Method Summary
protected  InquiryForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          Called to create a new model(form) object when necessary.
 org.springframework.web.servlet.ModelAndView export(UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles exporting the BusinessObject for this Inquiry to XML if it has a custom XML exporter available.
 org.springframework.web.servlet.ModelAndView start(UifFormBase form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked to request an inquiry view for a data object class
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addBlankLine, addLine, back, cancel, checkForm, checkViewAuthorization, createDataTablesPagingHelperInstance, defaultMapping, deleteLine, getBooleanDialogResponse, getMessageView, getStringDialogResponse, getUIFModelAndView, getUIFModelAndView, getUIFModelAndView, getUIFModelAndViewWithInit, getValidatedFormatType, getViewService, hasDialogBeenAnswered, hasDialogBeenDisplayed, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, performRedirect, refresh, retrieveCollectionPage, retrieveOriginalComponent, retrieveTableData, returnFromLightbox, returnToHistory, returnToHub, returnToPrevious, saveLine, sessionTimeout, setAttachmentResponseHeader, showDialog, tableCsvRetrieval, tableJsonRetrieval, tableXlsRetrieval, tableXmlRetrieval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InquiryController

public InquiryController()
Method Detail

createInitialForm

protected InquiryForm createInitialForm(javax.servlet.http.HttpServletRequest request)
Description copied from class: UifControllerBase
Called to create a new model(form) object when necessary. This usually occurs on the initial request in a conversation (when the model is not present in the session). This method must be overridden when extending a controller and using a different form type than the superclass.

Specified by:
createInitialForm in class UifControllerBase
Parameters:
request - - the http request that was made
See Also:
UifControllerBase.createInitialForm(javax.servlet.http.HttpServletRequest)

start

@RequestMapping(params="methodToCall=start")
public org.springframework.web.servlet.ModelAndView start(@ModelAttribute(value="KualiForm")
                                                                         UifFormBase form,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
Invoked to request an inquiry view for a data object class

Checks if the data object is externalizable and we need to redirect to the appropriate inquiry URL, else continues with the inquiry view display

Data object class name and values for a primary or alternate key set must be sent in the request

Invokes the inquirable to perform the query for the data object record, if not found an exception will be thrown. If found the object is set on the form and then the view is rendered

Overrides:
start in class UifControllerBase

export

@RequestMapping(params="methodToCall=export")
public org.springframework.web.servlet.ModelAndView export(@ModelAttribute(value="KualiForm")
                                                                          UifFormBase form,
                                                                          org.springframework.validation.BindingResult result,
                                                                          javax.servlet.http.HttpServletRequest request,
                                                                          javax.servlet.http.HttpServletResponse response)
                                                    throws Exception
Handles exporting the BusinessObject for this Inquiry to XML if it has a custom XML exporter available.

Throws:
Exception


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.