Class BaseScopableProcessorExtension

java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, Scopeable
Direct Known Subclasses:
Actions, Activity, AlfrescoScriptVirtualContext, ApplicationScriptUtils, Classification, Imap, JscriptWorkflowTask, People, Presence, ScriptActionTrackingService, ScriptAuthorityService, ScriptFormService, ScriptInvitationService, ScriptPreferenceService, ScriptRatingService, ScriptRenditionService, ScriptRenditionService2, ScriptReplicationService, ScriptSiteService, ScriptTaggingService, ScriptTestUtils, ScriptThumbnailService, ScriptTransferService, ScriptUtils, Search, WorkflowManager

@AlfrescoPublicApi public class BaseScopableProcessorExtension extends BaseProcessorExtension implements Scopeable
Abstract base class for a script implementation that requires a script execution scope. The scope is local to the currently executing script and therefore a ThreadLocal is required.
Author:
Kevin Roast
  • Constructor Details

    • BaseScopableProcessorExtension

      public BaseScopableProcessorExtension()
  • Method Details

    • setScope

      public void setScope(org.mozilla.javascript.Scriptable scope)
      Set the Scriptable global scope
      Specified by:
      setScope in interface Scopeable
      Parameters:
      scope - relative global scope
    • getScope

      public org.mozilla.javascript.Scriptable getScope()
      Returns:
      script global scope