Class DownloadHistory

java.lang.Object
de.dlr.proseo.model.DownloadHistory

@Embeddable public class DownloadHistory extends Object
History of product downloads; while originially bound to a ProductFile, the entry persists even after deletion of the ProductFile to give a full history of the Product downloads
Author:
Dr. Thomas Bassler
  • Constructor Details

    • DownloadHistory

      public DownloadHistory()
  • Method Details

    • getProductFile

      public ProductFile getProductFile()
      Gets the product file, which was downloaded
      Returns:
      the download product file
    • setProductFile

      public void setProductFile(ProductFile productFile)
      Sets the product file, which was downloaded
      Parameters:
      productFile - the download product file to set
    • getUsername

      public String getUsername()
      Gets the user initiating the download
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Sets the user initiating the download
      Parameters:
      username - the username to set
    • getProductFileName

      public String getProductFileName()
      Gets the file name of the download product
      Returns:
      the product file name
    • setProductFileName

      public void setProductFileName(String productFileName)
      Sets the file name of the download product
      Parameters:
      productFileName - the product file name to set
    • getProductFileSize

      public Long getProductFileSize()
      Gets the download product file size in bytes
      Returns:
      the product file size
    • setProductFileSize

      public void setProductFileSize(Long productFileSize)
      Sets the download product file size in bytes
      Parameters:
      productFileSize - the product file size to set
    • getDateTime

      public Instant getDateTime()
      Gets the timestamp of the download
      Returns:
      the download timestamp
    • setDateTime

      public void setDateTime(Instant dateTime)
      Sets the timestamp of the download
      Parameters:
      dateTime - the timestamp to set
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object