Class VirtualPageConfiguration.VirtualPageConfigurationFileReloader
java.lang.Object
org.ametys.web.repository.page.virtual.VirtualPageConfiguration.VirtualPageConfigurationFileReloader
- All Implemented Interfaces:
- FileReloader
- Enclosing class:
- VirtualPageConfiguration
public static class VirtualPageConfiguration.VirtualPageConfigurationFileReloader
extends Object
implements FileReloader
Class representing a virtual page conf file reloader
- 
Constructor SummaryConstructorsConstructorDescriptionVirtualPageConfigurationFileReloader(String skinId, String filePath, VirtualPageConfiguration component) Constructor
- 
Method SummaryModifier and TypeMethodDescriptionGet the parent componentGet the file pathGet an unique ID for this File ReloaderGet the skinIdvoidupdateFile(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- 
VirtualPageConfigurationFileReloaderpublic VirtualPageConfigurationFileReloader(String skinId, String filePath, VirtualPageConfiguration component) Constructor- Parameters:
- skinId- the skin id
- filePath- the file path
- component- the abstract parent component
 
 
- 
- 
Method Details- 
getSkinIdGet the skinId- Returns:
- the skinId
 
- 
getFilePathGet the file path- Returns:
- the file path
 
- 
getComponentGet the parent component- Returns:
- the parent component
 
- 
updateFileDescription copied from interface:FileReloaderUpdate the file, the sourceUrl is only there if you manage multiple files, the Configuration object is already present to read it- Specified by:
- updateFilein interface- FileReloader
- Parameters:
- sourceUrl- the url of the file.
- source- the source to read, can be null if no file was read
- is- the input stream to read, can be null if no file was read
- Throws:
- Exception- something went wrong while reading the inputstream
 
- 
getIdDescription copied from interface:FileReloaderGet an unique ID for this File Reloader- Specified by:
- getIdin interface- FileReloader
- 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
 
 
-