org.alfresco.repo.action.script
Class ScriptActionTrackingService

java.lang.Object
  extended by org.alfresco.repo.processor.BaseProcessorExtension
      extended by org.alfresco.repo.jscript.BaseScopableProcessorExtension
          extended by 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.


Constructor Summary
ScriptActionTrackingService()
           
 
Method Summary
 ScriptExecutionDetails[] getAllExecutingActions()
          Retrieve summary details of all the actions currently executing.
 ScriptExecutionDetails[] getExecutingActions(Action action)
          Retrieve summary details of all instances of the specified action that are currently executing.
 ScriptExecutionDetails[] getExecutingActions(java.lang.String type)
          Retrieve summary details of all the actions of the given type that are currently executing.
 void requestActionCancellation(ScriptExecutionDetails action)
          Requests that the specified Action cancel itself and aborts execution, as soon as possible.
 void setActionTrackingService(ActionTrackingService actionTrackingService)
          Set the action tracking service.
 void setServiceRegistry(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptActionTrackingService

public ScriptActionTrackingService()
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.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.