public class HistoryFlow extends Object implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
protected BreadcrumbItem | 
currentViewItem  | 
protected String | 
flowKey  | 
protected String | 
flowReturnPoint  | 
protected String | 
flowStartPoint  | 
protected Stack<UrlInfo> | 
flowUrls  | 
protected List<BreadcrumbItem> | 
pastItems  | 
| Constructor and Description | 
|---|
HistoryFlow(String flowKey)
Initialize a new HistoryFlow with a key 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clear all urls on the history stack and accumulated breadcrumbs 
 | 
void | 
continueFlow(HistoryFlow prevFlow)
Continue a new flow from a previous flow. 
 | 
String | 
getCurrentLocation()
Get the last url on the history stack 
 | 
BreadcrumbItem | 
getCurrentViewItem()
Get the item which represents the most current BreadcrumbItem for the View for this flow 
 | 
String | 
getFlowKey()
The flowKey used to identify the HistoryFlow 
 | 
String | 
getFlowReturnPoint()
The returnPoint used to jump back to a previous flow 
 | 
String | 
getFlowStartPoint()
Represents the very first url in the flow, the "start point", the view that initiated this flow trail 
 | 
Stack<UrlInfo> | 
getFlowUrls()
Get all urls in the HistoryFlow stack 
 | 
List<BreadcrumbItem> | 
getPastItems()
Get all the past BreadcrumbItems (these represents the path to the current item) 
 | 
void | 
push(String url)
Push the url onto the history stack 
 | 
void | 
push(UrlInfo urlInfo)
Push the url onto the history stack 
 | 
void | 
setCurrentViewItem(BreadcrumbItem currentViewItem)
Set the current BreadcrumbItem 
 | 
void | 
setFlowKey(String flowKey)
Set the flowKey for this HistoryFlow 
 | 
void | 
setFlowReturnPoint(String flowReturnPoint)
Set the returnPoint for use to jump back to the previous flow 
 | 
void | 
setFlowStartPoint(String flowStartPoint)  | 
void | 
setFlowUrls(Stack<UrlInfo> flowUrls)
Set the flowUrls for this HistoryFlow 
 | 
void | 
setPastItems(List<BreadcrumbItem> pastItems)
Set the past BreadcrumbItems 
 | 
void | 
update(String url)
Update the last url on the history stack with the new value 
 | 
void | 
update(UrlInfo urlInfo)
Update the last url on the history stack with the new value 
 | 
protected String flowReturnPoint
protected String flowStartPoint
protected BreadcrumbItem currentViewItem
protected List<BreadcrumbItem> pastItems
public HistoryFlow(String flowKey)
flowKey - the flowKey to usepublic Stack<UrlInfo> getFlowUrls()
public void setFlowUrls(Stack<UrlInfo> flowUrls)
flowUrls - public String getFlowReturnPoint()
public void setFlowReturnPoint(String flowReturnPoint)
flowReturnPoint - public String getFlowStartPoint()
public void setFlowStartPoint(String flowStartPoint)
getFlowStartPoint()public String getFlowKey()
public void setFlowKey(String flowKey)
flowKey - public void push(String url)
url - the url to pushpublic void push(UrlInfo urlInfo)
urlInfo - the urlInfo object to pushpublic void update(String url)
url - the url to update topublic void update(UrlInfo urlInfo)
urlInfo - the UrlInfo object to update topublic String getCurrentLocation()
public void clear()
public void continueFlow(HistoryFlow prevFlow)
prevFlow - public BreadcrumbItem getCurrentViewItem()
public void setCurrentViewItem(BreadcrumbItem currentViewItem)
currentViewItem - public List<BreadcrumbItem> getPastItems()
public void setPastItems(List<BreadcrumbItem> pastItems)
pastItems - Copyright © 2005–2016 The Kuali Foundation. All rights reserved.