private ActionStateModel parseActionState(Element element) { ActionStateModel state = new ActionStateModel(element.getAttribute("id")); state.setParent(element.getAttribute("parent")); state.setAttributes(parseAttributes(element)); state.setSecured(parseSecured(element)); state.setOnEntryActions(parseOnEntryActions(element)); state.setTransitions(parseTransitions(element)); state.setOnExitActions(parseOnExitActions(element)); state.setActions(parseActions(element)); state.setExceptionHandlers(parseExceptionHandlers(element)); return state; }
public void merge(Model model) { ActionStateModel state = (ActionStateModel) model; setParent(null); setAttributes(merge(getAttributes(), state.getAttributes())); setSecured((SecuredModel) merge(getSecured(), state.getSecured())); setOnEntryActions(merge(getOnEntryActions(), state.getOnEntryActions(), false)); setExceptionHandlers(merge(getExceptionHandlers(), state.getExceptionHandlers())); setTransitions(merge(getTransitions(), state.getTransitions())); setOnExitActions(merge(getOnExitActions(), state.getOnExitActions(), false)); setActions(merge(getActions(), state.getActions(), false)); }
private static void createDuoDoNonWebAuthenticationAction(final List<AbstractStateModel> states) { val actModel = new ActionStateModel(STATE_ID_DUO_NON_WEB_AUTHENTICATION); val actions = new LinkedList<AbstractActionModel>(); actions.add(new EvaluateModel(ACTION_DUO_NON_WEB_AUTHENTICATION_ACTION)); actModel.setActions(actions); val trans = new LinkedList<TransitionModel>(); val transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_SUCCESS); transModel.setTo(STATE_ID_FINALIZE_AUTHENTICATION); trans.add(transModel); actModel.setTransitions(trans); states.add(actModel); }
private static LinkedList<AbstractActionModel> createDuoInitializeLoginAction(final List<AbstractStateModel> states) { val actModel = new ActionStateModel(CasWebflowConstants.STATE_ID_INIT_LOGIN_FORM); val actions = new LinkedList<AbstractActionModel>(); actions.add(new EvaluateModel("initializeLoginAction")); actModel.setActions(actions); val trans = new LinkedList<TransitionModel>(); val transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_SUCCESS); transModel.setTo(STATE_ID_DETERMINE_DUO_USER_ACCOUNT); trans.add(transModel); actModel.setTransitions(trans); states.add(actModel); return actions; }
private static void createDuoFinalizeAuthenticationAction(final List<AbstractStateModel> states) { val actModel = new ActionStateModel(STATE_ID_FINALIZE_AUTHENTICATION); val actions = new LinkedList<AbstractActionModel>(); actions.add(new EvaluateModel(ACTION_DUO_AUTHENTICATION_WEBFLOW)); actModel.setActions(actions); val trans = new LinkedList<TransitionModel>(); val transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_SUCCESS); transModel.setTo(CasWebflowConstants.TRANSITION_ID_SUCCESS); trans.add(transModel); actModel.setTransitions(trans); states.add(actModel); }
private static void createDuoDetermineRequestAction(final List<AbstractStateModel> states) { val actModel = new ActionStateModel(STATE_ID_DETERMINE_DUO_REQUEST); val actions = new LinkedList<AbstractActionModel>(); actions.add(new EvaluateModel(ACTION_CHECK_WEB_AUTHENTICATION_REQUEST)); actModel.setActions(actions); val trans = new LinkedList<TransitionModel>(); var transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_YES); transModel.setTo(STATE_ID_VIEW_LOGIN_FORM_DUO); trans.add(transModel); transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_NO); transModel.setTo(STATE_ID_DUO_NON_WEB_AUTHENTICATION); trans.add(transModel); actModel.setTransitions(trans); states.add(actModel); }
private static void createDuoAuthenticationWebflowAction(final List<AbstractStateModel> states) { val actModel = new ActionStateModel(CasWebflowConstants.STATE_ID_REAL_SUBMIT); val actions = new LinkedList<AbstractActionModel>(); actions.add(new EvaluateModel(ACTION_DUO_AUTHENTICATION_WEBFLOW)); actModel.setActions(actions); val trans = new LinkedList<TransitionModel>(); var transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_SUCCESS); transModel.setTo(CasWebflowConstants.TRANSITION_ID_SUCCESS); trans.add(transModel); transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_ERROR); transModel.setTo(CasWebflowConstants.STATE_ID_INIT_LOGIN_FORM); trans.add(transModel); transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_DENY); transModel.setTo(CasWebflowConstants.TRANSITION_ID_DENY); trans.add(transModel); transModel = new TransitionModel(); transModel.setOn(CasWebflowConstants.TRANSITION_ID_UNAVAILABLE); transModel.setTo(CasWebflowConstants.TRANSITION_ID_UNAVAILABLE); trans.add(transModel); actModel.setTransitions(trans); states.add(actModel); }
trans.add(transModel); actModel.setTransitions(trans); states.add(actModel);
private ActionStateModel parseActionState(Element element) { ActionStateModel state = new ActionStateModel(element.getAttribute("id")); state.setParent(element.getAttribute("parent")); state.setAttributes(parseAttributes(element)); state.setSecured(parseSecured(element)); state.setOnEntryActions(parseOnEntryActions(element)); state.setTransitions(parseTransitions(element)); state.setOnExitActions(parseOnExitActions(element)); state.setActions(parseActions(element)); state.setExceptionHandlers(parseExceptionHandlers(element)); return state; }
private ActionStateModel parseActionState(Element element) { ActionStateModel state = new ActionStateModel(element.getAttribute("id")); state.setParent(element.getAttribute("parent")); state.setAttributes(parseAttributes(element)); state.setSecured(parseSecured(element)); state.setOnEntryActions(parseOnEntryActions(element)); state.setTransitions(parseTransitions(element)); state.setOnExitActions(parseOnExitActions(element)); state.setActions(parseActions(element)); state.setExceptionHandlers(parseExceptionHandlers(element)); return state; }
public void merge(Model model) { ActionStateModel state = (ActionStateModel) model; setParent(null); setAttributes(merge(getAttributes(), state.getAttributes())); setSecured((SecuredModel) merge(getSecured(), state.getSecured())); setOnEntryActions(merge(getOnEntryActions(), state.getOnEntryActions(), false)); setExceptionHandlers(merge(getExceptionHandlers(), state.getExceptionHandlers())); setTransitions(merge(getTransitions(), state.getTransitions())); setOnExitActions(merge(getOnExitActions(), state.getOnExitActions(), false)); setActions(merge(getActions(), state.getActions(), false)); }
public void merge(Model model) { ActionStateModel state = (ActionStateModel) model; setParent(null); setAttributes(merge(getAttributes(), state.getAttributes())); setSecured((SecuredModel) merge(getSecured(), state.getSecured())); setOnEntryActions(merge(getOnEntryActions(), state.getOnEntryActions(), false)); setExceptionHandlers(merge(getExceptionHandlers(), state.getExceptionHandlers())); setTransitions(merge(getTransitions(), state.getTransitions())); setOnExitActions(merge(getOnExitActions(), state.getOnExitActions(), false)); setActions(merge(getActions(), state.getActions(), false)); }