public abstract class AbstractActionContext extends Object implements ActionContext
| Modifier and Type | Field and Description | 
|---|---|
protected DocumentModel | 
currentDocument  | 
protected NuxeoPrincipal | 
currentPrincipal  | 
protected CoreSession | 
docMgr  | 
protected Map<String,Object> | 
localVariables  | 
| Constructor and Description | 
|---|
AbstractActionContext()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract boolean | 
checkCondition(String expression)
Returns true if given expression resolves to true in this context. 
 | 
boolean | 
disableGlobalCaching()
Returns true if expressions evaluation should not be cached globally 
 | 
DocumentModel | 
getCurrentDocument()
Returns the current document to use for filter evaluation 
 | 
NuxeoPrincipal | 
getCurrentPrincipal()
Returns the current principal to use for filter evaluation 
 | 
CoreSession | 
getDocumentManager()
Returns the core session to use for filter evaluation 
 | 
Object | 
getLocalVariable(String key)
Returns a local variable put in the context 
 | 
void | 
putAllLocalVariables(Map<String,Object> vars)
Sets local variables, to put in the context so that expressions can reference them. 
 | 
Object | 
putLocalVariable(String key,
                Object value)
Sets a local variable, to put in the context so that expressions can reference it. 
 | 
void | 
setCurrentDocument(DocumentModel doc)
Sets the current document to use for filter evaluation 
 | 
void | 
setCurrentPrincipal(NuxeoPrincipal currentPrincipal)
Sets the current principal to use for filter evaluation 
 | 
void | 
setDocumentManager(CoreSession docMgr)
Sets the core session to use for filter evaluation 
 | 
int | 
size()
Returns the number of local variables 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevalExpressionprotected DocumentModel currentDocument
protected CoreSession docMgr
protected NuxeoPrincipal currentPrincipal
protected Map<String,Object> localVariables
public AbstractActionContext()
public abstract boolean checkCondition(String expression) throws javax.el.ELException
ActionContextReturns false if expression is blank (null or empty).
checkCondition in interface ActionContextjavax.el.ELExceptionpublic final void setCurrentDocument(DocumentModel doc)
ActionContextsetCurrentDocument in interface ActionContextpublic final DocumentModel getCurrentDocument()
ActionContextgetCurrentDocument in interface ActionContextpublic final CoreSession getDocumentManager()
ActionContextgetDocumentManager in interface ActionContextpublic final void setDocumentManager(CoreSession docMgr)
ActionContextsetDocumentManager in interface ActionContextpublic final NuxeoPrincipal getCurrentPrincipal()
ActionContextgetCurrentPrincipal in interface ActionContextpublic final void setCurrentPrincipal(NuxeoPrincipal currentPrincipal)
ActionContextsetCurrentPrincipal in interface ActionContextpublic Object getLocalVariable(String key)
ActionContextgetLocalVariable in interface ActionContextpublic Object putLocalVariable(String key, Object value)
ActionContextputLocalVariable in interface ActionContextpublic void putAllLocalVariables(Map<String,Object> vars)
ActionContextputAllLocalVariables in interface ActionContextpublic int size()
ActionContextsize in interface ActionContextpublic boolean disableGlobalCaching()
ActionContextdisableGlobalCaching in interface ActionContextCopyright © 2019 Nuxeo. All rights reserved.