public class MutableNavigationCase extends NavigationCase
NavigationCase represents a <navigation-case> in
the navigation rule base, as well as the <from-view-id> with
which this <navigation-case> is a sibling.
| Constructor and Description |
|---|
MutableNavigationCase() |
MutableNavigationCase(String fromViewId,
String fromAction,
String fromOutcome,
String condition,
String toViewId,
String toFlowDocumentId,
boolean redirect,
boolean includeViewParams) |
MutableNavigationCase(String fromViewId,
String fromAction,
String fromOutcome,
String condition,
String toViewId,
String toFlowDocumentId,
Map<String,List<String>> parameters,
boolean redirect,
boolean includeViewParams) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getCondition(FacesContext context)
Evaluates the |
String |
getFromAction()
Return the |
String |
getFromOutcome()
Return the |
String |
getFromViewId()
Return the |
Map<String,List<String>> |
getParameters()
Return the parameters to be included for navigation cases requiring a redirect. |
String |
getToFlowDocumentId()
If this navigation case represents a flow invocation, this property is the documentId in which the flow whose id is
given by the return from |
String |
getToViewId(FacesContext context)
Evaluates the |
boolean |
hasCondition()
Test if this navigation case has an associated |
int |
hashCode() |
boolean |
isIncludeViewParams()
Return the |
boolean |
isRedirect()
Return the |
void |
setCondition(String condition) |
void |
setConditionExpression(jakarta.el.ValueExpression conditionExpression) |
void |
setFromAction(String fromAction) |
void |
setFromOutcome(String fromOutcome) |
void |
setFromViewId(String fromViewId) |
void |
setIncludeViewParams(boolean includeViewParams) |
void |
setRedirect(boolean redirect) |
void |
setToFlowDocumentId(String toFlowDocumentId) |
void |
setToViewId(String toViewId) |
String |
toString() |
getActionURL, getBookmarkableURL, getRedirectURL, getResourceURLpublic MutableNavigationCase()
public MutableNavigationCase(String fromViewId, String fromAction, String fromOutcome, String condition, String toViewId, String toFlowDocumentId, Map<String,List<String>> parameters, boolean redirect, boolean includeViewParams)
public String getFromViewId()
NavigationCase
Return the <from-view-id> of the <navigation-rule> inside which this
<navigation-case> is nested.
getFromViewId in class NavigationCasepublic void setFromViewId(String fromViewId)
public String getFromAction()
NavigationCase
Return the <from-action> for this <navigation-case>
getFromAction in class NavigationCasepublic void setFromAction(String fromAction)
public String getFromOutcome()
NavigationCase
Return the <from-outcome> for this <navigation-case>
getFromOutcome in class NavigationCasepublic void setFromOutcome(String fromOutcome)
public String getToViewId(FacesContext context)
NavigationCase
Evaluates the <to-view-id> for this <navigation-case>
getToViewId in class NavigationCasecontext - the FacesContext for the current requestpublic void setToViewId(String toViewId)
public String getToFlowDocumentId()
NavigationCase
If this navigation case represents a flow invocation, this property is the documentId in which the flow whose id is
given by the return from NavigationCase.getFromOutcome() is defined. Implementations must override this method to return
the value defined in the corresponding application configuration resources element. The base implementation returns
the empty string.
getToFlowDocumentId in class NavigationCasepublic void setToFlowDocumentId(String toFlowDocumentId)
public boolean hasCondition()
NavigationCase
Test if this navigation case has an associated <if> element.
hasCondition in class NavigationCasetrue if there's an <if> element associated with this
<navigation-case>, otherwise falsepublic Boolean getCondition(FacesContext context)
NavigationCase
Evaluates the <if> for this <navigation-case>, if any. The expression to be
evaluated is passed into the constructor as a string. When the expression is evaluated, its value must be coerced
into a boolean per the normal Jakarta Expression Language coercion rules.
getCondition in class NavigationCasecontext - the FacesContext for the current requestnull if there is no <if> element associated with this
<navigation-case>, otherwise return the evaluation result of the conditionpublic void setCondition(String condition)
public void setConditionExpression(jakarta.el.ValueExpression conditionExpression)
public Map<String,List<String>> getParameters()
NavigationCase
Return the parameters to be included for navigation cases requiring a redirect. If no parameters are defined,
null will be returned. The keys in the Map are parameter names. For each key, the
corresponding value is a List of unconverted values.
getParameters in class NavigationCasenullpublic boolean isRedirect()
NavigationCase
Return the <redirect> value for this <navigation-case>. This will be
true if the new view should be navigated to via a
ExternalContext.redirect(String)
isRedirect in class NavigationCasetrue if this is a redirect, false otherwise.public void setRedirect(boolean redirect)
public boolean isIncludeViewParams()
NavigationCase
Return the <redirect> value for this <navigation-case>. This will be
true if the view parametets should be encoded into the redirect URL (only applies to redirect case)
isIncludeViewParams in class NavigationCasetrue if view parameters are to be included, false otherwise.public void setIncludeViewParams(boolean includeViewParams)
public boolean equals(Object obj)
equals in class NavigationCasepublic int hashCode()
hashCode in class NavigationCasepublic String toString()
toString in class NavigationCaseCopyright © 1997–2020 Eclipse Foundation. All rights reserved.