Package org.alfresco.repo.action.script
Class ScriptActionTrackingService
- java.lang.Object
-
- org.alfresco.repo.processor.BaseProcessorExtension
-
- org.alfresco.repo.jscript.BaseScopableProcessorExtension
-
- org.alfresco.repo.action.script.ScriptActionTrackingService
-
- All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension,Scopeable
public class ScriptActionTrackingService extends BaseScopableProcessorExtension
Script object representing the action tracking service.- Author:
- Nick Burch
-
-
Constructor Summary
Constructors Constructor Description ScriptActionTrackingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptExecutionDetails[]getAllExecutingActions()Retrieve summary details of all the actions currently executing.ScriptExecutionDetails[]getExecutingActions(java.lang.String type)Retrieve summary details of all the actions of the given type that are currently executing.ScriptExecutionDetails[]getExecutingActions(Action action)Retrieve summary details of all instances of the specified action that are currently executing.voidrequestActionCancellation(ScriptExecutionDetails action)Requests that the specified Action cancel itself and aborts execution, as soon as possible.voidsetActionTrackingService(ActionTrackingService actionTrackingService)Set the action tracking service.voidsetServiceRegistry(ServiceRegistry serviceRegistry)Set the service registry-
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScope
-
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
-
-
-
Method Detail
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
Set the service registry- Parameters:
serviceRegistry- the service registry.
-
setActionTrackingService
public void setActionTrackingService(ActionTrackingService actionTrackingService)
Set the action tracking service.- Parameters:
actionTrackingService- the action tracking service
-
requestActionCancellation
public void requestActionCancellation(ScriptExecutionDetails action)
Requests that the specified Action cancel itself and aborts execution, as soon as possible.
-
getAllExecutingActions
public ScriptExecutionDetails[] getAllExecutingActions()
Retrieve summary details of all the actions currently executing.
-
getExecutingActions
public ScriptExecutionDetails[] getExecutingActions(java.lang.String type)
Retrieve summary details of all the actions of the given type that are currently executing.
-
getExecutingActions
public ScriptExecutionDetails[] getExecutingActions(Action action)
Retrieve summary details of all instances of the specified action that are currently executing.
-
-