Package org.gbif.api.model.occurrence
Class DownloadRequest
java.lang.Object
org.gbif.api.model.occurrence.DownloadRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PredicateDownloadRequest,SqlDownloadRequest
Represents a request to download occurrence records.
This is the base class for specific type of downloads: predicate based downloads and SQL downloads.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DownloadRequest(String creator, Collection<String> notificationAddresses, Boolean sendNotification, DownloadFormat format, DownloadType downloadType, String description, com.fasterxml.jackson.databind.JsonNode machineDescription, String checklistKey) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.fasterxml.jackson.databind.JsonNodeReturns the notification addresses as single string.getType()inthashCode()voidsetChecklistKey(String checklistKey) voidsetCreator(String creator) voidsetDescription(String description) voidsetFormat(DownloadFormat format) This parameter determines the output format of the requested download.voidsetMachineDescription(com.fasterxml.jackson.databind.JsonNode machineDescription) voidsetNotificationAddresses(Set<String> notificationAddresses) voidsetNotificationAddressesAsString(String notificationAddressesAsString) Sets the notificationAddresses using a single String value that is split by ','.voidsetSendNotification(boolean sendNotification) This parameter determines if the requested download must be notified to the created once it's ready.voidsetType(DownloadType type) Download type: Occurrence or Event.toString()
-
Constructor Details
-
DownloadRequest
public DownloadRequest()Default constructor. -
DownloadRequest
public DownloadRequest(String creator, Collection<String> notificationAddresses, Boolean sendNotification, DownloadFormat format, DownloadType downloadType, String description, com.fasterxml.jackson.databind.JsonNode machineDescription, String checklistKey)
-
-
Method Details
-
getCreator
- Returns:
- the user account that initiated the download
-
setCreator
-
getNotificationAddresses
- Returns:
- set of email addresses for notifications
-
setNotificationAddresses
-
getNotificationAddressesAsString
Returns the notification addresses as single string. The emails are separated by ','. -
setNotificationAddressesAsString
Sets the notificationAddresses using a single String value that is split by ','. -
getSendNotification
-
setSendNotification
This parameter determines if the requested download must be notified to the created once it's ready. -
getFormat
-
setFormat
This parameter determines the output format of the requested download. -
getType
-
setType
Download type: Occurrence or Event. -
getDescription
-
setDescription
-
getMachineDescription
-
setMachineDescription
-
getFileExtension
-
getChecklistKey
-
setChecklistKey
-
equals
-
hashCode
-
toString
-