public class SiteConfigurationAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected LanguagesManager |
_languagesManager
The available languages manager
|
protected SiteConfigurationExtensionPoint |
_siteConfiguration
The site configuration.
|
protected SiteManager |
_siteManager
The site manager.
|
manager
EMPTY_MAP
Constructor and Description |
---|
SiteConfigurationAction() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_languages2JsonObject() |
private Map<String,Object> |
_parameter2JsonObject(SiteParameter siteParameter) |
private Map<String,Object> |
_parameters2json(String siteName) |
private Map<String,Object> |
_parameters2JsonObject(List<SiteParameter> siteParameters) |
private Map<String,Object> |
_values2json(String siteName) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected SiteManager _siteManager
protected SiteConfigurationExtensionPoint _siteConfiguration
protected LanguagesManager _languagesManager
public SiteConfigurationAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private Map<String,Object> _values2json(String siteName)
private Map<String,Object> _parameters2json(String siteName) throws ProcessingException
ProcessingException
private Map<String,Object> _parameters2JsonObject(List<SiteParameter> siteParameters) throws ProcessingException
ProcessingException
private Map<String,Object> _parameter2JsonObject(SiteParameter siteParameter) throws ProcessingException
ProcessingException
private Map<String,Object> _languages2JsonObject()