Package org.nuxeo.ecm.platform.actions
Class AbstractActionContext
java.lang.Object
org.nuxeo.ecm.platform.actions.AbstractActionContext
- All Implemented Interfaces:
Serializable,ActionContext
- Direct Known Subclasses:
ELActionContext
- Since:
- 5.7.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentModelprotected NuxeoPrincipalprotected CoreSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancheckCondition(String expression) Returns true if given expression resolves to true in this context.booleanReturns true if expressions evaluation should not be cached globallyfinal DocumentModelReturns the current document to use for filter evaluationfinal NuxeoPrincipalReturns the current principal to use for filter evaluationfinal CoreSessionReturns the core session to use for filter evaluationgetLocalVariable(String key) Returns a local variable put in the contextvoidputAllLocalVariables(Map<String, Object> vars) Sets local variables, to put in the context so that expressions can reference them.putLocalVariable(String key, Object value) Sets a local variable, to put in the context so that expressions can reference it.final voidSets the current document to use for filter evaluationfinal voidsetCurrentPrincipal(NuxeoPrincipal currentPrincipal) Sets the current principal to use for filter evaluationfinal voidsetDocumentManager(CoreSession docMgr) Sets the core session to use for filter evaluationintsize()Returns the number of local variablesMethods 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
evalExpression
-
Field Details
-
currentDocument
-
docMgr
-
currentPrincipal
-
localVariables
-
-
Constructor Details
-
AbstractActionContext
public AbstractActionContext()
-
-
Method Details
-
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- Throws:
jakarta.el.ELException
-
setCurrentDocument
Description copied from interface:ActionContextSets the current document to use for filter evaluation- Specified by:
setCurrentDocumentin interfaceActionContext
-
getCurrentDocument
Description copied from interface:ActionContextReturns the current document to use for filter evaluation- Specified by:
getCurrentDocumentin interfaceActionContext
-
getDocumentManager
Description copied from interface:ActionContextReturns the core session to use for filter evaluation- Specified by:
getDocumentManagerin interfaceActionContext
-
setDocumentManager
Description copied from interface:ActionContextSets the core session to use for filter evaluation- Specified by:
setDocumentManagerin interfaceActionContext
-
getCurrentPrincipal
Description copied from interface:ActionContextReturns the current principal to use for filter evaluation- Specified by:
getCurrentPrincipalin interfaceActionContext
-
setCurrentPrincipal
Description copied from interface:ActionContextSets the current principal to use for filter evaluation- Specified by:
setCurrentPrincipalin interfaceActionContext
-
getLocalVariable
Description copied from interface:ActionContextReturns a local variable put in the context- Specified by:
getLocalVariablein interfaceActionContext
-
putLocalVariable
Description copied from interface:ActionContextSets a local variable, to put in the context so that expressions can reference it.- Specified by:
putLocalVariablein interfaceActionContext
-
putAllLocalVariables
Description copied from interface:ActionContextSets local variables, to put in the context so that expressions can reference them.- Specified by:
putAllLocalVariablesin interfaceActionContext
-
size
public int size()Description copied from interface:ActionContextReturns the number of local variables- Specified by:
sizein interfaceActionContext
-
disableGlobalCaching
public boolean disableGlobalCaching()Description copied from interface:ActionContextReturns true if expressions evaluation should not be cached globally- Specified by:
disableGlobalCachingin interfaceActionContext
-