Package org.ametys.web.skin
Class SkinConfigurationHelper
- java.lang.Object
-
- org.ametys.web.skin.SkinConfigurationHelper
-
- All Implemented Interfaces:
Component,Serviceable
public class SkinConfigurationHelper extends Object implements Component, Serviceable
Helper to read a skin configuration file that will handle inheritance
-
-
Constructor Summary
Constructors Constructor Description SkinConfigurationHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationgetInheritanceMergedConfiguration(Skin skin, String relativeConfigurationFileUri, InputStream mergeXSLIS)Get the configuration representing a file in a skin taking in account the inheritance processvoidservice(ServiceManager manager)
-
-
-
Constructor Detail
-
SkinConfigurationHelper
public SkinConfigurationHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getInheritanceMergedConfiguration
public Configuration getInheritanceMergedConfiguration(Skin skin, String relativeConfigurationFileUri, InputStream mergeXSLIS) throws IOException, ConfigurationException, SAXException
Get the configuration representing a file in a skin taking in account the inheritance process- Parameters:
skin- The skin to considerrelativeConfigurationFileUri- The configuration file uri relative to the skin. For example : "conf/tags.xml"mergeXSLIS- The XSL file used to merge two configuration file- Returns:
- The configuration or null if the configuration file does not exists
- Throws:
IOException- If an error occurred while opening the configuration fileConfigurationException- If the configuration file contains errorsSAXException- If a XML parsing error occurred in the configuration file
-
-