public class NavigationControllerServiceImpl extends Object implements NavigationControllerService
Constructor and Description |
---|
NavigationControllerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.ModelAndView |
back(UifFormBase form)
Returns back to a previous URL by looking at various return mechanisms in HistoryFlow and on the form.
|
protected ModelAndViewService |
getModelAndViewService() |
protected String |
getReturnUrl(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.ModelAndView |
navigate(UifFormBase form)
Invoked to navigate to a new page within the view.
|
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.
|
org.springframework.web.servlet.ModelAndView |
returnToHub(UifFormBase form)
Invoked to navigate back to the first page in the user's history.
|
org.springframework.web.servlet.ModelAndView |
returnToPrevious(UifFormBase form)
Invoked to navigate back one page in the user's history.
|
void |
setModelAndViewService(ModelAndViewService modelAndViewService) |
public NavigationControllerServiceImpl()
public org.springframework.web.servlet.ModelAndView back(UifFormBase form)
Method supports the general back action component.
back
in interface NavigationControllerService
form
- form instance containing the model datapublic org.springframework.web.servlet.ModelAndView returnToPrevious(UifFormBase form)
returnToPrevious
in interface NavigationControllerService
form
- form instance containing the model datapublic org.springframework.web.servlet.ModelAndView returnToHub(UifFormBase form)
returnToHub
in interface NavigationControllerService
form
- form instance containing the model datapublic org.springframework.web.servlet.ModelAndView returnToHistory(UifFormBase form, boolean returnToPrevious, boolean returnToApplicationHome, boolean returnToFlowStart)
returnToHistory
in interface NavigationControllerService
form
- form instance containing the model datareturnToApplicationHome
- indicates whether the user should be returned to the application home URLprotected String getReturnUrl(UifFormBase form, boolean returnToPrevious, boolean returnToApplicationHome, boolean returnToFlowStart)
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 pointpublic org.springframework.web.servlet.ModelAndView navigate(UifFormBase form)
navigate
in interface NavigationControllerService
form
- form instance containing the model dataprotected ModelAndViewService getModelAndViewService()
public void setModelAndViewService(ModelAndViewService modelAndViewService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.