org.apache.myfaces.application
Class FlowNavigationCase

java.lang.Object
  extended by javax.faces.application.NavigationCase
      extended by javax.faces.application.NavigationCaseWrapper
          extended by org.apache.myfaces.application.FlowNavigationCase
All Implemented Interfaces:
FacesWrapper<NavigationCase>

public class FlowNavigationCase
extends NavigationCaseWrapper

Wrapper that helps overriding toFlowDocumentId and fromOutcome, to build correctly a navigation case that cause a flow action (enter into a flow or return from a flow). The idea is if is necessary to enter into a flow set fromOutcome as the flow id and toFlowDocumentId as the flow document id. If it is a return, set fromOutcome as the return node and toFlowDocumentId as FlowHandler.NULL_FLOW

Author:
Leonardo Uribe

Constructor Summary
FlowNavigationCase(NavigationCase delegate, String fromOutcome, String toFlowDocumentId)
           
 
Method Summary
 String getFromOutcome()
           
 String getToFlowDocumentId()
           
 NavigationCase getWrapped()
           
 
Methods inherited from class javax.faces.application.NavigationCaseWrapper
equals, getActionURL, getBookmarkableURL, getCondition, getFromAction, getFromViewId, getParameters, getRedirectURL, getResourceURL, getToViewId, hasCondition, hashCode, isIncludeViewParams, isRedirect, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowNavigationCase

public FlowNavigationCase(NavigationCase delegate,
                          String fromOutcome,
                          String toFlowDocumentId)
Method Detail

getWrapped

public NavigationCase getWrapped()
Specified by:
getWrapped in interface FacesWrapper<NavigationCase>
Overrides:
getWrapped in class NavigationCaseWrapper

getFromOutcome

public String getFromOutcome()
Overrides:
getFromOutcome in class NavigationCaseWrapper

getToFlowDocumentId

public String getToFlowDocumentId()
Overrides:
getToFlowDocumentId in class NavigationCaseWrapper


Copyright © 2015 The Apache Software Foundation. All rights reserved.