Package org.gbif.api.model.occurrence
Class PredicateDownloadRequest
java.lang.Object
org.gbif.api.model.occurrence.DownloadRequest
org.gbif.api.model.occurrence.PredicateDownloadRequest
- All Implemented Interfaces:
Serializable
An occurrence download request whose filters are based on predicates ( see
Predicate
).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPredicateDownloadRequest
(Predicate predicate, String creator, Collection<String> notificationAddresses, Boolean sendNotification, DownloadFormat format, DownloadType type, String description, com.fasterxml.jackson.databind.JsonNode machineDescription, Set<Extension> verbatimExtensions) Full constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Valid Predicate
Requested verbatimExtensions for this download.int
hashCode()
void
setPredicate
(Predicate predicate) void
setVerbatimExtensions
(Set<Extension> verbatimExtensions) toString()
Methods inherited from class org.gbif.api.model.occurrence.DownloadRequest
getCreator, getDescription, getFileExtension, getFormat, getMachineDescription, getNotificationAddresses, getNotificationAddressesAsString, getSendNotification, getType, setCreator, setDescription, setFormat, setMachineDescription, setNotificationAddresses, setNotificationAddressesAsString, setSendNotification, setType
-
Constructor Details
-
PredicateDownloadRequest
public PredicateDownloadRequest() -
PredicateDownloadRequest
public PredicateDownloadRequest(Predicate predicate, @Nullable String creator, @Nullable Collection<String> notificationAddresses, @Nullable Boolean sendNotification, @Nullable DownloadFormat format, @Nullable DownloadType type, @Nullable String description, @Nullable com.fasterxml.jackson.databind.JsonNode machineDescription, @Nullable Set<Extension> verbatimExtensions) Full constructor. Used to create instances using JSON serialization.
-
-
Method Details
-
getPredicate
- Returns:
- the download filter
-
setPredicate
-
getVerbatimExtensions
Requested verbatimExtensions for this download. -
setVerbatimExtensions
-
equals
- Overrides:
equals
in classDownloadRequest
-
hashCode
- Overrides:
hashCode
in classDownloadRequest
-
toString
- Overrides:
toString
in classDownloadRequest
-