public interface ScriptProcessor
extends org.alfresco.processor.Processor
Modifier and Type | Method and Description |
---|---|
Object |
execute(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName contentProp,
Map<String,Object> model)
Execute script
|
Object |
execute(ScriptLocation location,
Map<String,Object> model)
Execute script
|
Object |
execute(String location,
Map<String,Object> model)
Execute script
|
Object |
executeString(String script,
Map<String,Object> model)
Execute script string
|
void |
reset()
Reset the processor - such as clearing any internal caches etc.
|
Object execute(ScriptLocation location, Map<String,Object> model)
location
- the location of the scriptmodel
- context modelObject execute(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProp, Map<String,Object> model)
nodeRef
- the script node referencecontentProp
- the content property of the scriptmodel
- the context modelObject execute(String location, Map<String,Object> model)
location
- the classpath string locating the scriptmodel
- the context modelObject executeString(String script, Map<String,Object> model)
script
- the script stringmodel
- the context modelvoid reset()
Copyright © 2005–2017 Alfresco Software. All rights reserved.