|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.extensions.config.element.ConfigElementAdapter
org.alfresco.web.config.NavigationConfigElement
public class NavigationConfigElement
Custom config element that represents the config data for navigation
Field Summary |
---|
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter |
---|
attributes, children, name, value |
Constructor Summary | |
---|---|
NavigationConfigElement()
Default constructor |
|
NavigationConfigElement(java.lang.String name)
Constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter |
---|
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getChildrenMap, getChildValue, getName, getValue, hasAttribute, hasChildren, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NavigationConfigElement()
public NavigationConfigElement(java.lang.String name)
name
- Name of the element this config element representsMethod Detail |
---|
public java.util.List getChildren()
getChildren
in interface org.springframework.extensions.config.ConfigElement
getChildren
in class org.springframework.extensions.config.element.ConfigElementAdapter
org.alfresco.config.ConfigElement#getChildren()
public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
combine
in interface org.springframework.extensions.config.ConfigElement
combine
in class org.springframework.extensions.config.element.ConfigElementAdapter
org.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 outcome
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |