Class HashCache.UriData

java.lang.Object
org.ametys.plugins.core.ui.minimize.HashCache.UriData
Enclosing class:
HashCache

public static class HashCache.UriData extends Object
The description of an URI
  • Constructor Details

    • UriData

      public UriData(String uri, boolean firstLevel)
      Default constructor for a file data
      Parameters:
      uri - The uri locating the file
      firstLevel - False if the file data is an import from another file data
  • Method Details

    • setLastModified

      public void setLastModified(Long lastModified)
      Set the last modified value
      Parameters:
      lastModified - the lastModified to set
    • setMedia

      public void setMedia(String media)
      set the medias value
      Parameters:
      media - the medias to set
    • getUri

      public String getUri()
      Get the file uri
      Returns:
      the uri
    • getLastModified

      Get the file last modified date
      Returns:
      the lastModified
    • getMedia

      public String getMedia()
      Get the file medias
      Returns:
      the medias
    • isFirstLevel

      public boolean isFirstLevel()
      Check if the file is a first level file
      Returns:
      True if the file is first level
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object