use of org.springframework.webflow.mvc.servlet.FlowHandlerAdapter in project cas by apereo.
the class PasswordManagementConfiguration method passwordResetHandlerAdapter.
@RefreshScope
@Bean
public HandlerAdapter passwordResetHandlerAdapter() {
final FlowHandlerAdapter handler = new FlowHandlerAdapter() {
@Override
public boolean supports(final Object handler) {
return super.supports(handler) && ((FlowHandler) handler).getFlowId().equals(PasswordManagementWebflowConfigurer.FLOW_ID_PASSWORD_RESET);
}
};
handler.setFlowExecutor(loginFlowExecutor);
return handler;
}
use of org.springframework.webflow.mvc.servlet.FlowHandlerAdapter in project cas by apereo.
the class PasswordManagementWebflowConfiguration method passwordResetHandlerAdapter.
@RefreshScope
@Bean
public HandlerAdapter passwordResetHandlerAdapter() {
final FlowHandlerAdapter handler = new FlowHandlerAdapter() {
@Override
public boolean supports(final Object handler) {
return super.supports(handler) && ((FlowHandler) handler).getFlowId().equals(PasswordManagementWebflowConfigurer.FLOW_ID_PASSWORD_RESET);
}
};
handler.setFlowExecutor(loginFlowExecutor);
return handler;
}
use of org.springframework.webflow.mvc.servlet.FlowHandlerAdapter in project cas by apereo.
the class CasWebflowContextConfiguration method loginHandlerAdapter.
@Bean
public HandlerAdapter loginHandlerAdapter() {
final FlowHandlerAdapter handler = new CasFlowHandlerAdapter(CasWebflowConfigurer.FLOW_ID_LOGIN);
handler.setFlowExecutor(loginFlowExecutor());
handler.setFlowUrlHandler(loginFlowUrlHandler());
return handler;
}
use of org.springframework.webflow.mvc.servlet.FlowHandlerAdapter in project cas by apereo.
the class CasWebflowContextConfiguration method logoutHandlerAdapter.
@RefreshScope
@Bean
public HandlerAdapter logoutHandlerAdapter() {
final FlowHandlerAdapter handler = new CasFlowHandlerAdapter(CasWebflowConfigurer.FLOW_ID_LOGOUT);
handler.setFlowExecutor(logoutFlowExecutor());
handler.setFlowUrlHandler(logoutFlowUrlHandler());
return handler;
}
use of org.springframework.webflow.mvc.servlet.FlowHandlerAdapter in project cas by apereo.
the class CasWebflowContextConfiguration method logoutHandlerAdapter.
@RefreshScope
@Bean
public HandlerAdapter logoutHandlerAdapter() {
final FlowHandlerAdapter handler = new FlowHandlerAdapter() {
@Override
public boolean supports(final Object handler) {
return super.supports(handler) && ((FlowHandler) handler).getFlowId().equals(CasWebflowConfigurer.FLOW_ID_LOGOUT);
}
};
handler.setFlowExecutor(logoutFlowExecutor());
handler.setFlowUrlHandler(logoutFlowUrlHandler());
return handler;
}
Aggregations