Class WebScriptUtils

All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, Scopeable

public class WebScriptUtils extends ScriptUtils
Override of the JavaScript API ScriptUtils bean "utilsScript" to provide additional Remote API methods using objects not available to base Repository project.

See "web-scripts-application-context.xml" for bean definition.

Since:
4.2.0, 5.1 (Moved to Remote API project)
Author:
Kevin Roast
  • Field Details

  • Constructor Details

    • WebScriptUtils

      public WebScriptUtils()
  • Method Details

    • setRepositoryContainer

      public void setRepositoryContainer(RepositoryContainer repositoryContainer)
    • findWebScripts

      public Object[] findWebScripts(String family)
      Searches for webscript components with the given family name.
      Parameters:
      family - the family
      Returns:
      An array of webscripts that match the given family name
    • findWebScriptsForCurrentUser

      public Object[] findWebScriptsForCurrentUser(String family)
      Searches for webscript components with the given family name accessible to the current user.
      Parameters:
      family - the family
      Returns:
      An array of webscripts that match the given family name accessible to the current user
      Since:
      7.1
    • getHostAddress

      public String getHostAddress()
    • getHostName

      public String getHostName()
    • getRestrictions

      public RepoUsage getRestrictions()
    • getUsage

      public RepoUsage getUsage()
    • getStores

      public List<StoreRef> getStores()
      Gets the list of repository stores
      Returns:
      stores