Class RefreshControllerServiceImpl
java.lang.Object
org.kuali.rice.krad.web.service.impl.RefreshControllerServiceImpl
- All Implemented Interfaces:
RefreshControllerService
Default implementation of the refresh controller service.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelAndViewServiceInstance of model and view service to use within the collection service.protected voidinvokeQuickfinderCallback(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.protected voidprocessMultiValueReturn(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.org.springframework.web.servlet.ModelAndViewrefresh(UifFormBase form) Handles the refresh call by checking the request parameters and delegating out to helper methods.protected voidsetFocusJumpFromQuickfinder(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.voidsetModelAndViewService(ModelAndViewService modelAndViewService)
-
Constructor Details
-
RefreshControllerServiceImpl
public RefreshControllerServiceImpl()
-
-
Method Details
-
refresh
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:
refreshin interfaceRefreshControllerService- 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 datarequest- http request object being handled
-
setFocusJumpFromQuickfinder
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 dataquickfinderId- 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 datarequest- http request object being handledquickfinderId- id for the quickfinder component that triggered the lookup we are returning from
-
getModelAndViewService
Instance of model and view service to use within the collection service.- Returns:
- ModelAndViewService instance
-
setModelAndViewService
- See Also:
-