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
public class PredicateDownloadRequest extends DownloadRequest
An occurrence download request whose filters are based on predicates ( seePredicate
).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PredicateDownloadRequest()
PredicateDownloadRequest(Predicate predicate, String creator, Collection<String> notificationAddresses, Boolean sendNotification, DownloadFormat format, DownloadType type, Set<Extension> verbatimExtensions)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@Valid Predicate
getPredicate()
Set<Extension>
getVerbatimExtensions()
Requested verbatimExtensions for this download.int
hashCode()
void
setPredicate(Predicate predicate)
void
setVerbatimExtensions(Set<Extension> verbatimExtensions)
String
toString()
-
Methods inherited from class org.gbif.api.model.occurrence.DownloadRequest
getCreator, getFileExtension, getFormat, getNotificationAddresses, getNotificationAddressesAsString, getSendNotification, getType, setCreator, setFormat, setNotificationAddresses, setNotificationAddressesAsString, setSendNotification, setType
-
-
-
-
Constructor Detail
-
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 Set<Extension> verbatimExtensions)
Full constructor. Used to create instances using JSON serialization.
-
-
Method Detail
-
getPredicate
@Nullable @Valid public @Valid Predicate getPredicate()
- Returns:
- the download filter
-
setPredicate
public void setPredicate(Predicate predicate)
-
getVerbatimExtensions
@Nullable public Set<Extension> getVerbatimExtensions()
Requested verbatimExtensions for this download.
-
setVerbatimExtensions
public void setVerbatimExtensions(Set<Extension> verbatimExtensions)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDownloadRequest
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDownloadRequest
-
toString
public String toString()
- Overrides:
toString
in classDownloadRequest
-
-