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 SummaryFieldsModifier and TypeFieldDescriptionprotected DocumentModelprotected NuxeoPrincipalprotected CoreSession
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.platform.actions.ActionContextevalExpression
- 
Field Details- 
currentDocument
- 
docMgr
- 
currentPrincipal
- 
localVariables
 
- 
- 
Constructor Details- 
AbstractActionContextpublic AbstractActionContext()
 
- 
- 
Method Details- 
checkConditionDescription 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 interface- ActionContext
- Throws:
- javax.el.ELException
 
- 
setCurrentDocumentDescription copied from interface:ActionContextSets the current document to use for filter evaluation- Specified by:
- setCurrentDocumentin interface- ActionContext
 
- 
getCurrentDocumentDescription copied from interface:ActionContextReturns the current document to use for filter evaluation- Specified by:
- getCurrentDocumentin interface- ActionContext
 
- 
getDocumentManagerDescription copied from interface:ActionContextReturns the core session to use for filter evaluation- Specified by:
- getDocumentManagerin interface- ActionContext
 
- 
setDocumentManagerDescription copied from interface:ActionContextSets the core session to use for filter evaluation- Specified by:
- setDocumentManagerin interface- ActionContext
 
- 
getCurrentPrincipalDescription copied from interface:ActionContextReturns the current principal to use for filter evaluation- Specified by:
- getCurrentPrincipalin interface- ActionContext
 
- 
setCurrentPrincipalDescription copied from interface:ActionContextSets the current principal to use for filter evaluation- Specified by:
- setCurrentPrincipalin interface- ActionContext
 
- 
getLocalVariableDescription copied from interface:ActionContextReturns a local variable put in the context- Specified by:
- getLocalVariablein interface- ActionContext
 
- 
putLocalVariableDescription copied from interface:ActionContextSets a local variable, to put in the context so that expressions can reference it.- Specified by:
- putLocalVariablein interface- ActionContext
 
- 
putAllLocalVariablesDescription copied from interface:ActionContextSets local variables, to put in the context so that expressions can reference them.- Specified by:
- putAllLocalVariablesin interface- ActionContext
 
- 
sizepublic int size()Description copied from interface:ActionContextReturns the number of local variables- Specified by:
- sizein interface- ActionContext
 
- 
disableGlobalCachingpublic boolean disableGlobalCaching()Description copied from interface:ActionContextReturns true if expressions evaluation should not be cached globally- Specified by:
- disableGlobalCachingin interface- ActionContext
 
 
-