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();
}
use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.
the class AbstractCasWebflowConfigurer method buildFlow.
@Override
public Flow buildFlow(final String location, final String id) {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
builder.setParent(this.loginFlowDefinitionRegistry);
builder.addFlowLocation(location, id);
final FlowDefinitionRegistry registry = builder.build();
return (Flow) registry.getFlowDefinition(id);
}
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();
}
use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder 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();
}
use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.
the class AbstractCasWebflowConfigurer method buildFlow.
@Override
public Flow buildFlow(final String id) {
val builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
builder.setParent(this.mainFlowDefinitionRegistry);
builder.addFlowBuilder(new FlowModelFlowBuilder(new DefaultFlowModelHolder(new DynamicFlowModelBuilder())), id);
val registry = builder.build();
return (Flow) registry.getFlowDefinition(id);
}
Aggregations