Package org.nuxeo.ecm.platform.actions
Class ELActionContext
java.lang.Object
org.nuxeo.ecm.platform.actions.AbstractActionContext
org.nuxeo.ecm.platform.actions.ELActionContext
- All Implemented Interfaces:
Serializable,ActionContext
Default EL action context
- Since:
- 5.7.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final jakarta.el.ExpressionFactoryprotected final jakarta.el.ExpressionFactoryprotected final jakarta.el.ELContextFields inherited from class org.nuxeo.ecm.platform.actions.AbstractActionContext
currentDocument, currentPrincipal, docMgr, localVariables -
Constructor Summary
ConstructorsConstructorDescriptionELActionContext(jakarta.el.ELContext originalContext, jakarta.el.ExpressionFactory expressionFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckCondition(String expression) Returns true if given expression resolves to true in this context.<T> TevalExpression(String expression, Class<T> expectedType) Evaluates the givenexpressionand returns the result cast to the givenexpectedType.Methods inherited from class org.nuxeo.ecm.platform.actions.AbstractActionContext
disableGlobalCaching, getCurrentDocument, getCurrentPrincipal, getDocumentManager, getLocalVariable, putAllLocalVariables, putLocalVariable, setCurrentDocument, setCurrentPrincipal, setDocumentManager, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.platform.actions.ActionContext
disableGlobalCaching, getCurrentDocument, getCurrentPrincipal, getDocumentManager, getLocalVariable, putAllLocalVariables, putLocalVariable, setCurrentDocument, setCurrentPrincipal, setDocumentManager, size
-
Field Details
-
originalContext
protected final jakarta.el.ELContext originalContext -
expressionFactory
protected final jakarta.el.ExpressionFactory expressionFactory -
EXPRESSION_FACTORY
public static final jakarta.el.ExpressionFactory EXPRESSION_FACTORY
-
-
Constructor Details
-
ELActionContext
public ELActionContext() -
ELActionContext
public ELActionContext(jakarta.el.ELContext originalContext, jakarta.el.ExpressionFactory expressionFactory)
-
-
Method Details
-
evalExpression
Description copied from interface:ActionContextEvaluates the givenexpressionand returns the result cast to the givenexpectedType.- Specified by:
evalExpressionin interfaceActionContext- Returns:
- the result of the expression evaluation
- Throws:
jakarta.el.ELException
-
checkCondition
Description copied from interface:ActionContextReturns true if given expression resolves to true in this context.Returns false if expression is blank (null or empty).
- Specified by:
checkConditionin interfaceActionContext- Specified by:
checkConditionin classAbstractActionContext- Throws:
jakarta.el.ELException
-