public abstract class AbstractAdminWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
RepoAdminService
.Modifier and Type | Field and Description |
---|---|
protected DescriptorService |
descriptorService |
static String |
JSON_KEY_DOCUMENTS |
static String |
JSON_KEY_ERRORS |
static String |
JSON_KEY_LAST_UPDATE |
static String |
JSON_KEY_LEVEL |
static String |
JSON_KEY_LICENSE_HOLDER |
static String |
JSON_KEY_LICENSE_MODE |
static String |
JSON_KEY_LICENSE_VALID_UNTIL |
static String |
JSON_KEY_READ_ONLY |
static String |
JSON_KEY_UPDATED |
static String |
JSON_KEY_USERS |
static String |
JSON_KEY_WARNINGS |
protected org.apache.commons.logging.Log |
logger
Logger that can be used by subclasses.
|
protected RepoAdminService |
repoAdminService |
Constructor and Description |
---|
AbstractAdminWebScript() |
Modifier and Type | Method and Description |
---|---|
protected String |
getI18NMessage(String key,
Object... args)
Return an I18N'd message for the given key or the key itself if not present
|
protected 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) |
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
public static final String JSON_KEY_LAST_UPDATE
public static final String JSON_KEY_USERS
public static final String JSON_KEY_DOCUMENTS
public static final String JSON_KEY_LICENSE_MODE
public static final String JSON_KEY_READ_ONLY
public static final String JSON_KEY_UPDATED
public static final String JSON_KEY_LICENSE_VALID_UNTIL
public static final String JSON_KEY_LICENSE_HOLDER
public static final String JSON_KEY_LEVEL
public static final String JSON_KEY_WARNINGS
public static final String JSON_KEY_ERRORS
protected final org.apache.commons.logging.Log logger
protected RepoAdminService repoAdminService
protected DescriptorService descriptorService
public void setRepoAdminService(RepoAdminService repoAdminService)
repoAdminService
- the service that provides the functionalitypublic void setDescriptorService(DescriptorService descriptorService)
descriptorService
- the service that provides the functionalityprotected String getI18NMessage(String key, Object... args)
args
- arguments to replace the variables in the messageCopyright © 2005–2017 Alfresco Software. All rights reserved.