Interface ScriptProcessor
-
- All Superinterfaces:
org.alfresco.processor.Processor
- All Known Implementing Classes:
RhinoScriptProcessor
public interface ScriptProcessor extends org.alfresco.processor.ProcessorScript processor interface- Author:
- Roy Wetherall
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectexecute(String location, Map<String,Object> model)Execute scriptObjectexecute(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProp, Map<String,Object> model)Execute scriptObjectexecute(ScriptLocation location, Map<String,Object> model)Execute scriptObjectexecuteString(String script, Map<String,Object> model)Execute script stringvoidreset()Reset the processor - such as clearing any internal caches etc.
-
-
-
Method Detail
-
execute
Object execute(ScriptLocation location, Map<String,Object> model)
Execute script- Parameters:
location- the location of the scriptmodel- context model- Returns:
- Object the result of the script
-
execute
Object execute(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProp, Map<String,Object> model)
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
Object execute(String location, Map<String,Object> model)
Execute script- Parameters:
location- the classpath string locating the scriptmodel- the context model- Returns:
- Object the result of the script
-
executeString
Object executeString(String script, Map<String,Object> model)
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.
-
-