Class RefreshControllerServiceImpl

java.lang.Object
org.kuali.rice.krad.web.service.impl.RefreshControllerServiceImpl
All Implemented Interfaces:
RefreshControllerService

public class RefreshControllerServiceImpl extends Object implements RefreshControllerService
Default implementation of the refresh controller service.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • RefreshControllerServiceImpl

      public RefreshControllerServiceImpl()
  • Method Details

    • refresh

      public org.springframework.web.servlet.ModelAndView refresh(UifFormBase form)
      Handles the refresh call by checking the request parameters and delegating out to helper methods. Invoked when returning from another view.

      Several places in the framework do a return from a view to another view. Examples are return from a lookup, breadcrumb navigation, and navigation methods provided by the controller. This is the default method invoked when returning to perform any additional functionality.

      Specified by:
      refresh in interface RefreshControllerService
      Parameters:
      form - form instance containing the model data
      Returns:
      ModelAndView instance for rendering the view
    • processMultiValueReturn

      protected void processMultiValueReturn(UifFormBase form, javax.servlet.http.HttpServletRequest request)
      Handles the return from a multi-value lookup, processing any select line values and invoking the configured view helper service to create the lines for those values in the model collection.

      There are two supported strategies for returning the selected lines. One, if the lookup view and the caller are within the same application container, Springs input flash map is used. If however, the lookup view is outside the caller, then just a standard request parameter is used.

      Parameters:
      form - form instance containing the model data
      request - http request object being handled
    • setFocusJumpFromQuickfinder

      protected void setFocusJumpFromQuickfinder(UifFormBase form, String quickfinderId)
      Retrieves the configured focus id and jump id for the quickfinder from the post metadata, and sets those values onto the form for the view rendering.
      Parameters:
      form - form instance containing the model data
      quickfinderId - id for the quickfinder component that triggered the lookup we are returning from
    • invokeQuickfinderCallback

      protected void invokeQuickfinderCallback(UifFormBase form, javax.servlet.http.HttpServletRequest request, String quickfinderId)
      Retrieves post metadata for the quickfinder component with the given id and if a callback method has been configured, invokes that callback method.
      Parameters:
      form - form instance containing the model data
      request - http request object being handled
      quickfinderId - id for the quickfinder component that triggered the lookup we are returning from
    • getModelAndViewService

      protected ModelAndViewService getModelAndViewService()
      Instance of model and view service to use within the collection service.
      Returns:
      ModelAndViewService instance
    • setModelAndViewService

      public void setModelAndViewService(ModelAndViewService modelAndViewService)
      See Also: