public void setCurrentState(State state) { if (this.state != null && this.state.isViewState()) { destroyViewScope(); } this.state = state; if (this.state.isViewState()) { initViewScope(); } }
/** * Set the currently active state. */ public void setState(State state) { if (this.state != null && this.state.isViewState()) { destroyViewScope(); } this.state = state; if (this.state != null && this.state.isViewState()) { initViewScope(); } }
@SuppressWarnings("unchecked") public MutableAttributeMap<Object> getViewScope() throws IllegalStateException { if (state == null) { throw new IllegalStateException("The current state of this flow '" + definition.getId() + "' is [null] - cannot access view scope"); } if (!state.isViewState()) { throw new IllegalStateException("The current state '" + state.getId() + "' of this flow '" + definition.getId() + "' is not a view state - view scope not accessible"); } return (MutableAttributeMap<Object>) scope.get(VIEW_MAP_ATTRIBUTE); }
@SuppressWarnings("unchecked") public MutableAttributeMap<Object> getViewScope() throws IllegalStateException { if (state == null) { throw new IllegalStateException("The current state of this flow '" + flow.getId() + "' is [null] - cannot access view scope"); } if (!state.isViewState()) { throw new IllegalStateException("The current state '" + state.getId() + "' of this flow '" + flow.getId() + "' is not a view state - view scope not accessible"); } return (MutableAttributeMap<Object>) scope.get(VIEW_SCOPE_ATTRIBUTE); }
public void setCurrentState(State state) { if (this.state != null && this.state.isViewState()) { destroyViewScope(); } this.state = state; if (this.state.isViewState()) { initViewScope(); } }
/** * Set the currently active state. */ public void setState(State state) { if (this.state != null && this.state.isViewState()) { destroyViewScope(); } this.state = state; if (this.state != null && this.state.isViewState()) { initViewScope(); } }
public void setCurrentState(State state) { if (this.state != null && this.state.isViewState()) { destroyViewScope(); } this.state = state; if (this.state.isViewState()) { initViewScope(); } }
/** * Set the currently active state. */ public void setState(State state) { if (this.state != null && this.state.isViewState()) { destroyViewScope(); } this.state = state; if (this.state != null && this.state.isViewState()) { initViewScope(); } }
@SuppressWarnings("unchecked") public MutableAttributeMap<Object> getViewScope() throws IllegalStateException { if (state == null) { throw new IllegalStateException("The current state of this flow '" + flow.getId() + "' is [null] - cannot access view scope"); } if (!state.isViewState()) { throw new IllegalStateException("The current state '" + state.getId() + "' of this flow '" + flow.getId() + "' is not a view state - view scope not accessible"); } return (MutableAttributeMap<Object>) scope.get(VIEW_SCOPE_ATTRIBUTE); }
@SuppressWarnings("unchecked") public MutableAttributeMap<Object> getViewScope() throws IllegalStateException { if (state == null) { throw new IllegalStateException("The current state of this flow '" + definition.getId() + "' is [null] - cannot access view scope"); } if (!state.isViewState()) { throw new IllegalStateException("The current state '" + state.getId() + "' of this flow '" + definition.getId() + "' is not a view state - view scope not accessible"); } return (MutableAttributeMap<Object>) scope.get(VIEW_MAP_ATTRIBUTE); }
public MutableAttributeMap getViewScope() throws IllegalStateException { if (state == null) { throw new IllegalStateException("The current state of this flow '" + definition.getId() + "' is [null] - cannot access view scope"); } if (!state.isViewState()) { throw new IllegalStateException("The current state '" + state.getId() + "' of this flow '" + definition.getId() + "' is not a view state - view scope not accessible"); } return (MutableAttributeMap) scope.get(FLOW_VIEW_MAP_ATTRIBUTE); }
public MutableAttributeMap getViewScope() throws IllegalStateException { if (state == null) { throw new IllegalStateException("The current state of this flow '" + flow.getId() + "' is [null] - cannot access view scope"); } if (!state.isViewState()) { throw new IllegalStateException("The current state '" + state.getId() + "' of this flow '" + flow.getId() + "' is not a view state - view scope not accessible"); } return (MutableAttributeMap) scope.get(VIEW_SCOPE_ATTRIBUTE); }
stateMap.put("isEndState", Boolean.TRUE); if (state.isViewState()) { stateMap.put("isViewState", state.isViewState()); stateMap.put("isRedirect", ((ViewState) state).getRedirect());