Class UifClientListener

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

@Controller @RequestMapping("/listener") public class UifClientListener extends UifControllerBase
Controller that receives various ajax requests from the client to manager server side state
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • UifClientListener

      public UifClientListener()
  • Method Details

    • createInitialForm

      protected UifFormBase 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.
    • clearForm

      @MethodAccessible @RequestMapping(params="methodToCall=clearForm") @ResponseBody public String clearForm(@RequestParam("formKeyToClear") String formKeyToClear, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Invoked from the client when the user is leaving a view (by the portal tabs or other mechanism) to clear the form from session storage
      Parameters:
      formKeyToClear - key of form that should be cleared
      Returns:
      String json success string
    • retrieveMessage

      @MethodAccessible @RequestMapping(params="methodToCall=retrieveMessage") @ResponseBody public String retrieveMessage(@RequestParam("key") String key, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Invoked from the client to retrieve text for a message
      Parameters:
      key - - key for the message
      Returns:
      String response in JSON format containing the message text
    • keepSessionAlive

      @MethodAccessible @RequestMapping(params="methodToCall=keepSessionAlive") @ResponseBody public String keepSessionAlive(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Invoked from the session timeout warning dialog to keep a session alive on behalf of a user
      Returns:
      String json success string
    • logout

      @MethodAccessible @RequestMapping(params="methodToCall=logout") public org.springframework.web.servlet.ModelAndView logout(@ModelAttribute("KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Invoked from the session timeout warning dialog to log the user out, forwards to logout message view