Class NamedResource

java.lang.Object
org.ametys.cms.data.Resource
org.ametys.cms.data.NamedResource
Direct Known Subclasses:
Binary

public class NamedResource extends Resource
Class representing a file
  • Field Details

  • Constructor Details

    • NamedResource

      public NamedResource()
      Default constructor
    • NamedResource

      public NamedResource(RepositoryData repositoryData)
      Constructor to use when reading the file from the repository
      Parameters:
      repositoryData - the repository data containing the file's data
  • Method Details

    • getFilename

      public String getFilename()
      Retrieves the binary's file name
      Returns:
      the binary's file name
    • setFilename

      public void setFilename(String filename)
      Sets the binary's file name
      Parameters:
      filename - the file name to set