Search in sources :

Example 21 with ActionState

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);
}
Also used : ActionState(org.springframework.webflow.engine.ActionState)

Example 22 with ActionState

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);
}
Also used : ActionState(org.springframework.webflow.engine.ActionState)

Example 23 with ActionState

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);
}
Also used : ActionState(org.springframework.webflow.engine.ActionState)

Example 24 with ActionState

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);
    }
}
Also used : ActionState(org.springframework.webflow.engine.ActionState) Flow(org.springframework.webflow.engine.Flow)

Example 25 with ActionState

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));
}
Also used : ActionState(org.springframework.webflow.engine.ActionState)

Aggregations

ActionState (org.springframework.webflow.engine.ActionState)59 Flow (org.springframework.webflow.engine.Flow)17 ViewState (org.springframework.webflow.engine.ViewState)12 Transition (org.springframework.webflow.engine.Transition)6 Action (org.springframework.webflow.execution.Action)4 ArrayList (java.util.ArrayList)2 EvaluateAction (org.springframework.webflow.action.EvaluateAction)2 SubflowState (org.springframework.webflow.engine.SubflowState)2 BinderConfiguration (org.springframework.webflow.engine.builder.BinderConfiguration)2 DefaultTargetStateResolver (org.springframework.webflow.engine.support.DefaultTargetStateResolver)2 AccountLockedException (javax.security.auth.login.AccountLockedException)1 AccountNotFoundException (javax.security.auth.login.AccountNotFoundException)1 CredentialExpiredException (javax.security.auth.login.CredentialExpiredException)1 FailedLoginException (javax.security.auth.login.FailedLoginException)1 PrincipalException (org.apereo.cas.authentication.PrincipalException)1 UnauthorizedAuthenticationException (org.apereo.cas.authentication.adaptive.UnauthorizedAuthenticationException)1 AccountDisabledException (org.apereo.cas.authentication.exceptions.AccountDisabledException)1 AccountPasswordMustChangeException (org.apereo.cas.authentication.exceptions.AccountPasswordMustChangeException)1 InvalidLoginLocationException (org.apereo.cas.authentication.exceptions.InvalidLoginLocationException)1 InvalidLoginTimeException (org.apereo.cas.authentication.exceptions.InvalidLoginTimeException)1