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
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
FieldsFields inherited from class org.alfresco.repo.jscript.ScriptUtils
services
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
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.Gets the list of repository storesgetUsage()
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 Details
-
repositoryContainer
-
-
Constructor Details
-
WebScriptUtils
public WebScriptUtils()
-
-
Method Details
-
setRepositoryContainer
-
findWebScripts
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
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
-
getHostName
-
getRestrictions
-
getUsage
-
getStores
Gets the list of repository stores- Returns:
- stores
-