Package de.dlr.proseo.model
Class DownloadHistory
java.lang.Object
de.dlr.proseo.model.DownloadHistory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the timestamp of the downloadGets the product file, which was downloadedGets the file name of the download productGets the download product file size in bytesGets the user initiating the downloadinthashCode()voidsetDateTime(Instant dateTime) Sets the timestamp of the downloadvoidsetProductFile(ProductFile productFile) Sets the product file, which was downloadedvoidsetProductFileName(String productFileName) Sets the file name of the download productvoidsetProductFileSize(Long productFileSize) Sets the download product file size in bytesvoidsetUsername(String username) Sets the user initiating the downloadtoString()
-
Constructor Details
-
DownloadHistory
public DownloadHistory()
-
-
Method Details
-
getProductFile
Gets the product file, which was downloaded- Returns:
- the download product file
-
setProductFile
Sets the product file, which was downloaded- Parameters:
productFile- the download product file to set
-
getUsername
Gets the user initiating the download- Returns:
- the username
-
setUsername
Sets the user initiating the download- Parameters:
username- the username to set
-
getProductFileName
Gets the file name of the download product- Returns:
- the product file name
-
setProductFileName
Sets the file name of the download product- Parameters:
productFileName- the product file name to set
-
getProductFileSize
Gets the download product file size in bytes- Returns:
- the product file size
-
setProductFileSize
Sets the download product file size in bytes- Parameters:
productFileSize- the product file size to set
-
getDateTime
Gets the timestamp of the download- Returns:
- the download timestamp
-
setDateTime
Sets the timestamp of the download- Parameters:
dateTime- the timestamp to set
-
hashCode
public int hashCode() -
equals
-
toString
-