Search in sources :

Example 1 with RenderAction

use of org.springframework.webflow.action.RenderAction in project cas by apereo.

the class AbstractCasWebflowConfigurer method createRenderAction.

@Override
public RenderAction createRenderAction(final String... fragmentExpression) {
    val ctx = new FluentParserContext();
    val expressionParser = this.flowBuilderServices.getExpressionParser();
    val expressions = Arrays.stream(fragmentExpression).map(fg -> expressionParser.parseExpression(fg, ctx)).toArray(Expression[]::new);
    val newAction = new RenderAction(expressions);
    LOGGER.trace("Created render action for expressions [{}]", Arrays.toString(fragmentExpression));
    return newAction;
}
Also used : lombok.val(lombok.val) FluentParserContext(org.springframework.binding.expression.support.FluentParserContext) CasConfigurationProperties(org.apereo.cas.configuration.CasConfigurationProperties) ReflectivePropertyAccessor(org.springframework.expression.spel.support.ReflectivePropertyAccessor) Arrays(java.util.Arrays) SetAction(org.springframework.webflow.action.SetAction) RequiredArgsConstructor(lombok.RequiredArgsConstructor) ActionTransitionCriteria(org.springframework.webflow.engine.support.ActionTransitionCriteria) ViewFactory(org.springframework.webflow.execution.ViewFactory) DefaultTransitionCriteria(org.springframework.webflow.engine.support.DefaultTransitionCriteria) DefaultMapping(org.springframework.binding.mapping.impl.DefaultMapping) FlowBuilderServices(org.springframework.webflow.engine.builder.support.FlowBuilderServices) StringUtils(org.apache.commons.lang3.StringUtils) DecisionState(org.springframework.webflow.engine.DecisionState) TransitionableState(org.springframework.webflow.engine.TransitionableState) LoggingUtils(org.apereo.cas.util.LoggingUtils) FunctionUtils(org.apereo.cas.util.function.FunctionUtils) FlowModelFlowBuilder(org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder) RuntimeBindingConversionExecutor(org.springframework.binding.convert.service.RuntimeBindingConversionExecutor) ConfigurableApplicationContext(org.springframework.context.ConfigurableApplicationContext) Map(java.util.Map) ToString(lombok.ToString) DefaultMapper(org.springframework.binding.mapping.impl.DefaultMapper) ScopeSearchingPropertyAccessor(org.springframework.webflow.expression.spel.ScopeSearchingPropertyAccessor) DefaultFlowModelHolder(org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder) FlowDefinitionRegistry(org.springframework.webflow.definition.registry.FlowDefinitionRegistry) FlowExecutionExceptionHandler(org.springframework.webflow.engine.FlowExecutionExceptionHandler) FlowVariable(org.springframework.webflow.engine.FlowVariable) Expression(org.springframework.binding.expression.Expression) WildcardTransitionCriteria(org.springframework.webflow.engine.WildcardTransitionCriteria) BeanFactoryVariableValueFactory(org.springframework.webflow.engine.support.BeanFactoryVariableValueFactory) Action(org.springframework.webflow.execution.Action) FlowVariablePropertyAccessor(org.springframework.webflow.expression.spel.FlowVariablePropertyAccessor) SpringELExpressionParser(org.springframework.binding.expression.spel.SpringELExpressionParser) TransitionCriteria(org.springframework.webflow.engine.TransitionCriteria) Objects(java.util.Objects) FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) Slf4j(lombok.extern.slf4j.Slf4j) SubflowAttributeMapper(org.springframework.webflow.engine.SubflowAttributeMapper) List(java.util.List) EndState(org.springframework.webflow.engine.EndState) ViewState(org.springframework.webflow.engine.ViewState) CasWebflowConfigurer(org.apereo.cas.web.flow.CasWebflowConfigurer) BeanExpressionContextAccessor(org.springframework.context.expression.BeanExpressionContextAccessor) GenericSubflowAttributeMapper(org.springframework.webflow.engine.support.GenericSubflowAttributeMapper) StateDefinition(org.springframework.webflow.definition.StateDefinition) DefaultTargetStateResolver(org.springframework.webflow.engine.support.DefaultTargetStateResolver) FluentParserContext(org.springframework.binding.expression.support.FluentParserContext) SubflowState(org.springframework.webflow.engine.SubflowState) Setter(lombok.Setter) ActionState(org.springframework.webflow.engine.ActionState) Getter(lombok.Getter) ExternalRedirectAction(org.springframework.webflow.action.ExternalRedirectAction) ActionExecutingViewFactory(org.springframework.webflow.engine.support.ActionExecutingViewFactory) ArrayList(java.util.ArrayList) LiteralExpression(org.springframework.binding.expression.support.LiteralExpression) Mapper(org.springframework.binding.mapping.Mapper) AccessLevel(lombok.AccessLevel) MapAccessor(org.springframework.context.expression.MapAccessor) CollectionUtils(org.apereo.cas.util.CollectionUtils) ViewFactoryActionAdapter(org.springframework.webflow.action.ViewFactoryActionAdapter) ActionPropertyAccessor(org.springframework.webflow.expression.spel.ActionPropertyAccessor) MapAdaptablePropertyAccessor(org.springframework.webflow.expression.spel.MapAdaptablePropertyAccessor) lombok.val(lombok.val) EvaluateAction(org.springframework.webflow.action.EvaluateAction) Flow(org.springframework.webflow.engine.Flow) SpelParserConfiguration(org.springframework.expression.spel.SpelParserConfiguration) Transition(org.springframework.webflow.engine.Transition) BeanFactoryPropertyAccessor(org.springframework.webflow.expression.spel.BeanFactoryPropertyAccessor) BinderConfiguration(org.springframework.webflow.engine.builder.BinderConfiguration) EnvironmentAccessor(org.springframework.context.expression.EnvironmentAccessor) ReflectionUtils(org.springframework.util.ReflectionUtils) RenderAction(org.springframework.webflow.action.RenderAction) TransitionCriteriaChain(org.springframework.webflow.engine.support.TransitionCriteriaChain) SpelExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser) MessageSourcePropertyAccessor(org.springframework.webflow.expression.spel.MessageSourcePropertyAccessor) Assert(org.springframework.util.Assert) RenderAction(org.springframework.webflow.action.RenderAction)

Aggregations

ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 List (java.util.List)1 Map (java.util.Map)1 Objects (java.util.Objects)1 AccessLevel (lombok.AccessLevel)1 Getter (lombok.Getter)1 RequiredArgsConstructor (lombok.RequiredArgsConstructor)1 Setter (lombok.Setter)1 ToString (lombok.ToString)1 Slf4j (lombok.extern.slf4j.Slf4j)1 lombok.val (lombok.val)1 StringUtils (org.apache.commons.lang3.StringUtils)1 CasConfigurationProperties (org.apereo.cas.configuration.CasConfigurationProperties)1 CollectionUtils (org.apereo.cas.util.CollectionUtils)1 LoggingUtils (org.apereo.cas.util.LoggingUtils)1 FunctionUtils (org.apereo.cas.util.function.FunctionUtils)1 CasWebflowConfigurer (org.apereo.cas.web.flow.CasWebflowConfigurer)1 RuntimeBindingConversionExecutor (org.springframework.binding.convert.service.RuntimeBindingConversionExecutor)1 Expression (org.springframework.binding.expression.Expression)1