public class NavigationConfigElement
extends org.springframework.extensions.config.element.ConfigElementAdapter
| Constructor and Description |
|---|
NavigationConfigElement()
Default constructor
|
NavigationConfigElement(java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOverride(java.lang.String fromViewId,
java.lang.String fromOutcome,
NavigationResult result)
Adds an override configuration item
|
void |
addOverride(java.lang.String fromViewId,
java.lang.String fromOutcome,
java.lang.String toViewId,
java.lang.String toOutcome)
Adds an override configuration item
|
org.springframework.extensions.config.ConfigElement |
combine(org.springframework.extensions.config.ConfigElement configElement) |
java.util.List |
getChildren() |
java.util.HashMap |
getOutcomes()
Returns the list of outcomes that have overrides defined
|
NavigationResult |
getOverride(java.lang.String fromViewId,
java.lang.String fromOutcome)
Returns the best match navigation override configured for the given
current view id and/or outcome.
|
java.util.HashMap |
getViewIds()
Returns the list of view ids that have overrides defined
|
public NavigationConfigElement()
public NavigationConfigElement(java.lang.String name)
name - Name of the element this config element representspublic java.util.List getChildren()
getChildren in interface org.springframework.extensions.config.ConfigElementgetChildren in class org.springframework.extensions.config.element.ConfigElementAdapterorg.alfresco.config.ConfigElement#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.ConfigElementAdapterorg.alfresco.config.ConfigElement#combine(org.alfresco.config.ConfigElement)public java.util.HashMap getViewIds()
public java.util.HashMap getOutcomes()
public void addOverride(java.lang.String fromViewId,
java.lang.String fromOutcome,
java.lang.String toViewId,
java.lang.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(java.lang.String fromViewId,
java.lang.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(java.lang.String fromViewId, java.lang.String fromOutcome)
fromViewId - The current view idfromOutcome - The current outcomeCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.