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 javax.el.ExpressionFactoryprotected final javax.el.ExpressionFactoryprotected final javax.el.ELContextFields inherited from class org.nuxeo.ecm.platform.actions.AbstractActionContext
currentDocument, currentPrincipal, docMgr, localVariables -
Constructor Summary
ConstructorsConstructorDescriptionELActionContext(javax.el.ELContext originalContext, javax.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 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
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:
javax.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:
javax.el.ELException
-