本文整理汇总了Java中org.springframework.webflow.engine.DecisionState类的典型用法代码示例。如果您正苦于以下问题:Java DecisionState类的具体用法?Java DecisionState怎么用?Java DecisionState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DecisionState类属于org.springframework.webflow.engine包,在下文中一共展示了DecisionState类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: doInitialize
import org.springframework.webflow.engine.DecisionState; //导入依赖的package包/类
@Override
protected void doInitialize() throws Exception {
final Flow flow = getLoginFlow();
final String condition = "externalContext.requestParameterMap['openid.mode'] ne '' "
+ "&& externalContext.requestParameterMap['openid.mode'] ne null "
+ "&& externalContext.requestParameterMap['openid.mode'] ne 'associate'";
final DecisionState decisionState = createDecisionState(flow, "selectFirstAction",
condition, "openIdSingleSignOnAction",
getStartState(flow).getId());
final ActionState actionState = createActionState(flow, "openIdSingleSignOnAction",
createEvaluateAction("openIdSingleSignOnAction"));
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_SUCCESS, TRANSITION_ID_SEND_TICKET_GRANTING_TICKET));
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_ERROR, getStartState(flow).getId()));
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_WARN, TRANSITION_ID_WARN));
setStartState(flow, decisionState);
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:22,代码来源:OpenIdWebflowConfigurer.java
示例2: createDecisionState
import org.springframework.webflow.engine.DecisionState; //导入依赖的package包/类
@Override
public DecisionState createDecisionState(final Flow flow, final String id, final String testExpression,
final String thenStateId, final String elseStateId) {
if (containsFlowState(flow, id)) {
LOGGER.debug("Flow [{}] already contains a definition for state id [{}]", flow.getId(), id);
return (DecisionState) flow.getTransitionableState(id);
}
final DecisionState decisionState = new DecisionState(flow, id);
final Expression expression = createExpression(testExpression, Boolean.class);
final Transition thenTransition = createTransition(expression, thenStateId);
decisionState.getTransitionSet().add(thenTransition);
final Transition elseTransition = createTransition("*", elseStateId);
decisionState.getTransitionSet().add(elseTransition);
return decisionState;
}
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:21,代码来源:AbstractCasWebflowConfigurer.java
示例3: createDecisionState
import org.springframework.webflow.engine.DecisionState; //导入依赖的package包/类
/**
* Create decision state decision state.
*
* @param flow the flow
* @param id the id
* @param testExpression the test expression
* @param thenStateId the then state id
* @param elseStateId the else state id
* @return the decision state
*/
protected DecisionState createDecisionState(final Flow flow, final String id, final String testExpression,
final String thenStateId, final String elseStateId) {
final DecisionState decisionState = new DecisionState(flow, id);
final Expression expression = createExpression(flow, testExpression, Boolean.class);
final Transition thenTransition = createTransition(expression, thenStateId);
decisionState.getTransitionSet().add(thenTransition);
final Transition elseTransition = createTransition("*", elseStateId);
decisionState.getTransitionSet().add(elseTransition);
return decisionState;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:25,代码来源:AbstractCasWebflowConfigurer.java
示例4: doInitialize
import org.springframework.webflow.engine.DecisionState; //导入依赖的package包/类
@Override
protected void doInitialize() throws Exception {
final Flow flow = getLoginFlow();
if (flow != null) {
final String condition = getOpenIdModeCondition();
final DecisionState decisionState = createDecisionState(flow, "selectFirstAction",
condition, OPEN_ID_SINGLE_SIGN_ON_ACTION,
getStartState(flow).getId());
final ActionState actionState = createActionState(flow, OPEN_ID_SINGLE_SIGN_ON_ACTION,
createEvaluateAction(OPEN_ID_SINGLE_SIGN_ON_ACTION));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS,
CasWebflowConstants.TRANSITION_ID_SEND_TICKET_GRANTING_TICKET));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_ERROR, getStartState(flow).getId()));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_WARN,
CasWebflowConstants.TRANSITION_ID_WARN));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_AUTHENTICATION_FAILURE,
CasWebflowConstants.STATE_ID_VIEW_LOGIN_FORM));
actionState.getExitActionList().add(createEvaluateAction("clearWebflowCredentialsAction"));
registerMultifactorProvidersStateTransitionsIntoWebflow(actionState);
setStartState(flow, decisionState);
}
}
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:28,代码来源:OpenIdWebflowConfigurer.java
示例5: addOnEntryActionToServiceCheckState
import org.springframework.webflow.engine.DecisionState; //导入依赖的package包/类
/**
* Add on entry action to service check state.
*
* @param flow the flow
*/
protected void addOnEntryActionToServiceCheckState(final Flow flow) {
final DecisionState state = (DecisionState) flow.getState(STATE_DEFINITION_ID_SERVICE_CHECK);
final EvaluateAction action = createEvaluateAction("removeHostnameServiceInContextAction");
state.getEntryActionList().add(action);
LOGGER.debug("Set on-entry action for decision state {}", state.getId());
}
开发者ID:Unicon,项目名称:cas-mfa,代码行数:13,代码来源:CasMultiFactorWebflowConfigurer.java
示例6: createSaml2ClientLogoutAction
import org.springframework.webflow.engine.DecisionState; //导入依赖的package包/类
private void createSaml2ClientLogoutAction() {
final Flow logoutFlow = getLogoutFlow();
final DecisionState state = (DecisionState) logoutFlow.getState(CasWebflowConstants.STATE_ID_FINISH_LOGOUT);
state.getEntryActionList().add(saml2ClientLogoutAction);
}
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:6,代码来源:Pac4jWebflowConfigurer.java
示例7: createDecisionState
import org.springframework.webflow.engine.DecisionState; //导入依赖的package包/类
/**
* Create decision state decision state.
*
* @param flow the flow
* @param id the id
* @param testExpression the test expression
* @param thenStateId the then state id
* @param elseStateId the else state id
* @return the decision state
*/
DecisionState createDecisionState(Flow flow, String id, String testExpression,
String thenStateId, String elseStateId);
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:13,代码来源:CasWebflowConfigurer.java
注:本文中的org.springframework.webflow.engine.DecisionState类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论