Class IncidentReportController

java.lang.Object
org.kuali.rice.krad.web.controller.UifControllerBase
org.kuali.rice.krad.web.controller.IncidentReportController

@Controller @RequestMapping("/incidentReport") public class IncidentReportController extends UifControllerBase
Handler for incident reports
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • IncidentReportController

      public IncidentReportController()
  • Method Details

    • createInitialForm

      protected IncidentReportForm createInitialForm()
      Invoked to create a new form instance for the request before it is passed to the Binder/BeanWrapper.
      Specified by:
      createInitialForm in class UifControllerBase
      Returns:
      UifFormBase instance that will be used for data binding and backing the view.
    • initForm

      @ModelAttribute("KualiForm") public UifFormBase initForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • submitReport

      @RequestMapping(method=POST, params="methodToCall=submitReport") public org.springframework.web.servlet.ModelAndView submitReport(UifFormBase uifForm, javax.servlet.http.HttpServletRequest request) throws Exception
      Emails the report and closes the incident report screen
      Throws:
      Exception
    • cancel

      @RequestMapping(params="methodToCall=cancel") public org.springframework.web.servlet.ModelAndView cancel(@ModelAttribute("KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Returns back to the application url on a cancel
      See Also: