Search in sources :

Example 1 with FlowModelHolder

use of org.springframework.webflow.engine.model.registry.FlowModelHolder in project cas by apereo.

the class DuoMultifactorWebflowConfigurer method createDuoFlowDefinitionRegistry.

private FlowDefinitionRegistry createDuoFlowDefinitionRegistry(final MultifactorAuthenticationProvider p, final DynamicFlowModelBuilder modelBuilder) {
    final FlowModelHolder holder = new DefaultFlowModelHolder(modelBuilder);
    final FlowBuilder flowBuilder = new FlowModelFlowBuilder(holder);
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, flowBuilderServices);
    builder.addFlowBuilder(flowBuilder, p.getId());
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) FlowModelHolder(org.springframework.webflow.engine.model.registry.FlowModelHolder) DefaultFlowModelHolder(org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder) FlowBuilder(org.springframework.webflow.engine.builder.FlowBuilder) FlowModelFlowBuilder(org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder) FlowModelFlowBuilder(org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder) DefaultFlowModelHolder(org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder)

Aggregations

FlowDefinitionRegistryBuilder (org.springframework.webflow.config.FlowDefinitionRegistryBuilder)1 FlowBuilder (org.springframework.webflow.engine.builder.FlowBuilder)1 FlowModelFlowBuilder (org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder)1 DefaultFlowModelHolder (org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder)1 FlowModelHolder (org.springframework.webflow.engine.model.registry.FlowModelHolder)1