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.
 
- Since:
- 2.0
- 
Constructor SummaryConstructorsConstructorDescriptionMutableNavigationCase(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) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetCondition(FacesContext context) Evaluates the<if>for this<navigation-case>, if any.Return the<from-action>for this<navigation-case>Return the<from-outcome>for this<navigation-case>Return the<from-view-id>of the<navigation-rule>inside which this<navigation-case>is nested.Return the parameters to be included for navigation cases requiring a redirect.If this navigation case represents a flow invocation, this property is the documentId in which the flow whose id is given by the return fromNavigationCase.getFromOutcome()is defined.getToViewId(FacesContext context) Evaluates the<to-view-id>for this<navigation-case>booleanTest if this navigation case has an associated<if>element.inthashCode()booleanReturn the<redirect>value for this<navigation-case>.booleanReturn the<redirect>value for this<navigation-case>.voidsetCondition(String condition) voidsetConditionExpression(ValueExpression conditionExpression) voidsetFromAction(String fromAction) voidsetFromOutcome(String fromOutcome) voidsetFromViewId(String fromViewId) voidsetIncludeViewParams(boolean includeViewParams) voidsetRedirect(boolean redirect) voidsetToFlowDocumentId(String toFlowDocumentId) voidsetToViewId(String toViewId) toString()Methods inherited from class jakarta.faces.application.NavigationCasegetActionURL, getBookmarkableURL, getRedirectURL, getResourceURL
- 
Constructor Details- 
MutableNavigationCasepublic MutableNavigationCase()
- 
MutableNavigationCase
- 
MutableNavigationCase
 
- 
- 
Method Details- 
getFromViewIdDescription copied from class:NavigationCaseReturn the <from-view-id>of the<navigation-rule>inside which this<navigation-case>is nested.- Overrides:
- getFromViewIdin class- NavigationCase
- Returns:
- the from viedId.
 
- 
setFromViewId
- 
getFromActionDescription copied from class:NavigationCaseReturn the <from-action>for this<navigation-case>- Overrides:
- getFromActionin class- NavigationCase
- Returns:
- the from action.
 
- 
setFromAction
- 
getFromOutcomeDescription copied from class:NavigationCaseReturn the <from-outcome>for this<navigation-case>- Overrides:
- getFromOutcomein class- NavigationCase
- Returns:
- the from outcome.
 
- 
setFromOutcome
- 
getToViewIdDescription copied from class:NavigationCaseEvaluates the <to-view-id>for this<navigation-case>- Overrides:
- getToViewIdin class- NavigationCase
- Parameters:
- context- the- FacesContextfor the current request
- Returns:
- the view ID that should be navigated to
 
- 
setToViewId
- 
getToFlowDocumentIdDescription copied from class:NavigationCaseIf 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.- Overrides:
- getToFlowDocumentIdin class- NavigationCase
- Returns:
- the toFlow documentId.
 
- 
setToFlowDocumentId
- 
hasConditionpublic boolean hasCondition()Description copied from class:NavigationCaseTest if this navigation case has an associated <if>element.- Overrides:
- hasConditionin class- NavigationCase
- Returns:
- trueif there's an- <if>element associated with this- <navigation-case>, otherwise- false
 
- 
getConditionDescription copied from class:NavigationCaseEvaluates the Note throws any exceptions encountered during the process of evaluating the expression or obtaining its value.<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 abooleanper the normal Jakarta Expression Language coercion rules.- Overrides:
- getConditionin class- NavigationCase
- Parameters:
- context- the- FacesContextfor the current request
- Returns:
- nullif there is no- <if>element associated with this- <navigation-case>, otherwise return the evaluation result of the condition
 
- 
setCondition
- 
setConditionExpression
- 
getParametersDescription copied from class:NavigationCaseReturn the parameters to be included for navigation cases requiring a redirect. If no parameters are defined, nullwill be returned. The keys in theMapare parameter names. For each key, the corresponding value is aListof unconverted values.- Overrides:
- getParametersin class- NavigationCase
- Returns:
- the list of parameters, or null
 
- 
isRedirectpublic boolean isRedirect()Description copied from class:NavigationCaseReturn the <redirect>value for this<navigation-case>. This will betrueif the new view should be navigated to via aExternalContext.redirect(String)- Overrides:
- isRedirectin class- NavigationCase
- Returns:
- trueif this is a redirect,- falseotherwise.
 
- 
setRedirectpublic void setRedirect(boolean redirect) 
- 
isIncludeViewParamspublic boolean isIncludeViewParams()Description copied from class:NavigationCaseReturn the <redirect>value for this<navigation-case>. This will betrueif the view parametets should be encoded into the redirect URL (only applies to redirect case)- Overrides:
- isIncludeViewParamsin class- NavigationCase
- Returns:
- trueif view parameters are to be included,- falseotherwise.
 
- 
setIncludeViewParamspublic void setIncludeViewParams(boolean includeViewParams) 
- 
equals- Overrides:
- equalsin class- NavigationCase
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- NavigationCase
 
- 
toString- Overrides:
- toStringin class- NavigationCase
 
 
-