Package org.alfresco.web.scripts
Class WebScriptUtils
- java.lang.Object
-
- org.alfresco.repo.processor.BaseProcessorExtension
-
- org.alfresco.repo.jscript.BaseScopableProcessorExtension
-
- org.alfresco.repo.jscript.ScriptUtils
-
- org.alfresco.web.scripts.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 Summary
Fields Modifier and Type Field Description protected RepositoryContainer
repositoryContainer
-
Fields inherited from class org.alfresco.repo.jscript.ScriptUtils
services
-
-
Constructor Summary
Constructors Constructor Description WebScriptUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
findWebScripts(String family)
Searches for webscript components with the given family name.Object[]
findWebScriptsForCurrentUser(String family)
Searches for webscript components with the given family name accessible to the current user.String
getHostAddress()
String
getHostName()
RepoUsage
getRestrictions()
List<StoreRef>
getStores()
Gets the list of repository storesRepoUsage
getUsage()
void
setRepositoryContainer(RepositoryContainer repositoryContainer)
-
Methods inherited from class org.alfresco.repo.jscript.ScriptUtils
createPaging, createPaging, createPaging, disableRules, displayPath, enableRules, fromISO8601, getLocale, getNodeFromString, longQName, moduleInstalled, pad, resolveNodeReference, setLocale, setNodeService, setServiceRegistry, shortQName, toBoolean, toISO8601, toISO8601
-
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScope
-
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
-
-
-
Field Detail
-
repositoryContainer
protected RepositoryContainer repositoryContainer
-
-
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
-
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()
-
-