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

@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)

Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
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, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked to display the inquiry view for a data object record
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addLine, addMethodToCallToUncheckedList, cancel, checkAuthorization, close, deleteLine, getMethodToCallsToNotCheckAuthorization, getRoleQualification, getSessionDocumentService, getUIFModelAndView, getUIFModelAndView, getViewService, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, returnToHistory, returnToHub, returnToPrevious, toggleInactiveRecordDisplay, updateComponent
 
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
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,
                                                                         org.springframework.validation.BindingResult result,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
Invoked to display the inquiry view for a data object record

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-2011 The Kuali Foundation. All Rights Reserved.