Class AbstractCasWebflowConfigurer
- java.lang.Object
-
- org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer
-
- All Implemented Interfaces:
org.apereo.cas.web.flow.CasWebflowConfigurer,org.springframework.core.Ordered
- Direct Known Subclasses:
DefaultLoginWebflowConfigurer,DefaultLogoutWebflowConfigurer,GroovyWebflowConfigurer
public abstract class AbstractCasWebflowConfigurer extends java.lang.Object implements org.apereo.cas.web.flow.CasWebflowConfigurerTheAbstractCasWebflowConfigureris responsible for providing an entry point into the CAS webflow.- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ConfigurableApplicationContextapplicationContextApplication context.protected org.apereo.cas.configuration.CasConfigurationPropertiescasPropertiesCAS Properties.protected org.springframework.webflow.engine.builder.support.FlowBuilderServicesflowBuilderServicesFlow builder services.protected org.springframework.webflow.definition.registry.FlowDefinitionRegistrylogoutFlowDefinitionRegistryThe logout flow definition registry.protected org.springframework.webflow.definition.registry.FlowDefinitionRegistrymainFlowDefinitionRegistryThe Login flow definition registry.
-
Constructor Summary
Constructors Constructor Description AbstractCasWebflowConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddActionsToActionStateExecutionListAt(org.springframework.webflow.engine.Flow flow, java.lang.String actionStateId, int position, org.springframework.webflow.action.EvaluateAction... actions)Add actions to action state execution list at.org.springframework.webflow.engine.FlowbuildFlow(java.lang.String id)voidcloneActionState(org.springframework.webflow.engine.ActionState source, org.springframework.webflow.engine.ActionState target)Clone action state.booleancontainsFlowState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId)booleancontainsSubflowState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId)booleancontainsTransition(org.springframework.webflow.engine.TransitionableState state, java.lang.String transition)org.springframework.webflow.engine.ActionStatecreateActionState(org.springframework.webflow.engine.Flow flow, java.lang.String name)org.springframework.webflow.engine.ActionStatecreateActionState(org.springframework.webflow.engine.Flow flow, java.lang.String name, java.lang.String action)org.springframework.webflow.engine.ActionStatecreateActionState(org.springframework.webflow.engine.Flow flow, java.lang.String name, org.springframework.webflow.execution.Action action)org.springframework.webflow.engine.ActionStatecreateActionState(org.springframework.webflow.engine.Flow flow, java.lang.String name, org.springframework.webflow.execution.Action... actions)voidcreateClonedActionState(org.springframework.webflow.engine.Flow flow, java.lang.String actionStateId, java.lang.String actionStateIdToClone)Clone and create action state.org.springframework.webflow.engine.DecisionStatecreateDecisionState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String testExpression, java.lang.String thenStateId, java.lang.String elseStateId)org.springframework.webflow.engine.EndStatecreateEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id)org.springframework.webflow.engine.EndStatecreateEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String viewId)org.springframework.webflow.engine.EndStatecreateEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String viewId, boolean redirect)org.springframework.webflow.engine.EndStatecreateEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id, org.springframework.binding.expression.Expression expression)org.springframework.webflow.engine.EndStatecreateEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id, org.springframework.webflow.execution.ViewFactory viewFactory)org.springframework.webflow.action.EvaluateActioncreateEvaluateAction(java.lang.String expression)org.springframework.webflow.execution.ActioncreateEvaluateActionForExistingActionState(org.springframework.webflow.engine.Flow flow, java.lang.String actionStateId, java.lang.String evaluateActionId)Create evaluate action for action state action.org.springframework.binding.expression.ExpressioncreateExpression(java.lang.String expression)org.springframework.binding.expression.ExpressioncreateExpression(java.lang.String expression, java.lang.Class expectedType)org.springframework.webflow.execution.ViewFactorycreateExternalRedirectViewFactory(java.lang.String expressionId)Create external redirect view factory.org.springframework.webflow.engine.FlowVariablecreateFlowVariable(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.Class type)Create flow variable flow variable.org.springframework.binding.mapping.MappercreateMapperToSubflowState(java.util.List<org.springframework.binding.mapping.impl.DefaultMapping> mappings)Create mapper to subflow state.org.springframework.binding.mapping.impl.DefaultMappingcreateMappingToSubflowState(java.lang.String name, java.lang.String value, boolean required, java.lang.Class type)Create mapping to subflow state.org.springframework.webflow.action.RenderActioncreateRenderAction(java.lang.String... fragmentExpression)org.springframework.webflow.action.SetActioncreateSetAction(java.lang.String name, java.lang.String value)org.springframework.webflow.engine.builder.BinderConfigurationcreateStateBinderConfiguration(java.util.List<java.lang.String> properties)voidcreateStateDefaultTransition(org.springframework.webflow.engine.TransitionableState state, java.lang.String targetState)voidcreateStateDefaultTransition(org.springframework.webflow.engine.TransitionableState state, org.springframework.webflow.definition.StateDefinition targetState)voidcreateStateModelBinding(org.springframework.webflow.engine.TransitionableState state, java.lang.String modelName, java.lang.Class modelType)org.springframework.webflow.engine.SubflowAttributeMappercreateSubflowAttributeMapper(org.springframework.binding.mapping.Mapper inputMapper, org.springframework.binding.mapping.Mapper outputMapper)Create subflow attribute mapper.org.springframework.webflow.engine.SubflowStatecreateSubflowState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String subflow)org.springframework.webflow.engine.SubflowStatecreateSubflowState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String subflow, org.springframework.webflow.execution.Action entryAction)org.springframework.webflow.engine.TransitioncreateTransition(java.lang.String targetState)org.springframework.webflow.engine.TransitioncreateTransition(java.lang.String criteriaOutcome, java.lang.String targetState)org.springframework.webflow.engine.TransitioncreateTransition(java.lang.String criteriaOutcome, java.lang.String targetState, org.springframework.webflow.execution.Action... actions)org.springframework.webflow.engine.TransitioncreateTransition(java.lang.String criteriaOutcome, org.springframework.webflow.engine.TransitionableState targetState)org.springframework.webflow.engine.TransitioncreateTransition(org.springframework.binding.expression.Expression criteriaOutcomeExpression, java.lang.String targetState, org.springframework.webflow.execution.Action... actions)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId, java.lang.String criteriaOutcome, java.lang.String targetState)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, boolean removeExisting)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, boolean removeExisting, java.util.Map<java.lang.String,java.lang.Object> attributes)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, boolean removeExisting, java.util.Map<java.lang.String,java.lang.Object> attributes, org.springframework.webflow.execution.Action... actions)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, java.util.Map<java.lang.String,java.lang.Object> attributes)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, java.util.Map<java.lang.String,java.lang.Object> attributes, org.springframework.webflow.execution.Action... actions)org.springframework.webflow.engine.TransitioncreateTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, org.springframework.webflow.execution.Action... actions)voidcreateTransitionsForState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId, java.util.Map<java.lang.String,java.lang.String> criteriaAndTargets)Create transitions for state.org.springframework.webflow.engine.ViewStatecreateViewState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String viewId)org.springframework.webflow.engine.ViewStatecreateViewState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String viewId, org.springframework.webflow.engine.builder.BinderConfiguration binder)org.springframework.webflow.engine.ViewStatecreateViewState(org.springframework.webflow.engine.Flow flow, java.lang.String id, org.springframework.binding.expression.Expression expression, org.springframework.webflow.engine.builder.BinderConfiguration binder)org.springframework.webflow.engine.ViewStatecreateViewState(org.springframework.webflow.engine.Flow flow, java.lang.String id, org.springframework.webflow.execution.ViewFactory viewFactory)protected voiddoInitialize()Handle the initialization of the webflow.org.springframework.binding.expression.ExpressiongetExpressionStringFromAction(org.springframework.webflow.action.EvaluateAction act)Gets expression string from action.org.springframework.webflow.engine.FlowgetFlow(java.lang.String id)org.springframework.webflow.engine.FlowgetFlow(org.springframework.webflow.definition.registry.FlowDefinitionRegistry registry, java.lang.String id)org.springframework.webflow.engine.FlowgetLoginFlow()org.springframework.webflow.engine.FlowgetLogoutFlow()org.springframework.binding.expression.spel.SpringELExpressionParsergetSpringExpressionParser()Gets spring expression parser.org.springframework.webflow.engine.TransitionableStategetStartState(org.springframework.webflow.engine.Flow flow)org.springframework.webflow.engine.TransitionableStategetState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId)<T> TgetState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId, java.lang.Class<T> clazz)org.springframework.webflow.engine.TransitionableStategetTransitionableState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId)Gets transitionable state.<T extends org.springframework.webflow.engine.TransitionableState>
TgetTransitionableState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId, java.lang.Class<T> clazz)Gets transitionable state.java.util.List<org.springframework.webflow.engine.TransitionCriteria>getTransitionExecutionCriteriaChainForTransition(org.springframework.webflow.engine.Transition def)org.springframework.webflow.engine.builder.BinderConfigurationgetViewStateBinderConfiguration(org.springframework.webflow.engine.ViewState state)voidinitialize()voidprependActionsToActionStateExecutionList(org.springframework.webflow.engine.Flow flow, java.lang.String actionStateId, java.lang.String... actions)Prepend actions to action state execution list.voidprependActionsToActionStateExecutionList(org.springframework.webflow.engine.Flow flow, org.springframework.webflow.engine.ActionState actionStateId, org.springframework.webflow.action.EvaluateAction... actions)Prepend actions to action state execution list.voidsetStartState(org.springframework.webflow.engine.Flow flow, java.lang.String state)voidsetStartState(org.springframework.webflow.engine.Flow flow, org.springframework.webflow.engine.TransitionableState state)
-
-
-
Field Detail
-
flowBuilderServices
protected final org.springframework.webflow.engine.builder.support.FlowBuilderServices flowBuilderServices
Flow builder services.
-
mainFlowDefinitionRegistry
protected final org.springframework.webflow.definition.registry.FlowDefinitionRegistry mainFlowDefinitionRegistry
The Login flow definition registry.
-
applicationContext
protected final org.springframework.context.ConfigurableApplicationContext applicationContext
Application context.
-
casProperties
protected final org.apereo.cas.configuration.CasConfigurationProperties casProperties
CAS Properties.
-
logoutFlowDefinitionRegistry
protected org.springframework.webflow.definition.registry.FlowDefinitionRegistry logoutFlowDefinitionRegistry
The logout flow definition registry.
-
-
Method Detail
-
initialize
public void initialize()
- Specified by:
initializein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getLoginFlow
public org.springframework.webflow.engine.Flow getLoginFlow()
- Specified by:
getLoginFlowin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getLogoutFlow
public org.springframework.webflow.engine.Flow getLogoutFlow()
- Specified by:
getLogoutFlowin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getStartState
public org.springframework.webflow.engine.TransitionableState getStartState(org.springframework.webflow.engine.Flow flow)
- Specified by:
getStartStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransition
public org.springframework.webflow.engine.Transition createTransition(java.lang.String criteriaOutcome, java.lang.String targetState)- Specified by:
createTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransition
public org.springframework.webflow.engine.Transition createTransition(java.lang.String criteriaOutcome, java.lang.String targetState, org.springframework.webflow.execution.Action... actions)- Specified by:
createTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransition
public org.springframework.webflow.engine.Transition createTransition(java.lang.String criteriaOutcome, org.springframework.webflow.engine.TransitionableState targetState)- Specified by:
createTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransition
public org.springframework.webflow.engine.Transition createTransition(org.springframework.binding.expression.Expression criteriaOutcomeExpression, java.lang.String targetState, org.springframework.webflow.execution.Action... actions)- Specified by:
createTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransition
public org.springframework.webflow.engine.Transition createTransition(java.lang.String targetState)
- Specified by:
createTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createRenderAction
public org.springframework.webflow.action.RenderAction createRenderAction(java.lang.String... fragmentExpression)
- Specified by:
createRenderActionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createSetAction
public org.springframework.webflow.action.SetAction createSetAction(java.lang.String name, java.lang.String value)- Specified by:
createSetActionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createEvaluateAction
public org.springframework.webflow.action.EvaluateAction createEvaluateAction(java.lang.String expression)
- Specified by:
createEvaluateActionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createActionState
public org.springframework.webflow.engine.ActionState createActionState(org.springframework.webflow.engine.Flow flow, java.lang.String name)- Specified by:
createActionStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createActionState
public org.springframework.webflow.engine.ActionState createActionState(org.springframework.webflow.engine.Flow flow, java.lang.String name, java.lang.String action)- Specified by:
createActionStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createActionState
public org.springframework.webflow.engine.ActionState createActionState(org.springframework.webflow.engine.Flow flow, java.lang.String name, org.springframework.webflow.execution.Action... actions)- Specified by:
createActionStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createActionState
public org.springframework.webflow.engine.ActionState createActionState(org.springframework.webflow.engine.Flow flow, java.lang.String name, org.springframework.webflow.execution.Action action)- Specified by:
createActionStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createDecisionState
public org.springframework.webflow.engine.DecisionState createDecisionState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String testExpression, java.lang.String thenStateId, java.lang.String elseStateId)- Specified by:
createDecisionStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
setStartState
public void setStartState(org.springframework.webflow.engine.Flow flow, java.lang.String state)- Specified by:
setStartStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
setStartState
public void setStartState(org.springframework.webflow.engine.Flow flow, org.springframework.webflow.engine.TransitionableState state)- Specified by:
setStartStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createEndState
public org.springframework.webflow.engine.EndState createEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id)- Specified by:
createEndStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createEndState
public org.springframework.webflow.engine.EndState createEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String viewId, boolean redirect)- Specified by:
createEndStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createEndState
public org.springframework.webflow.engine.EndState createEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String viewId)- Specified by:
createEndStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createEndState
public org.springframework.webflow.engine.EndState createEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id, org.springframework.binding.expression.Expression expression)- Specified by:
createEndStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createEndState
public org.springframework.webflow.engine.EndState createEndState(org.springframework.webflow.engine.Flow flow, java.lang.String id, org.springframework.webflow.execution.ViewFactory viewFactory)- Specified by:
createEndStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createViewState
public org.springframework.webflow.engine.ViewState createViewState(org.springframework.webflow.engine.Flow flow, java.lang.String id, org.springframework.binding.expression.Expression expression, org.springframework.webflow.engine.builder.BinderConfiguration binder)- Specified by:
createViewStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createViewState
public org.springframework.webflow.engine.ViewState createViewState(org.springframework.webflow.engine.Flow flow, java.lang.String id, org.springframework.webflow.execution.ViewFactory viewFactory)- Specified by:
createViewStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createViewState
public org.springframework.webflow.engine.ViewState createViewState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String viewId)- Specified by:
createViewStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createViewState
public org.springframework.webflow.engine.ViewState createViewState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String viewId, org.springframework.webflow.engine.builder.BinderConfiguration binder)- Specified by:
createViewStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createSubflowState
public org.springframework.webflow.engine.SubflowState createSubflowState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String subflow, org.springframework.webflow.execution.Action entryAction)- Specified by:
createSubflowStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createSubflowState
public org.springframework.webflow.engine.SubflowState createSubflowState(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.String subflow)- Specified by:
createSubflowStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
buildFlow
public org.springframework.webflow.engine.Flow buildFlow(java.lang.String id)
- Specified by:
buildFlowin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createStateDefaultTransition
public void createStateDefaultTransition(org.springframework.webflow.engine.TransitionableState state, java.lang.String targetState)- Specified by:
createStateDefaultTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createStateDefaultTransition
public void createStateDefaultTransition(org.springframework.webflow.engine.TransitionableState state, org.springframework.webflow.definition.StateDefinition targetState)- Specified by:
createStateDefaultTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, java.util.Map<java.lang.String,java.lang.Object> attributes)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, java.util.Map<java.lang.String,java.lang.Object> attributes, org.springframework.webflow.execution.Action... actions)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, org.springframework.webflow.execution.Action... actions)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId, java.lang.String criteriaOutcome, java.lang.String targetState)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, boolean removeExisting, java.util.Map<java.lang.String,java.lang.Object> attributes, org.springframework.webflow.execution.Action... actions)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, boolean removeExisting, java.util.Map<java.lang.String,java.lang.Object> attributes)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createTransitionForState
public org.springframework.webflow.engine.Transition createTransitionForState(org.springframework.webflow.engine.TransitionableState state, java.lang.String criteriaOutcome, java.lang.String targetState, boolean removeExisting)- Specified by:
createTransitionForStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createExpression
public org.springframework.binding.expression.Expression createExpression(java.lang.String expression, java.lang.Class expectedType)- Specified by:
createExpressionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createExpression
public org.springframework.binding.expression.Expression createExpression(java.lang.String expression)
- Specified by:
createExpressionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
containsFlowState
public boolean containsFlowState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId)- Specified by:
containsFlowStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
containsSubflowState
public boolean containsSubflowState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId)- Specified by:
containsSubflowStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
containsTransition
public boolean containsTransition(org.springframework.webflow.engine.TransitionableState state, java.lang.String transition)- Specified by:
containsTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createFlowVariable
public org.springframework.webflow.engine.FlowVariable createFlowVariable(org.springframework.webflow.engine.Flow flow, java.lang.String id, java.lang.Class type)Create flow variable flow variable.- Specified by:
createFlowVariablein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer- Parameters:
flow- the flowid- the idtype- the type- Returns:
- the flow variable
-
createStateBinderConfiguration
public org.springframework.webflow.engine.builder.BinderConfiguration createStateBinderConfiguration(java.util.List<java.lang.String> properties)
- Specified by:
createStateBinderConfigurationin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
createStateModelBinding
public void createStateModelBinding(org.springframework.webflow.engine.TransitionableState state, java.lang.String modelName, java.lang.Class modelType)- Specified by:
createStateModelBindingin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getViewStateBinderConfiguration
public org.springframework.webflow.engine.builder.BinderConfiguration getViewStateBinderConfiguration(org.springframework.webflow.engine.ViewState state)
- Specified by:
getViewStateBinderConfigurationin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getTransitionExecutionCriteriaChainForTransition
public java.util.List<org.springframework.webflow.engine.TransitionCriteria> getTransitionExecutionCriteriaChainForTransition(org.springframework.webflow.engine.Transition def)
- Specified by:
getTransitionExecutionCriteriaChainForTransitionin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getState
public <T> T getState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId, java.lang.Class<T> clazz)- Specified by:
getStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getState
public org.springframework.webflow.engine.TransitionableState getState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId)- Specified by:
getStatein interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getFlow
public org.springframework.webflow.engine.Flow getFlow(java.lang.String id)
- Specified by:
getFlowin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getFlow
public org.springframework.webflow.engine.Flow getFlow(org.springframework.webflow.definition.registry.FlowDefinitionRegistry registry, java.lang.String id)- Specified by:
getFlowin interfaceorg.apereo.cas.web.flow.CasWebflowConfigurer
-
getSpringExpressionParser
public org.springframework.binding.expression.spel.SpringELExpressionParser getSpringExpressionParser()
Gets spring expression parser.- Returns:
- the spring expression parser
-
createMapperToSubflowState
public org.springframework.binding.mapping.Mapper createMapperToSubflowState(java.util.List<org.springframework.binding.mapping.impl.DefaultMapping> mappings)
Create mapper to subflow state.- Parameters:
mappings- the mappings- Returns:
- the mapper
-
createMappingToSubflowState
public org.springframework.binding.mapping.impl.DefaultMapping createMappingToSubflowState(java.lang.String name, java.lang.String value, boolean required, java.lang.Class type)Create mapping to subflow state.- Parameters:
name- the namevalue- the valuerequired- the requiredtype- the type- Returns:
- the default mapping
-
createSubflowAttributeMapper
public org.springframework.webflow.engine.SubflowAttributeMapper createSubflowAttributeMapper(org.springframework.binding.mapping.Mapper inputMapper, org.springframework.binding.mapping.Mapper outputMapper)Create subflow attribute mapper.- Parameters:
inputMapper- the input mapperoutputMapper- the output mapper- Returns:
- the subflow attribute mapper
-
cloneActionState
public void cloneActionState(org.springframework.webflow.engine.ActionState source, org.springframework.webflow.engine.ActionState target)Clone action state.- Parameters:
source- the sourcetarget- the target
-
getExpressionStringFromAction
public org.springframework.binding.expression.Expression getExpressionStringFromAction(org.springframework.webflow.action.EvaluateAction act)
Gets expression string from action.- Parameters:
act- the act- Returns:
- the expression string from action
-
createEvaluateActionForExistingActionState
public org.springframework.webflow.execution.Action createEvaluateActionForExistingActionState(org.springframework.webflow.engine.Flow flow, java.lang.String actionStateId, java.lang.String evaluateActionId)Create evaluate action for action state action.- Parameters:
flow- the flowactionStateId- the action state idevaluateActionId- the evaluate action id- Returns:
- the action
-
createClonedActionState
public void createClonedActionState(org.springframework.webflow.engine.Flow flow, java.lang.String actionStateId, java.lang.String actionStateIdToClone)Clone and create action state.- Parameters:
flow- the flowactionStateId- the action state idactionStateIdToClone- the action state id to clone
-
getTransitionableState
public <T extends org.springframework.webflow.engine.TransitionableState> T getTransitionableState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId, java.lang.Class<T> clazz)Gets transitionable state.- Type Parameters:
T- the type parameter- Parameters:
flow- the flowstateId- the state idclazz- the clazz- Returns:
- the transitionable state
-
getTransitionableState
public org.springframework.webflow.engine.TransitionableState getTransitionableState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId)Gets transitionable state.- Parameters:
flow- the flowstateId- the state id- Returns:
- the transitionable state
-
createTransitionsForState
public void createTransitionsForState(org.springframework.webflow.engine.Flow flow, java.lang.String stateId, java.util.Map<java.lang.String,java.lang.String> criteriaAndTargets)Create transitions for state.- Parameters:
flow- the flowstateId- the state idcriteriaAndTargets- the criteria and targets
-
prependActionsToActionStateExecutionList
public void prependActionsToActionStateExecutionList(org.springframework.webflow.engine.Flow flow, java.lang.String actionStateId, java.lang.String... actions)Prepend actions to action state execution list.- Parameters:
flow- the flowactionStateId- the action state idactions- the actions
-
prependActionsToActionStateExecutionList
public void prependActionsToActionStateExecutionList(org.springframework.webflow.engine.Flow flow, org.springframework.webflow.engine.ActionState actionStateId, org.springframework.webflow.action.EvaluateAction... actions)Prepend actions to action state execution list.- Parameters:
flow- the flowactionStateId- the action state idactions- the actions
-
addActionsToActionStateExecutionListAt
public void addActionsToActionStateExecutionListAt(org.springframework.webflow.engine.Flow flow, java.lang.String actionStateId, int position, org.springframework.webflow.action.EvaluateAction... actions)Add actions to action state execution list at.- Parameters:
flow- the flowactionStateId- the action state idposition- the positionactions- the actions
-
createExternalRedirectViewFactory
public org.springframework.webflow.execution.ViewFactory createExternalRedirectViewFactory(java.lang.String expressionId)
Create external redirect view factory.- Parameters:
expressionId- the expression id- Returns:
- the view factory
-
doInitialize
protected void doInitialize()
Handle the initialization of the webflow.
-
-