org.springframework.webflow.security.SecurityFlowExecutionListener Java Examples

The following examples show how to use org.springframework.webflow.security.SecurityFlowExecutionListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringletsWebFlowConfiguration.java    From springlets with Apache License 2.0 5 votes vote down vote up
/**
 * Create the {@link SecurityFlowExecutionListener} for all flows.
 * @return
 */
private ConditionalFlowExecutionListenerLoader getFlowExecutionListener() {
  // * means "all flows"
  FlowExecutionListenerCriteria listenerCriteria =
      new FlowExecutionListenerCriteriaFactory().getListenerCriteria("*");

  ConditionalFlowExecutionListenerLoader listenerLoader =
      new ConditionalFlowExecutionListenerLoader();
  listenerLoader.addListener(new SecurityFlowExecutionListener(), listenerCriteria);

  return listenerLoader;
}
 
Example #2
Source File: WebFlowConfig.java    From pizzeria with MIT License 4 votes vote down vote up
@Bean
public SecurityFlowExecutionListener securityFlowExecutionListener() {
    return new SecurityFlowExecutionListener();
}
 
Example #3
Source File: WebFlowConfig.java    From enhanced-pet-clinic with Apache License 2.0 4 votes vote down vote up
@Bean
public FlowExecutor flowExecutor() {
	return getFlowExecutorBuilder(flowRegistry()).addFlowExecutionListener(new SecurityFlowExecutionListener(), "*")
			.build();
}