use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLoginWebflowConfigurer method createAuthenticationWarningMessagesView.
/**
* Create authentication warning messages view.
*
* @param flow the flow
*/
protected void createAuthenticationWarningMessagesView(final Flow flow) {
final ViewState state = createViewState(flow, CasWebflowConstants.VIEW_ID_SHOW_AUTHN_WARNING_MSGS, "casLoginMessageView");
final SetAction setAction = new SetAction(createExpression("requestScope.messages"), createExpression("messageContext.allMessages"));
state.getEntryActionList().add(setAction);
createTransitionForState(state, CasWebflowConstants.TRANSITION_ID_PROCEED, CasWebflowConstants.STATE_ID_PROCEED_FROM_AUTHENTICATION_WARNINGS_VIEW);
final ActionState proceedAction = createActionState(flow, CasWebflowConstants.STATE_ID_PROCEED_FROM_AUTHENTICATION_WARNINGS_VIEW);
proceedAction.getActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_SEND_TICKET_GRANTING_TICKET));
createStateDefaultTransition(proceedAction, CasWebflowConstants.STATE_ID_SERVICE_CHECK);
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLoginWebflowConfigurer method createServiceWarningViewState.
/**
* Create service warning view state.
*
* @param flow the flow
*/
protected void createServiceWarningViewState(final Flow flow) {
final ViewState stateWarning = createViewState(flow, CasWebflowConstants.STATE_ID_SHOW_WARNING_VIEW, CasWebflowConstants.VIEW_ID_CONFIRM);
createTransitionForState(stateWarning, CasWebflowConstants.TRANSITION_ID_SUCCESS, "finalizeWarning");
final ActionState finalizeWarn = createActionState(flow, "finalizeWarning", createEvaluateAction("serviceWarningAction"));
createTransitionForState(finalizeWarn, CasWebflowConstants.STATE_ID_REDIRECT, CasWebflowConstants.STATE_ID_REDIRECT);
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLoginWebflowConfigurer method createGatewayServicesMgmtAction.
/**
* Create gateway services mgmt action.
*
* @param flow the flow
*/
protected void createGatewayServicesMgmtAction(final Flow flow) {
final ActionState gatewayServicesManagementCheck = createActionState(flow, CasWebflowConstants.STATE_ID_GATEWAY_SERVICES_MGMT_CHECK, createEvaluateAction("gatewayServicesManagementCheck"));
createTransitionForState(gatewayServicesManagementCheck, CasWebflowConstants.STATE_ID_SUCCESS, CasWebflowConstants.STATE_ID_REDIRECT);
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLoginWebflowConfigurer method createServiceAuthorizationCheckAction.
/**
* Create service authorization check action.
*
* @param flow the flow
*/
private void createServiceAuthorizationCheckAction(final Flow flow) {
final ActionState serviceAuthorizationCheck = createActionState(flow, CasWebflowConstants.STATE_ID_SERVICE_AUTHZ_CHECK, createEvaluateAction("serviceAuthorizationCheck"));
createStateDefaultTransition(serviceAuthorizationCheck, CasWebflowConstants.STATE_ID_INIT_LOGIN_FORM);
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLogoutWebflowConfigurer method createDoLogoutActionState.
/**
* Create do logout action state.
*
* @param flow the flow
*/
private void createDoLogoutActionState(final Flow flow) {
final ActionState actionState = createActionState(flow, CasWebflowConstants.STATE_ID_DO_LOGOUT, createEvaluateAction("logoutAction"));
createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_FINISH, CasWebflowConstants.STATE_ID_FINISH_LOGOUT);
createTransitionForState(actionState, "front", CasWebflowConstants.STATE_ID_FRONT_LOGOUT);
}
Aggregations