Interface ScriptProcessor
- All Superinterfaces:
org.alfresco.processor.Processor
- All Known Implementing Classes:
RhinoScriptProcessor
public interface ScriptProcessor
extends org.alfresco.processor.Processor
Script processor interface
- Author:
- Roy Wetherall
-
Method Summary
Methods inherited from interface org.alfresco.processor.Processor
getExtension, getName, registerProcessorExtension
-
Method Details
-
execute
Execute script- Parameters:
location- the location of the scriptmodel- context model- Returns:
- Object the result of the script
-
execute
Execute script- Parameters:
nodeRef- the script node referencecontentProp- the content property of the scriptmodel- the context model- Returns:
- Object the result of the script
-
execute
Execute script- Parameters:
location- the classpath string locating the scriptmodel- the context model- Returns:
- Object the result of the script
-
executeString
Execute script string- Parameters:
script- the script stringmodel- the context model- Returns:
- Obejct the result of the script
-
reset
void reset()Reset the processor - such as clearing any internal caches etc.
-