Class GetActions
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.operations.services.GetActions
-
public class GetActions extends Object
QueriesActionManager
for available actions in the given context- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected ActionManager
actionService
protected AutomationService
automation
protected String
category
protected OperationContext
ctx
static String
ID
protected String
lang
static String
SEAM_ACTION_CONTEXT
protected CoreSession
session
-
Constructor Summary
Constructors Constructor Description GetActions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActionContext
getActionContext(DocumentModel currentDocument)
protected DocumentModel
getCurrentDocumentFromContext()
protected Locale
getLocale()
Blob
run()
Blob
run(DocumentModel currentDocument)
protected String
translate(String key)
-
-
-
Field Detail
-
SEAM_ACTION_CONTEXT
public static final String SEAM_ACTION_CONTEXT
- See Also:
- Constant Field Values
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
session
protected CoreSession session
-
ctx
protected OperationContext ctx
-
automation
protected AutomationService automation
-
actionService
protected ActionManager actionService
-
category
protected String category
-
lang
protected String lang
-
-
Method Detail
-
getCurrentDocumentFromContext
protected DocumentModel getCurrentDocumentFromContext() throws OperationException
- Throws:
OperationException
-
getActionContext
protected ActionContext getActionContext(DocumentModel currentDocument) throws OperationException
- Throws:
OperationException
-
getLocale
protected Locale getLocale()
-
run
public Blob run() throws IOException, OperationException
- Throws:
IOException
OperationException
-
run
public Blob run(DocumentModel currentDocument) throws IOException, OperationException
- Throws:
IOException
OperationException
-
-