Class ELActionContext

java.lang.Object
org.nuxeo.ecm.platform.actions.AbstractActionContext
org.nuxeo.ecm.platform.actions.ELActionContext
All Implemented Interfaces:
Serializable, ActionContext

public class ELActionContext extends AbstractActionContext implements ActionContext
Default EL action context
Since:
5.7.3
See Also:
  • Field Details

    • originalContext

      protected final javax.el.ELContext originalContext
    • expressionFactory

      protected final javax.el.ExpressionFactory expressionFactory
    • EXPRESSION_FACTORY

      public static final javax.el.ExpressionFactory EXPRESSION_FACTORY
  • Constructor Details

    • ELActionContext

      public ELActionContext()
    • ELActionContext

      public ELActionContext(javax.el.ELContext originalContext, javax.el.ExpressionFactory expressionFactory)
  • Method Details

    • evalExpression

      public <T> T evalExpression(String expression, Class<T> expectedType) throws javax.el.ELException
      Description copied from interface: ActionContext
      Evaluates the given expression and returns the result cast to the given expectedType.
      Specified by:
      evalExpression in interface ActionContext
      Returns:
      the result of the expression evaluation
      Throws:
      javax.el.ELException
    • checkCondition

      public boolean checkCondition(String expression) throws javax.el.ELException
      Description copied from interface: ActionContext
      Returns true if given expression resolves to true in this context.

      Returns false if expression is blank (null or empty).

      Specified by:
      checkCondition in interface ActionContext
      Specified by:
      checkCondition in class AbstractActionContext
      Throws:
      javax.el.ELException