public class GetDeployedModules
extends org.springframework.extensions.webscripts.DeclarativeWebScript
implements org.springframework.context.ApplicationContextAware
This is the Java controller for the Module Deployment WebScript (/modules/deploy) that returns the status of the module
deployment configuration. The corrent configuration is retrieved from the configured ModuleDeploymentService and
converted into "stringified" JSON and added to the model for rendering by the template.
| Constructor and Description |
|---|
GetDeployedModules() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache)
Builds a model containing lists of undeployed and deployed modules as
JSONObject instances along with
a list of the configured ExtensionModuleEvaluator instances and a timestamp of the last server update. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Provided to satisfy the
ApplicationContextAware interface and allows Spring to provide the ApplicationContext
to this bean. |
void |
setModuleDeploymentService(ModuleDeploymentService moduleDeploymentService)
Provided so that the Spring application context can set the
ModuleDeploymentService to use. |
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateaddModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
Provided to satisfy the ApplicationContextAware interface and allows Spring to provide the ApplicationContext
to this bean.
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setModuleDeploymentService(ModuleDeploymentService moduleDeploymentService)
Provided so that the Spring application context can set the ModuleDeploymentService to use. It is essential that
the Spring bean configuration has been set correctly otherwise this controller will not achieve anything.
moduleDeploymentService - ModuleDeploymentServiceprotected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
Builds a model containing lists of undeployed and deployed modules as JSONObject instances along with
a list of the configured ExtensionModuleEvaluator instances and a timestamp of the last server update.
executeImpl in class org.springframework.extensions.webscripts.DeclarativeWebScriptCopyright © 2005–2016 Alfresco Software. All rights reserved.