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
Modifier and TypeMethodDescriptionExecute scriptExecute scriptexecute(ScriptLocation location, Map<String, Object> model) Execute scriptexecuteString(String script, Map<String, Object> model) Execute script stringexecuteString(String script, Map<String, Object> model, boolean secure) Execute script stringvoidreset()Reset the processor - such as clearing any internal caches etc.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:
- Object the result of the script
-
executeString
Execute script string- Parameters:
script- the script stringmodel- the context modelsecure- the flag that indicates if string is considered secure to be executed, i.e., it will have access to the full execution context instead of being executed in a sandbox context- Returns:
- Object the result of the script
-
reset
void reset()Reset the processor - such as clearing any internal caches etc.
-