org.alfresco.repo.jscript
Class BaseScopableProcessorExtension

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

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.


Constructor Summary
BaseScopableProcessorExtension()
           
 
Method Summary
 org.mozilla.javascript.Scriptable getScope()
           
 void setScope(org.mozilla.javascript.Scriptable scope)
          Set the Scriptable global scope
 
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

BaseScopableProcessorExtension

public BaseScopableProcessorExtension()
Method Detail

setScope

public void setScope(org.mozilla.javascript.Scriptable scope)
Set the Scriptable global scope

Specified by:
setScope in interface Scopeable
Parameters:
script - relative global scope

getScope

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


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