Search in sources :

Example 1 with ClientFlowExecutionRepository

use of org.apereo.spring.webflow.plugin.ClientFlowExecutionRepository in project cas by apereo.

the class CasWebflowContextConfiguration method flowExecutorViaClientFlowExecution.

@Bean
public FlowExecutor flowExecutorViaClientFlowExecution() {
    final FlowDefinitionRegistry loginFlowRegistry = loginFlowRegistry();
    final ClientFlowExecutionRepository repository = new ClientFlowExecutionRepository();
    repository.setFlowDefinitionLocator(loginFlowRegistry);
    repository.setTranscoder(loginFlowStateTranscoder());
    final FlowExecutionImplFactory factory = new FlowExecutionImplFactory();
    factory.setExecutionKeyFactory(repository);
    repository.setFlowExecutionFactory(factory);
    return new FlowExecutorImpl(loginFlowRegistry, factory, repository);
}
Also used : FlowDefinitionRegistry(org.springframework.webflow.definition.registry.FlowDefinitionRegistry) FlowExecutorImpl(org.springframework.webflow.executor.FlowExecutorImpl) FlowExecutionImplFactory(org.springframework.webflow.engine.impl.FlowExecutionImplFactory) ClientFlowExecutionRepository(org.apereo.spring.webflow.plugin.ClientFlowExecutionRepository) CipherBean(org.cryptacular.bean.CipherBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

ClientFlowExecutionRepository (org.apereo.spring.webflow.plugin.ClientFlowExecutionRepository)1 CipherBean (org.cryptacular.bean.CipherBean)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1 FlowDefinitionRegistry (org.springframework.webflow.definition.registry.FlowDefinitionRegistry)1 FlowExecutionImplFactory (org.springframework.webflow.engine.impl.FlowExecutionImplFactory)1 FlowExecutorImpl (org.springframework.webflow.executor.FlowExecutorImpl)1