Package org.ametys.web.skin
Class SkinConfigurationHelper
java.lang.Object
org.ametys.web.skin.SkinConfigurationHelper
- All Implemented Interfaces:
Component
,Serviceable
Helper to read a skin configuration file that will handle inheritance
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInheritanceMergedConfiguration
(Skin skin, String relativeConfigurationFileUri, InputStream mergeXSLIS) Get the configuration representing a file in a skin taking in account the inheritance processgetInheritanceMergedConfiguration
(Skin skin, String relativeConfigurationFileUri, String relativeDefaultConfigurationFileUri, InputStream mergeXSLIS) Get the configuration representing a file in a skin taking in account the inheritance processvoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
The avalon role
-
-
Constructor Details
-
SkinConfigurationHelper
public SkinConfigurationHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getInheritanceMergedConfiguration
public Configuration getInheritanceMergedConfiguration(Skin skin, String relativeConfigurationFileUri, String relativeDefaultConfigurationFileUri, 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"relativeDefaultConfigurationFileUri
- A configuration file uri relative to the skin with default value.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
-
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
-