/** * <p class="changed_added_2_2">Convenience overload that calls {@link FacesContext#getCurrentInstance()} * and then calls through to {@link #getCurrentFlow(javax.faces.context.FacesContext)}. </p> * * @return the current {@code Flow} or {@code null} if no flow is active * * @since 2.2 */ public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
/** * <p class="changed_added_2_2">Convenience overload that calls {@link FacesContext#getCurrentInstance()} * and then calls through to {@link #getCurrentFlow(javax.faces.context.FacesContext)}. </p> * * @return the current {@code Flow} or {@code null} if no flow is active * * @since 2.2 */ public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
/** * <p class="changed_added_2_2">Convenience overload that calls {@link FacesContext#getCurrentInstance()} * and then calls through to {@link #getCurrentFlow(javax.faces.context.FacesContext)}. </p> * * @return the current {@code Flow} or {@code null} if no flow is active * * @since 2.2 */ public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
/** * <p class="changed_added_2_2">Convenience overload that calls {@link FacesContext#getCurrentInstance()} * and then calls through to {@link #getCurrentFlow(javax.faces.context.FacesContext)}. </p> * * @return the current {@code Flow} or {@code null} if no flow is active * * @since 2.2 */ public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
/** * <p class="changed_added_2_2">Convenience overload that calls {@link FacesContext#getCurrentInstance()} * and then calls through to {@link #getCurrentFlow(javax.faces.context.FacesContext)}. </p> * * @since 2.2 */ public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
/** * <p class="changed_added_2_2">Convenience overload that calls {@link FacesContext#getCurrentInstance()} * and then calls through to {@link #getCurrentFlow(javax.faces.context.FacesContext)}. </p> * * @return the current {@code Flow} or {@code null} if no flow is active * * @since 2.2 */ public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
/** * <p class="changed_added_2_2">Convenience overload that calls {@link FacesContext#getCurrentInstance()} * and then calls through to {@link #getCurrentFlow(javax.faces.context.FacesContext)}. </p> * * @return the current {@code Flow} or {@code null} if no flow is active * * @since 2.2 */ public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
/** * <p class="changed_added_2_2">Convenience overload that calls {@link FacesContext#getCurrentInstance()} * and then calls through to {@link #getCurrentFlow(javax.faces.context.FacesContext)}. </p> * * @return the current {@code Flow} or {@code null} if no flow is active * * @since 2.2 */ public Flow getCurrentFlow() { return getCurrentFlow(FacesContext.getCurrentInstance()); }
private static Flow getCurrentFlow(FacesContext context) { FlowHandler flowHandler = context.getApplication().getFlowHandler(); if (null == flowHandler) { return null; } Flow result = flowHandler.getCurrentFlow(context); return result; }
private static Flow getCurrentFlow(FacesContext context) { FlowHandler flowHandler = context.getApplication().getFlowHandler(); if (null == flowHandler) { return null; } Flow result = flowHandler.getCurrentFlow(context); return result; }
public Flow getCurrentFlow(FacesContext facesContext) { if (currentFlows != null && !currentFlows.isEmpty()) { return currentFlows.get(currentFlows.size()-1); } else { FlowHandler flowHandler = facesContext.getApplication().getFlowHandler(); return flowHandler.getCurrentFlow(facesContext); } }
private static Flow getCurrentFlow(FacesContext context) { FlowHandler flowHandler = context.getApplication().getFlowHandler(); if (null == flowHandler) { return null; } Flow result = flowHandler.getCurrentFlow(context); return result; }
private static Flow getCurrentFlow(FacesContext context) { FlowHandler flowHandler = context.getApplication().getFlowHandler(); if (null == flowHandler) { return null; } Flow result = flowHandler.getCurrentFlow(context); return result; }
public boolean isActive(FacesContext facesContext) { if (facesContext == null) { return false; } Flow flow = facesContext.getApplication(). getFlowHandler().getCurrentFlow(facesContext); return flow != null; }
public String getCurrentClientWindowFlowId(FacesContext facesContext) { String flowMapKey = null; FlowHandler flowHandler = facesContext.getApplication().getFlowHandler(); Flow flow = flowHandler.getCurrentFlow(facesContext); if (flow != null) { flowMapKey = FlowUtils.getFlowMapKey(facesContext, flow); } return flowMapKey; }
private NavigationInfo getNavigationInfo(FacesContext context, String toFlowDocumentId, String flowId) { NavigationInfo result = null; assert(null != navigationMaps); result = navigationMaps.get(toFlowDocumentId + flowId); if (null == result) { FlowHandler fh = context.getApplication().getFlowHandler(); if (null != fh) { Flow currentFlow = fh.getCurrentFlow(context); if (null != currentFlow) { result = navigationMaps.get(currentFlow.getDefiningDocumentId() + currentFlow.getId()); } } } return result; }
private NavigationInfo getNavigationInfo(FacesContext context, String toFlowDocumentId, String flowId) { NavigationInfo result = null; assert (null != navigationMaps); result = navigationMaps.get(toFlowDocumentId + flowId); if (null == result) { FlowHandler fh = context.getApplication().getFlowHandler(); if (null != fh) { Flow currentFlow = fh.getCurrentFlow(context); if (null != currentFlow) { result = navigationMaps.get(currentFlow.getDefiningDocumentId() + currentFlow.getId()); } } } return result; }
private NavigationInfo getNavigationInfo(FacesContext context, String toFlowDocumentId, String flowId) { NavigationInfo result = null; assert (null != navigationMaps); result = navigationMaps.get(toFlowDocumentId + flowId); if (null == result) { FlowHandler fh = context.getApplication().getFlowHandler(); if (null != fh) { Flow currentFlow = fh.getCurrentFlow(context); if (null != currentFlow) { result = navigationMaps.get(currentFlow.getDefiningDocumentId() + currentFlow.getId()); } } } return result; }
private NavigationInfo getNavigationInfo(FacesContext context, String toFlowDocumentId, String flowId) { NavigationInfo result = null; assert (null != navigationMaps); result = navigationMaps.get(toFlowDocumentId + flowId); if (null == result) { FlowHandler fh = context.getApplication().getFlowHandler(); if (null != fh) { Flow currentFlow = fh.getCurrentFlow(context); if (null != currentFlow) { result = navigationMaps.get(currentFlow.getDefiningDocumentId() + currentFlow.getId()); } } } return result; }