Package org.ametys.plugins.linkdirectory
Class LinkDirectoryColorsComponent.LinkDirectoryReloader
- java.lang.Object
-
- org.ametys.plugins.linkdirectory.LinkDirectoryColorsComponent.LinkDirectoryReloader
-
- All Implemented Interfaces:
FileReloader
- Enclosing class:
- LinkDirectoryColorsComponent
public static class LinkDirectoryColorsComponent.LinkDirectoryReloader extends Object implements FileReloader
Class representing a link directory reloader
-
-
Field Summary
Fields Modifier and Type Field Description private LinkDirectoryColorsComponent
_component
private String
_skin
-
Constructor Summary
Constructors Constructor Description LinkDirectoryReloader(String skin, LinkDirectoryColorsComponent component)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkDirectoryColorsComponent
getComponent()
Get the link directory colors componentString
getId(String sourceUrl)
Get an unique ID for this File ReloaderString
getSkin()
Get the skinvoid
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
-
-
-
Field Detail
-
_component
private LinkDirectoryColorsComponent _component
-
-
Constructor Detail
-
LinkDirectoryReloader
public LinkDirectoryReloader(String skin, LinkDirectoryColorsComponent component)
Constructor- Parameters:
skin
- the skincomponent
- the link directory colors component
-
-
Method Detail
-
getComponent
public LinkDirectoryColorsComponent getComponent()
Get the link directory colors component- Returns:
- the link directory colors component
-
updateFile
public void updateFile(String sourceUrl, Source source, InputStream is) throws Exception
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
public String getId(String sourceUrl)
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
-
-