Class AbstractActionWebscript
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.action.AbstractActionWebscript
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
AbstractExecuteActionWebscript
,RunningActionDelete
,RunningActionGet
,RunningActionsGet
,RunningReplicationActionsGet
public abstract class AbstractActionWebscript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
- Since:
- 3.4
- Author:
- Nick Burch
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionService
protected ActionTrackingService
protected NodeService
protected RuntimeActionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildModel
(RunningActionModelBuilder modelBuilder, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) 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 ExecutionSummarystatic ExecutionSummary
getSummaryFromAction
(Action action) Returns the ExecutionSummary for the given action if it is currently executing, or null if it isn'tstatic 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
(NodeService nodeService) void
setRuntimeActionService
(RuntimeActionService runtimeActionService) Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Field Details
-
nodeService
-
actionService
-
runtimeActionService
-
actionTrackingService
-
-
Constructor Details
-
AbstractActionWebscript
public AbstractActionWebscript()
-
-
Method Details
-
setNodeService
-
setActionService
-
setRuntimeActionService
-
setActionTrackingService
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) - Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
buildModel
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) -
getSummaryFromKey
Takes a running action ID, and returns an ExecutionSummary object for it. Note - doesn't check to see if the object exists in the cache though! -
getSummaryFromAction
Returns the ExecutionSummary for the given action if it is currently executing, or null if it isn't -
getRunningId
Returns the running action ID for the given ExecutionSummary
-