public class Download extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Download.Status
Reflects the possibles statuses of a download during its execution.
|
Constructor and Description |
---|
Download() |
Modifier and Type | Method and Description |
---|---|
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date |
getCreated() |
DOI |
getDoi()
Occurrence download Digital Object Identifier.
|
String |
getDownloadLink() |
Date |
getEraseAfter() |
Date |
getErasureNotification() |
@NotNull String |
getKey() |
License |
getLicense()
Get the license assigned to this occurrence download.
|
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date |
getModified() |
Long |
getNumberDatasets()
Number of datasets in the download file.
|
Long |
getNumberOrganizations() |
Long |
getNumberPublishingCountries() |
@NotNull DownloadRequest |
getRequest()
Request that originated the download.
|
long |
getSize()
Size in bytes of the produced file.
|
String |
getSource()
Source of the download to determine how the download was originated.
|
@NotNull Download.Status |
getStatus() |
long |
getTotalRecords()
Number of occurrence records in the download file.
|
boolean |
isAvailable() |
void |
setCreated(Date created) |
void |
setDoi(DOI doi) |
void |
setDownloadLink(String downloadLink) |
void |
setEraseAfter(Date eraseAfter) |
void |
setErasureNotification(Date erasureNotification) |
void |
setKey(String key) |
void |
setLicense(License license) |
void |
setModified(Date modified) |
void |
setNumberDatasets(Long numberDatasets) |
void |
setNumberOrganizations(Long numberOrganizations) |
void |
setNumberPublishingCountries(Long numberPublishingCountries) |
void |
setRequest(DownloadRequest request) |
void |
setSize(long size) |
void |
setSource(String source) |
void |
setStatus(Download.Status status) |
void |
setTotalRecords(long totalRecords) |
public Download()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Nullable public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getCreated()
@Nullable public String getDownloadLink()
@NotNull public @NotNull String getKey()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) @Nullable public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getModified()
@Nullable public Date getEraseAfter()
@Nullable public Date getErasureNotification()
@NotNull public @NotNull DownloadRequest getRequest()
@NotNull public @NotNull Download.Status getStatus()
public boolean isAvailable()
public long getSize()
public long getTotalRecords()
@Nullable public Long getNumberDatasets()
public String getSource()
public License getLicense()
public void setCreated(Date created)
public void setDownloadLink(String downloadLink)
public void setLicense(License license)
public void setModified(Date modified)
public void setEraseAfter(Date eraseAfter)
public void setErasureNotification(Date erasureNotification)
public void setRequest(DownloadRequest request)
public void setStatus(Download.Status status)
public void setSize(long size)
public void setTotalRecords(long totalRecords)
public void setNumberDatasets(Long numberDatasets)
@Nullable public Long getNumberOrganizations()
public void setNumberOrganizations(Long numberOrganizations)
@Nullable public Long getNumberPublishingCountries()
public void setNumberPublishingCountries(Long numberPublishingCountries)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.