Search in sources :

Example 1 with FlowDefinitionRegistryBuilder

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

the class RadiusMultifactorConfiguration method radiusFlowRegistry.

@Bean
public FlowDefinitionRegistry radiusFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
    builder.setBasePath("classpath*:/webflow");
    builder.addFlowLocationPattern("/mfa-radius/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 2 with FlowDefinitionRegistryBuilder

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

the class U2FConfiguration method u2fFlowRegistry.

@Bean
public FlowDefinitionRegistry u2fFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
    builder.setBasePath("classpath*:/webflow");
    builder.addFlowLocationPattern("/mfa-u2f/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 3 with FlowDefinitionRegistryBuilder

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

the class CasWebflowContextConfiguration method logoutFlowRegistry.

@Bean
public FlowDefinitionRegistry logoutFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, builder());
    builder.setBasePath(BASE_CLASSPATH_WEBFLOW);
    builder.addFlowLocationPattern("/logout/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) CipherBean(org.cryptacular.bean.CipherBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 4 with FlowDefinitionRegistryBuilder

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

the class U2FWebflowConfiguration method u2fFlowRegistry.

@Bean
public FlowDefinitionRegistry u2fFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
    builder.setBasePath("classpath*:/webflow");
    builder.addFlowLocationPattern("/mfa-u2f/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 5 with FlowDefinitionRegistryBuilder

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

the class CasWebflowContextConfiguration method loginFlowRegistry.

@Bean
public FlowDefinitionRegistry loginFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, builder());
    builder.setBasePath(BASE_CLASSPATH_WEBFLOW);
    builder.addFlowLocationPattern("/login/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

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