public class SkinConfigurationAction extends ServiceableAction implements Contextualizable
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private SkinDAO |
_skinDAO |
private SkinParameterTypeExtensionPoint |
_skinParameterTypeEP |
private SkinsManager |
_skinsManager
The service manager instance
|
manager
EMPTY_MAP
Constructor and Description |
---|
SkinConfigurationAction() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_values2json(File skinDir,
Map<String,ElementDefinition> flatDefinitions)
Read configuration file and return a flat map of values
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
contextualize(Context context) |
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private SkinsManager _skinsManager
private SkinParameterTypeExtensionPoint _skinParameterTypeEP
public SkinConfigurationAction()
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
private Map<String,Object> _values2json(File skinDir, Map<String,ElementDefinition> flatDefinitions) throws Exception
skinDir
- The skin directoryflatDefinitions
- The parameters definitionsException
- if a problem occurs reading valuespublic void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException