public class RepositoryScriptProcessor extends Object implements org.springframework.extensions.webscripts.ScriptProcessor
Modifier and Type | Field and Description |
---|---|
protected org.springframework.extensions.webscripts.ScriptLoader |
scriptLoader |
protected ScriptService |
scriptService |
protected org.springframework.extensions.webscripts.SearchPath |
searchPath |
Constructor and Description |
---|
RepositoryScriptProcessor() |
Modifier and Type | Method and Description |
---|---|
Object |
executeScript(org.springframework.extensions.webscripts.ScriptContent content,
Map<String,Object> model) |
Object |
executeScript(String path,
Map<String,Object> model) |
org.springframework.extensions.webscripts.ScriptContent |
findScript(String path) |
void |
reset() |
void |
setScriptService(ScriptService scriptService) |
void |
setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath) |
Object |
unwrapValue(Object value) |
protected ScriptService scriptService
protected org.springframework.extensions.webscripts.ScriptLoader scriptLoader
protected org.springframework.extensions.webscripts.SearchPath searchPath
public void setScriptService(ScriptService scriptService)
scriptService
- ScriptServicepublic void setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath)
searchPath
- SearchPathpublic org.springframework.extensions.webscripts.ScriptContent findScript(String path)
findScript
in interface org.springframework.extensions.webscripts.ScriptProcessor
public Object executeScript(String path, Map<String,Object> model) throws org.alfresco.scripts.ScriptException
executeScript
in interface org.springframework.extensions.webscripts.ScriptProcessor
org.alfresco.scripts.ScriptException
public Object executeScript(org.springframework.extensions.webscripts.ScriptContent content, Map<String,Object> model)
executeScript
in interface org.springframework.extensions.webscripts.ScriptProcessor
public Object unwrapValue(Object value)
unwrapValue
in interface org.springframework.extensions.webscripts.ScriptProcessor
public void reset()
reset
in interface org.springframework.extensions.webscripts.ScriptProcessor
Copyright © 2005–2017 Alfresco Software. All rights reserved.