public class NavigationConfigElement
extends org.springframework.extensions.config.element.ConfigElementAdapter
| Constructor and Description |
|---|
NavigationConfigElement()
Default constructor
|
NavigationConfigElement(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOverride(String fromViewId,
String fromOutcome,
NavigationResult result)
Adds an override configuration item
|
void |
addOverride(String fromViewId,
String fromOutcome,
String toViewId,
String toOutcome)
Adds an override configuration item
|
org.springframework.extensions.config.ConfigElement |
combine(org.springframework.extensions.config.ConfigElement configElement) |
List<org.springframework.extensions.config.ConfigElement> |
getChildren() |
HashMap<String,NavigationResult> |
getOutcomes()
Returns the list of outcomes that have overrides defined
|
NavigationResult |
getOverride(String fromViewId,
String fromOutcome)
Returns the best match navigation override configured for the given
current view id and/or outcome.
|
HashMap<String,NavigationResult> |
getViewIds()
Returns the list of view ids that have overrides defined
|
public NavigationConfigElement()
public NavigationConfigElement(String name)
name - Name of the element this config element representspublic List<org.springframework.extensions.config.ConfigElement> getChildren()
getChildren in interface org.springframework.extensions.config.ConfigElementgetChildren in class org.springframework.extensions.config.element.ConfigElementAdapterConfigElement.getChildren()public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
combine in interface org.springframework.extensions.config.ConfigElementcombine in class org.springframework.extensions.config.element.ConfigElementAdapterConfigElement.combine(org.springframework.extensions.config.ConfigElement)public HashMap<String,NavigationResult> getViewIds()
public HashMap<String,NavigationResult> getOutcomes()
public void addOverride(String fromViewId, String fromOutcome, String toViewId, String toOutcome)
fromViewId - The from-view-id value from the configfromOutcome - The from-outcome value from the configtoViewId - The to-view-id value from the configtoOutcome - The to-outcome value from the configpublic void addOverride(String fromViewId, String fromOutcome, NavigationResult result)
fromViewId - The from-view-id value from the configfromOutcome - The from-outcome value from the configresult - The navigation result object to addpublic NavigationResult getOverride(String fromViewId, String fromOutcome)
fromViewId - The current view idfromOutcome - The current outcomeCopyright © 2005–2018 Alfresco Software. All rights reserved.