Search in sources :

Example 16 with FlowDefinitionRegistryBuilder

use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.

the class DuoSecurityMultifactorWebflowConfigurer method createDuoFlowDefinitionRegistry.

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

Aggregations

FlowDefinitionRegistryBuilder (org.springframework.webflow.config.FlowDefinitionRegistryBuilder)16 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)12 Bean (org.springframework.context.annotation.Bean)12 FlowModelFlowBuilder (org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder)3 DefaultFlowModelHolder (org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder)3 lombok.val (lombok.val)2 CipherBean (org.cryptacular.bean.CipherBean)2 Flow (org.springframework.webflow.engine.Flow)2 FlowDefinitionRegistry (org.springframework.webflow.definition.registry.FlowDefinitionRegistry)1 FlowBuilder (org.springframework.webflow.engine.builder.FlowBuilder)1 FlowModelHolder (org.springframework.webflow.engine.model.registry.FlowModelHolder)1