public class SkinConfigurationAction extends ServiceableAction implements Contextualizable
Modifier and Type | Class and Description |
---|---|
(package private) class |
SkinConfigurationAction.I18nizableTextComparator |
(package private) class |
SkinConfigurationAction.SkinConfigHandler |
(package private) class |
SkinConfigurationAction.SkinParameterParser
Parser for
SkinParameter parameter. |
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private SAXParser |
_saxParser |
private SkinsManager |
_skinsManager |
manager
EMPTY_MAP
Constructor and Description |
---|
SkinConfigurationAction() |
Modifier and Type | Method and Description |
---|---|
protected Map<I18nizableText,Map<I18nizableText,List<SkinParameter>>> |
_categorize(Collection<SkinParameter> parameters)
Organize a collection of skin parameters by categories and groups.
|
private Map<I18nizableText,Map<I18nizableText,List<SkinParameter>>> |
_getCategorizedParameters(File skinDir) |
private Configuration |
_getConfigurationModel(File skinDir) |
private List<SkinParameter> |
_getParameters(File skinDir) |
private Map<String,Object> |
_parameter2JsonObject(SkinParameter skinParameter) |
private Map<String,Object> |
_parameters2json(File skinDir) |
private Map<String,Object> |
_parameters2JsonObject(List<SkinParameter> skinParameters) |
private Map<String,Object> |
_values2json(File skinDir) |
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 SAXParser _saxParser
public SkinConfigurationAction()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
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)
private Map<String,Object> _parameters2json(File skinDir) throws ProcessingException
ProcessingException
private List<SkinParameter> _getParameters(File skinDir) throws ProcessingException
ProcessingException
private Map<I18nizableText,Map<I18nizableText,List<SkinParameter>>> _getCategorizedParameters(File skinDir) throws ProcessingException
ProcessingException
private Map<String,Object> _parameters2JsonObject(List<SkinParameter> skinParameters) throws ProcessingException
ProcessingException
private Map<String,Object> _parameter2JsonObject(SkinParameter skinParameter) throws ProcessingException
ProcessingException
private Configuration _getConfigurationModel(File skinDir) throws ConfigurationException, SAXException, IOException
protected Map<I18nizableText,Map<I18nizableText,List<SkinParameter>>> _categorize(Collection<SkinParameter> parameters)
parameters
- a collection of skin parameters.