com.liferay.faces.bridge.application
Class BridgeNavigationHandlerImpl

java.lang.Object
  extended by javax.faces.application.NavigationHandler
      extended by javax.faces.application.ConfigurableNavigationHandler
          extended by com.liferay.faces.bridge.application.BridgeNavigationHandler
              extended by com.liferay.faces.bridge.application.BridgeNavigationHandlerImpl

public class BridgeNavigationHandlerImpl
extends BridgeNavigationHandler

Author:
Neil Griffin

Constructor Summary
BridgeNavigationHandlerImpl(javax.faces.application.NavigationHandler navigationHandler)
           
 
Method Summary
 javax.faces.application.NavigationCase getNavigationCase(javax.faces.context.FacesContext facesContext, String fromAction, String outcome)
           
 Map<String,Set<javax.faces.application.NavigationCase>> getNavigationCases()
           
 void handleNavigation(javax.faces.context.FacesContext facesContext, javax.portlet.PortletMode fromPortletMode, javax.portlet.PortletMode toPortletMode)
          This method must react to changes in portlet modes that were done programatically by portlet developers that called StateAwareResponse.setWindowState(WindowState) during the INVOKE_APPLICATION phase of the JSF lifecycle.
 void handleNavigation(javax.faces.context.FacesContext facesContext, String fromAction, String outcome)
          This method is defined in the NavigationHandler superclass and must be overridden in the bridge implementation so that it can handle to-view-id entries in navigaion-case blocks that respect the Bridge.PORTLET_MODE_PARAMETER parameter for switching to a different PortletMode and the Bridge.PORTLET_WINDOWSTATE_PARAMETER parameter for switching to a different WindowState.
 
Methods inherited from class javax.faces.application.ConfigurableNavigationHandler
performNavigation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeNavigationHandlerImpl

public BridgeNavigationHandlerImpl(javax.faces.application.NavigationHandler navigationHandler)
Method Detail

handleNavigation

public void handleNavigation(javax.faces.context.FacesContext facesContext,
                             String fromAction,
                             String outcome)
Description copied from class: BridgeNavigationHandler
This method is defined in the NavigationHandler superclass and must be overridden in the bridge implementation so that it can handle to-view-id entries in navigaion-case blocks that respect the Bridge.PORTLET_MODE_PARAMETER parameter for switching to a different PortletMode and the Bridge.PORTLET_WINDOWSTATE_PARAMETER parameter for switching to a different WindowState.

Specified by:
handleNavigation in class BridgeNavigationHandler
See Also:
NavigationHandler#handleNavigation(FacesContext, String, String)}

handleNavigation

public void handleNavigation(javax.faces.context.FacesContext facesContext,
                             javax.portlet.PortletMode fromPortletMode,
                             javax.portlet.PortletMode toPortletMode)
Description copied from class: BridgeNavigationHandler
This method must react to changes in portlet modes that were done programatically by portlet developers that called StateAwareResponse.setWindowState(WindowState) during the INVOKE_APPLICATION phase of the JSF lifecycle. The viewId to be rendered is the current viewId in the UIViewRoot.

Specified by:
handleNavigation in class BridgeNavigationHandler
Parameters:
facesContext - The current FacesContext.
fromPortletMode - The PortletMode that was rendered prior to the developer calling StateAwareResponse.setWindowState(WindowState).
toPortletMode - The PortletMode that is to be switched to.

getNavigationCase

public javax.faces.application.NavigationCase getNavigationCase(javax.faces.context.FacesContext facesContext,
                                                                String fromAction,
                                                                String outcome)
Specified by:
getNavigationCase in class javax.faces.application.ConfigurableNavigationHandler

getNavigationCases

public Map<String,Set<javax.faces.application.NavigationCase>> getNavigationCases()
Specified by:
getNavigationCases in class javax.faces.application.ConfigurableNavigationHandler


Copyright © 2014 Liferay, Inc.. All Rights Reserved.