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
    • Constructor Detail

      • WebScriptUtils

        public WebScriptUtils()
    • Method Detail

      • 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
      • getHostAddress

        public String getHostAddress()
      • getHostName

        public String getHostName()
      • getRestrictions

        public RepoUsage getRestrictions()
      • getStores

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