Package org.alfresco.repo.web.scripts
Class RepositoryScriptProcessor
java.lang.Object
org.alfresco.repo.web.scripts.RepositoryScriptProcessor
- All Implemented Interfaces:
org.springframework.extensions.webscripts.ScriptProcessor
public class RepositoryScriptProcessor
extends Object
implements org.springframework.extensions.webscripts.ScriptProcessor
Repository (server-tier) Web Script Processor
- Author:
- davidc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.extensions.webscripts.ScriptLoaderprotected ScriptServiceprotected org.springframework.extensions.webscripts.SearchPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteScript(String path, Map<String, Object> model) executeScript(org.springframework.extensions.webscripts.ScriptContent content, Map<String, Object> model) org.springframework.extensions.webscripts.ScriptContentfindScript(String path) voidreset()voidsetScriptService(ScriptService scriptService) voidsetSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath) unwrapValue(Object value)
-
Field Details
-
scriptService
-
scriptLoader
protected org.springframework.extensions.webscripts.ScriptLoader scriptLoader -
searchPath
protected org.springframework.extensions.webscripts.SearchPath searchPath
-
-
Constructor Details
-
RepositoryScriptProcessor
public RepositoryScriptProcessor()
-
-
Method Details
-
setScriptService
- Parameters:
scriptService- ScriptService
-
setSearchPath
public void setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath) - Parameters:
searchPath- SearchPath
-
findScript
- Specified by:
findScriptin interfaceorg.springframework.extensions.webscripts.ScriptProcessor
-
executeScript
public Object executeScript(String path, Map<String, Object> model) throws org.alfresco.scripts.ScriptException- Specified by:
executeScriptin interfaceorg.springframework.extensions.webscripts.ScriptProcessor- Throws:
org.alfresco.scripts.ScriptException
-
executeScript
public Object executeScript(org.springframework.extensions.webscripts.ScriptContent content, Map<String, Object> model) - Specified by:
executeScriptin interfaceorg.springframework.extensions.webscripts.ScriptProcessor
-
unwrapValue
- Specified by:
unwrapValuein interfaceorg.springframework.extensions.webscripts.ScriptProcessor
-
reset
public void reset()- Specified by:
resetin interfaceorg.springframework.extensions.webscripts.ScriptProcessor
-