Class NavigationControllerServiceImpl
java.lang.Object
org.kuali.rice.krad.web.service.impl.NavigationControllerServiceImpl
- All Implemented Interfaces:
NavigationControllerService
Default implementation of the navigation controller service.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewback(UifFormBase form) Returns back to a previous URL by looking at various return mechanisms in HistoryFlow and on the form.protected ModelAndViewServiceprotected StringgetReturnUrl(UifFormBase form, boolean returnToPrevious, boolean returnToApplicationHome, boolean returnToFlowStart) Gets the URL to return to based form data and the given flags.org.springframework.web.servlet.ModelAndViewnavigate(UifFormBase form) Invoked to navigate to a new page within the view.org.springframework.web.servlet.ModelAndViewreturnToHistory(UifFormBase form, boolean returnToPrevious, boolean returnToApplicationHome, boolean returnToFlowStart) Invoked to navigate back to a point in the user's history.org.springframework.web.servlet.ModelAndViewreturnToHub(UifFormBase form) Invoked to navigate back to the first page in the user's history.org.springframework.web.servlet.ModelAndViewreturnToPrevious(UifFormBase form) Invoked to navigate back one page in the user's history.voidsetModelAndViewService(ModelAndViewService modelAndViewService)
-
Constructor Details
-
NavigationControllerServiceImpl
public NavigationControllerServiceImpl()
-
-
Method Details
-
back
Returns back to a previous URL by looking at various return mechanisms in HistoryFlow and on the form.Method supports the general back action component.
- Specified by:
backin interfaceNavigationControllerService- Parameters:
form- form instance containing the model data- Returns:
- ModelAndView instance for rendering the view
-
returnToPrevious
Invoked to navigate back one page in the user's history.- Specified by:
returnToPreviousin interfaceNavigationControllerService- Parameters:
form- form instance containing the model data- Returns:
- ModelAndView instance for rendering the view
-
returnToHub
Invoked to navigate back to the first page in the user's history.- Specified by:
returnToHubin interfaceNavigationControllerService- Parameters:
form- form instance containing the model data- Returns:
- ModelAndView instance for rendering the view
-
returnToHistory
public org.springframework.web.servlet.ModelAndView returnToHistory(UifFormBase form, boolean returnToPrevious, boolean returnToApplicationHome, boolean returnToFlowStart) Invoked to navigate back to a point in the user's history.- Specified by:
returnToHistoryin interfaceNavigationControllerService- Parameters:
form- form instance containing the model datareturnToApplicationHome- indicates whether the user should be returned to the application home URL- Returns:
- ModelAndView instance for rendering the view
-
getReturnUrl
protected String getReturnUrl(UifFormBase form, boolean returnToPrevious, boolean returnToApplicationHome, boolean returnToFlowStart) Gets the URL to return to based form data and the given flags.- Parameters:
form- form instance containing return location (possibly) and history managerreturnToPrevious- whether we should return to the previous viewreturnToApplicationHome- whether we should return to the configured application homereturnToFlowStart- when in a flow, whether to return to the flow start point- Returns:
- String URL
-
getModelAndViewService
-
setModelAndViewService
-