Class AbstractSkinColorsComponent.ColorFileReloader

java.lang.Object
org.ametys.web.color.AbstractSkinColorsComponent.ColorFileReloader
All Implemented Interfaces:
FileReloader
Enclosing class:
AbstractSkinColorsComponent

Class representing a color file reloader
  • Constructor Details

  • Method Details

    • getSkinId

      public String getSkinId()
      Get the skinId
      Returns:
      the skinId
    • getFilePath

      public String getFilePath()
      Get the color file path
      Returns:
      the color file path
    • getComponent

      Get the abstract colors component
      Returns:
      the abstract 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 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
    • getId

      public String getId(String sourceUrl)
      Description copied from interface: FileReloader
      Get an unique ID for this File Reloader
      Specified by:
      getId in 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