public abstract class AbstractActionContext extends Object implements ActionContext
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
|
public abstract boolean checkCondition(String expression) throws ELException
ActionContext
Returns false if expression is blank (null or empty).
checkCondition
in interface ActionContext
ELException
public final void setCurrentDocument(DocumentModel doc)
ActionContext
setCurrentDocument
in interface ActionContext
public final DocumentModel getCurrentDocument()
ActionContext
getCurrentDocument
in interface ActionContext
public final CoreSession getDocumentManager()
ActionContext
getDocumentManager
in interface ActionContext
public final void setDocumentManager(CoreSession docMgr)
ActionContext
setDocumentManager
in interface ActionContext
public final NuxeoPrincipal getCurrentPrincipal()
ActionContext
getCurrentPrincipal
in interface ActionContext
public final void setCurrentPrincipal(NuxeoPrincipal currentPrincipal)
ActionContext
setCurrentPrincipal
in interface ActionContext
public Object getLocalVariable(String key)
ActionContext
getLocalVariable
in interface ActionContext
public Object putLocalVariable(String key, Object value)
ActionContext
putLocalVariable
in interface ActionContext
public void putAllLocalVariables(Map<String,Object> vars)
ActionContext
putAllLocalVariables
in interface ActionContext
public int size()
ActionContext
size
in interface ActionContext
public boolean disableGlobalCaching()
ActionContext
disableGlobalCaching
in interface ActionContext
Copyright © 2013 Nuxeo SA. All Rights Reserved.