Package org.kuali.rice.krad.web.form
Class HistoryFlow
java.lang.Object
org.kuali.rice.krad.web.form.HistoryFlow
- All Implemented Interfaces:
Serializable
HistoryFlow represents the a flow of urls. When the flow is continued, the flow inherits the urls/breadcrumbs from
a previous flow. Using a flow key it is possible to jump back to previous flows.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BreadcrumbItemprotected Stringprotected Stringprotected Stringprotected List<BreadcrumbItem> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all urls on the history stack and accumulated breadcrumbsvoidcontinueFlow(HistoryFlow prevFlow) Continue a new flow from a previous flow.Get the last url on the history stackGet the item which represents the most current BreadcrumbItem for the View for this flowThe flowKey used to identify the HistoryFlowThe returnPoint used to jump back to a previous flowRepresents the very first url in the flow, the "start point", the view that initiated this flow trailGet all urls in the HistoryFlow stackGet all the past BreadcrumbItems (these represents the path to the current item)voidPush the url onto the history stackvoidPush the url onto the history stackvoidsetCurrentViewItem(BreadcrumbItem currentViewItem) Set the current BreadcrumbItemvoidsetFlowKey(String flowKey) Set the flowKey for this HistoryFlowvoidsetFlowReturnPoint(String flowReturnPoint) Set the returnPoint for use to jump back to the previous flowvoidsetFlowStartPoint(String flowStartPoint) voidsetFlowUrls(Stack<UrlInfo> flowUrls) Set the flowUrls for this HistoryFlowvoidsetPastItems(List<BreadcrumbItem> pastItems) Set the past BreadcrumbItemsvoidUpdate the last url on the history stack with the new valuevoidUpdate the last url on the history stack with the new value
-
Field Details
-
flowKey
-
flowReturnPoint
-
flowStartPoint
-
flowUrls
-
currentViewItem
-
pastItems
-
-
Constructor Details
-
HistoryFlow
Initialize a new HistoryFlow with a key- Parameters:
flowKey- the flowKey to use
-
-
Method Details
-
getFlowUrls
Get all urls in the HistoryFlow stack- Returns:
- the stack of HistoryFlow urls
-
setFlowUrls
Set the flowUrls for this HistoryFlow- Parameters:
flowUrls-
-
getFlowReturnPoint
The returnPoint used to jump back to a previous flow- Returns:
- the flowReturnPoint
-
setFlowReturnPoint
Set the returnPoint for use to jump back to the previous flow- Parameters:
flowReturnPoint-
-
getFlowStartPoint
Represents the very first url in the flow, the "start point", the view that initiated this flow trail- Returns:
- the very first url in the flow
-
setFlowStartPoint
- See Also:
-
getFlowKey
The flowKey used to identify the HistoryFlow- Returns:
-
setFlowKey
Set the flowKey for this HistoryFlow- Parameters:
flowKey-
-
push
Push the url onto the history stack- Parameters:
url- the url to push
-
push
Push the url onto the history stack- Parameters:
urlInfo- the urlInfo object to push
-
update
Update the last url on the history stack with the new value- Parameters:
url- the url to update to
-
update
Update the last url on the history stack with the new value- Parameters:
urlInfo- the UrlInfo object to update to
-
getCurrentLocation
Get the last url on the history stack- Returns:
- the last url on the history stack
-
clear
public void clear()Clear all urls on the history stack and accumulated breadcrumbs -
continueFlow
Continue a new flow from a previous flow. This will copy the prevFlow's flow urls to flowUrls, pastItems and currentViewItem to the new flow's pastItems, and set the flowReturnPoint to the currentLocation of the prevFlow.- Parameters:
prevFlow-
-
getCurrentViewItem
Get the item which represents the most current BreadcrumbItem for the View for this flow- Returns:
- the View BreadcrumbItem
-
setCurrentViewItem
Set the current BreadcrumbItem- Parameters:
currentViewItem-
-
getPastItems
Get all the past BreadcrumbItems (these represents the path to the current item)- Returns:
- the past BreadcrumbItems
-
setPastItems
Set the past BreadcrumbItems- Parameters:
pastItems-
-