use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLoginWebflowConfigurer method createSendTicketGrantingTicketAction.
private void createSendTicketGrantingTicketAction(final Flow flow) {
final ActionState action = createActionState(flow, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET, createEvaluateAction(CasWebflowConstants.ACTION_ID_SEND_TICKET_GRANTING_TICKET));
createTransitionForState(action, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_SERVICE_CHECK);
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLoginWebflowConfigurer method createTerminateSessionAction.
/**
* Create terminate session action.
*
* @param flow the flow
*/
protected void createTerminateSessionAction(final Flow flow) {
final ActionState terminateSession = createActionState(flow, CasWebflowConstants.STATE_ID_TERMINATE_SESSION, createEvaluateAction(CasWebflowConstants.ACTION_ID_TERMINATE_SESSION));
createStateDefaultTransition(terminateSession, CasWebflowConstants.STATE_ID_GATEWAY_REQUEST_CHECK);
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLogoutWebflowConfigurer method createFrontLogoutActionState.
/**
* Create front logout action state.
*
* @param flow the flow
*/
protected void createFrontLogoutActionState(final Flow flow) {
final ActionState actionState = createActionState(flow, CasWebflowConstants.STATE_ID_FRONT_LOGOUT, createEvaluateAction("frontChannelLogoutAction"));
createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_FINISH, CasWebflowConstants.STATE_ID_FINISH_LOGOUT);
createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_PROPAGATE, CasWebflowConstants.STATE_ID_PROPAGATE_LOGOUT_REQUESTS);
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class DefaultLogoutWebflowConfigurer method doInitialize.
@Override
protected void doInitialize() {
final Flow flow = getLogoutFlow();
if (flow != null) {
final ActionState terminateSessionActionState = createTerminateSessionActionState(flow);
createLogoutConfirmationView(flow);
createDoLogoutActionState(flow);
createFrontLogoutActionState(flow);
createLogoutPropagationEndState(flow);
createLogoutViewState(flow);
createFinishLogoutDecisionState(flow);
configureFlowStartState(flow, terminateSessionActionState);
}
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class AcceptableUsagePolicyWebflowConfigurer method createSubmitActionState.
private void createSubmitActionState(final Flow flow) {
final ActionState aupAcceptedAction = createActionState(flow, AUP_ACCEPTED_ACTION, createAcceptableUsagePolicyAction("submit"));
final String target = getRealSubmissionState(flow).getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getTargetStateId();
aupAcceptedAction.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS, target));
aupAcceptedAction.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_ERROR, CasWebflowConstants.STATE_ID_INIT_LOGIN_FORM));
}
Aggregations