Package org.springframework.webflow.engine.support

Examples of org.springframework.webflow.engine.support.DefaultTargetStateResolver


  protected TransitionCriteria on(String event) {
    return new MockTransitionCriteria(event);
  }

  protected TargetStateResolver to(String stateId) {
    return new DefaultTargetStateResolver(stateId);
  }
View Full Code Here


  protected TransitionCriteria on(String event) {
    return new MockTransitionCriteria(event);
  }

  protected TargetStateResolver to(String stateId) {
    return new DefaultTargetStateResolver(stateId);
  }
View Full Code Here

  }

  public void testTransitionExecutingNoSecurity() {
    SecurityFlowExecutionListener listener = new SecurityFlowExecutionListener();
    RequestContext context = new MockRequestContext();
    Transition transition = new Transition(new DefaultTargetStateResolver("target"));
    listener.transitionExecuting(context, transition);
  }
View Full Code Here

  }

  public void testTransitionExecutingWithSecurity() {
    SecurityFlowExecutionListener listener = new SecurityFlowExecutionListener();
    RequestContext context = new MockRequestContext();
    Transition transition = new Transition(new DefaultTargetStateResolver("target"));
    SecurityRule rule = getSecurityRuleAnyAuthorized();
    ((LocalAttributeMap) transition.getAttributes()).put(SecurityRule.SECURITY_ATTRIBUTE_NAME, rule);
    configureSecurityContext();
    listener.transitionExecuting(context, transition);
  }
View Full Code Here

  public TransitionCriteria on(String eventId) {
    return new MockTransitionCriteria(eventId);
  }

  protected TargetStateResolver to(String stateId) {
    return new DefaultTargetStateResolver(stateId);
  }
View Full Code Here

  protected TransitionCriteria on(String event) {
    return new MockTransitionCriteria(event);
  }

  protected TargetStateResolver to(String stateId) {
    return new DefaultTargetStateResolver(stateId);
  }
View Full Code Here

    ViewState state = new ViewState(flow, "view", new StubViewFactory()) {
      public void resume(RequestControlContext context) {
        context.execute(getRequiredTransition(context));
      }
    };
    state.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("finish")));
    EndState end = new EndState(flow, "finish");
    MockFlowExecutionListener mockListener = new MockFlowExecutionListener();
    FlowExecutionListener[] listeners = new FlowExecutionListener[] { mockListener };
    FlowExecutionImpl execution = new FlowExecutionImpl(flow);
    execution.setListeners(listeners);
View Full Code Here

  protected static TransitionCriteria on(String event) {
    return new MockTransitionCriteria(event);
  }

  protected static TargetStateResolver to(String stateId) {
    return new DefaultTargetStateResolver(stateId);
  }
View Full Code Here

      return null;
    }
    ExpressionParser parser = flowBuilderContext.getExpressionParser();
    Expression expression = parser.parseExpression(targetStateId, new FluentParserContext().template().evaluate(
        RequestContext.class).expectResult(String.class));
    return new DefaultTargetStateResolver(expression);

  }
View Full Code Here

    factoryBean.setFlowDefinitionLocator(new FlowDefinitionLocator() {
      public FlowDefinition getFlowDefinition(String id) throws NoSuchFlowDefinitionException,
          FlowDefinitionConstructionException {
        Flow flow = new Flow(id);
        ViewState view = new ViewState(flow, "view", new StubViewFactory());
        view.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("end")));
        new EndState(flow, "end");
        return flow;
      }
    });
    factoryBean.afterPropertiesSet();
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.support.DefaultTargetStateResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.