Package org.ametys.web.color
Class AbstractSkinColorsComponent.ColorFileReloader
java.lang.Object
org.ametys.web.color.AbstractSkinColorsComponent.ColorFileReloader
- All Implemented Interfaces:
FileReloader
- Enclosing class:
- AbstractSkinColorsComponent
public static class AbstractSkinColorsComponent.ColorFileReloader
extends Object
implements FileReloader
Class representing a color file reloader
-
Constructor Summary
ConstructorDescriptionColorFileReloader
(String skinId, String filePath, AbstractSkinColorsComponent component) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the abstract colors componentGet the color file pathGet an unique ID for this File ReloaderGet the skinIdvoid
updateFile
(String sourceUrl, Source source, InputStream is) Update the file, the sourceUrl is only there if you manage multiple files, the Configuration object is already present to read it
-
Constructor Details
-
ColorFileReloader
Constructor- Parameters:
skinId
- the skin idfilePath
- the file pathcomponent
- the abstract colors component
-
-
Method Details
-
getSkinId
Get the skinId- Returns:
- the skinId
-
getFilePath
Get the color file path- Returns:
- the color file path
-
getComponent
Get the abstract colors component- Returns:
- the abstract colors component
-
updateFile
Description copied from interface:FileReloader
Update the file, the sourceUrl is only there if you manage multiple files, the Configuration object is already present to read it- Specified by:
updateFile
in interfaceFileReloader
- Parameters:
sourceUrl
- the url of the file.source
- the source to read, can be null if no file was readis
- the input stream to read, can be null if no file was read- Throws:
Exception
- something went wrong while reading the inputstream
-
getId
Description copied from interface:FileReloader
Get an unique ID for this File Reloader- Specified by:
getId
in interfaceFileReloader
- Parameters:
sourceUrl
- this is passed as an argument if your class read multiple files. If it reads only one file, the full class name can be a good enough ID- Returns:
- an unique ID
-