public abstract class AbstractActionWebscript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Field and Description |
---|---|
protected ActionService |
actionService |
protected ActionTrackingService |
actionTrackingService |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected RuntimeActionService |
runtimeActionService |
Constructor and Description |
---|
AbstractActionWebscript() |
Modifier and Type | Method and Description |
---|---|
protected abstract Map<String,Object> |
buildModel(RunningActionModelBuilder modelBuilder,
org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
protected Map<String,Object> |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
static String |
getRunningId(ExecutionSummary summary)
Returns the running action ID for the given
ExecutionSummary
|
static ExecutionSummary |
getSummaryFromAction(Action action)
Returns the ExecutionSummary for the given action if it
is currently executing, or null if it isn't
|
static ExecutionSummary |
getSummaryFromKey(String key)
Takes a running action ID, and returns an
ExecutionSummary object for it.
|
void |
setActionService(ActionService actionService) |
void |
setActionTrackingService(ActionTrackingService actionTrackingService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setRuntimeActionService(RuntimeActionService runtimeActionService) |
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected ActionService actionService
protected RuntimeActionService runtimeActionService
protected ActionTrackingService actionTrackingService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setActionService(ActionService actionService)
public void setRuntimeActionService(RuntimeActionService runtimeActionService)
public void setActionTrackingService(ActionTrackingService actionTrackingService)
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
executeImpl
in class org.springframework.extensions.webscripts.DeclarativeWebScript
protected abstract Map<String,Object> buildModel(RunningActionModelBuilder modelBuilder, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
public static ExecutionSummary getSummaryFromKey(String key)
public static ExecutionSummary getSummaryFromAction(Action action)
public static String getRunningId(ExecutionSummary summary)
Copyright © 2005–2017 Alfresco Software. All rights reserved.