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 Details

    • scriptService

      protected ScriptService 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

      public void setScriptService(ScriptService scriptService)
      Parameters:
      scriptService - ScriptService
    • setSearchPath

      public void setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath)
      Parameters:
      searchPath - SearchPath
    • findScript

      public org.springframework.extensions.webscripts.ScriptContent findScript(String path)
      Specified by:
      findScript in interface org.springframework.extensions.webscripts.ScriptProcessor
    • executeScript

      public Object executeScript(String path, Map<String,Object> model) throws org.alfresco.scripts.ScriptException
      Specified by:
      executeScript in interface org.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:
      executeScript in interface org.springframework.extensions.webscripts.ScriptProcessor
    • unwrapValue

      public Object unwrapValue(Object value)
      Specified by:
      unwrapValue in interface org.springframework.extensions.webscripts.ScriptProcessor
    • reset

      public void reset()
      Specified by:
      reset in interface org.springframework.extensions.webscripts.ScriptProcessor