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
,org.alfresco.repo.jscript.Scopeable
public class WebScriptUtils extends org.alfresco.repo.jscript.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
-
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.String
getHostAddress()
String
getHostName()
org.alfresco.service.cmr.admin.RepoUsage
getRestrictions()
List<org.alfresco.service.cmr.repository.StoreRef>
getStores()
Gets the list of repository storesorg.alfresco.service.cmr.admin.RepoUsage
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
-
-
-
-
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
-
getHostAddress
public String getHostAddress()
-
getHostName
public String getHostName()
-
getRestrictions
public org.alfresco.service.cmr.admin.RepoUsage getRestrictions()
-
getUsage
public org.alfresco.service.cmr.admin.RepoUsage getUsage()
-
getStores
public List<org.alfresco.service.cmr.repository.StoreRef> getStores()
Gets the list of repository stores- Returns:
- stores
-
-