public class History extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTRY_TOKEN |
static String |
VAR_TOKEN |
| Constructor and Description |
|---|
History() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildHistoryFromParameterString(String parameterString)
Takes in the encoded history query parameter string passed on the url and parses it to create
the list of historyEntries.
|
protected String |
buildViewTitle(UifFormBase form)
Builds the title for the view to display in history (for example breadcrumbs)
|
HistoryEntry |
getCurrent()
Gets the current view's HistoryEntry.
|
List<HistoryEntry> |
getGeneratedBreadcrumbs()
Generates a list of HistoryEntries that can be used as breadcrumbs by the breadcrumb widget.
|
HistoryEntry |
getGeneratedCurrentBreadcrumb()
Gets the current HistoryEntry in the breadcrumb format described in getGeneratedBreadcrumbs
|
List<HistoryEntry> |
getHistoryEntries()
Gets a list of the current HistoryEntries not including the current entry.
|
String |
getHistoryParameterString()
Gets the encoded and tokenized history parameter string that is representative of the HistoryEntries
currently in History and includes the current view's HistoryEntry.
|
List<HistoryEntry> |
getHomewardPath()
Gets the predetermined homeward path for this view's history.
|
boolean |
isAppendHomewardPath() |
boolean |
isAppendPassedHistory() |
void |
pushToHistory(String viewId,
String pageId,
String title,
String url,
String formKey)
Pushes the information passed in to history.
|
void |
setAppendHomewardPath(boolean appendHomewardPath)
When this is set to true, the homeward path will be appended.
|
void |
setAppendPassedHistory(boolean appendPassedHistory)
Appends the passed history as each different view is shown.
|
void |
setCurrent(HistoryEntry current) |
void |
setCurrent(UifFormBase form,
javax.servlet.http.HttpServletRequest request)
Sets the current HistoryEntry using information from the form and the request.
|
void |
setHistoryEntries(List<HistoryEntry> history) |
void |
setHomewardPath(List<HistoryEntry> homewardPath) |
public static final String ENTRY_TOKEN
public static final String VAR_TOKEN
public History()
public List<HistoryEntry> getHomewardPath()
public void setHomewardPath(List<HistoryEntry> homewardPath)
homewardPath - the homewardPath to setpublic List<HistoryEntry> getHistoryEntries()
public void setHistoryEntries(List<HistoryEntry> history)
history - the history to setpublic HistoryEntry getCurrent()
public void setCurrent(HistoryEntry current)
current - the current to setpublic void buildHistoryFromParameterString(String parameterString)
parameterString - public String getHistoryParameterString()
public List<HistoryEntry> getGeneratedBreadcrumbs()
public HistoryEntry getGeneratedCurrentBreadcrumb()
public void pushToHistory(String viewId, String pageId, String title, String url, String formKey)
viewId - pageId - title - url - formKey - public void setAppendHomewardPath(boolean appendHomewardPath)
appendHomewardPath - the appendHomewardPath to setpublic boolean isAppendHomewardPath()
public void setAppendPassedHistory(boolean appendPassedHistory)
appendPassedHistory - the appendPassedHistory to setpublic boolean isAppendPassedHistory()
public void setCurrent(UifFormBase form, javax.servlet.http.HttpServletRequest request)
form - request - protected String buildViewTitle(UifFormBase form)
Retrieves the viewLabelFieldPropertyName from the view if configured, otherwise attempts to find the title attribute for the default data object. If view label property is found the corresponding property value is retrieved and appended to the title for the view
TODO: Possibly move so it can be used for the actual view title, not just historyform - - form instance containing the view and view dataCopyright © 2005–2016 The Kuali Foundation. All rights reserved.