Class AbstractAdminWebScript
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.admin.AbstractAdminWebScript
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
RepoRestrictionsGet
,RepoUsageGet
,RepoUsagePost
public abstract class AbstractAdminWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Abstract implementation for scripts that access the
RepoAdminService
.- Since:
- 3.4
- Author:
- Derek Hulley
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DescriptorService
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected final org.apache.commons.logging.Log
Logger that can be used by subclasses.protected RepoAdminService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getI18NMessage
(String key, Object... args) Return an I18N'd message for the given key or the key itself if not presentprotected void
putUsageInModel
(Map<String, Object> model, RepoUsage repoUsage, boolean updated) Helper to assign JSON return variables based on the repository usage data.void
setDescriptorService
(DescriptorService descriptorService) void
setRepoAdminService
(RepoAdminService repoAdminService) Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Field Details
-
JSON_KEY_LAST_UPDATE
- See Also:
-
JSON_KEY_USERS
- See Also:
-
JSON_KEY_DOCUMENTS
- See Also:
-
JSON_KEY_LICENSE_MODE
- See Also:
-
JSON_KEY_READ_ONLY
- See Also:
-
JSON_KEY_UPDATED
- See Also:
-
JSON_KEY_LICENSE_VALID_UNTIL
- See Also:
-
JSON_KEY_LICENSE_HOLDER
- See Also:
-
JSON_KEY_LEVEL
- See Also:
-
JSON_KEY_WARNINGS
- See Also:
-
JSON_KEY_ERRORS
- See Also:
-
logger
protected final org.apache.commons.logging.Log loggerLogger that can be used by subclasses. -
repoAdminService
-
descriptorService
-
-
Constructor Details
-
AbstractAdminWebScript
public AbstractAdminWebScript()
-
-
Method Details
-
setRepoAdminService
- Parameters:
repoAdminService
- the service that provides the functionality
-
setDescriptorService
- Parameters:
descriptorService
- the service that provides the functionality
-
getI18NMessage
Return an I18N'd message for the given key or the key itself if not present- Parameters:
args
- arguments to replace the variables in the message
-
putUsageInModel
Helper to assign JSON return variables based on the repository usage data.
-