public interface OccurrenceService
| Modifier and Type | Method and Description |
|---|---|
Occurrence |
get(Long key)
Attempt to find an occurrence matching the passed key.
|
Occurrence |
get(UUID datasetKey,
String occurrenceId)
Attempt to find an occurrence matching the passed dataset key and occurrenceId.
|
String |
getFragment(long key)
Returns the "fragment" of raw data (either xml response fragment or json dwca fragment) for the passed in key.
|
VerbatimOccurrence |
getVerbatim(Long key)
Attempt to find the verbatim values for an occurrence matching the passed key.
|
@Nullable Occurrence get(Long key)
key - that identifies an occurrence (Long rather than long for use in methods/classes using generic types)ServiceUnavailableException - if the underlying data connection fails@Nullable Occurrence get(UUID datasetKey, String occurrenceId)
datasetKey - datasey key that should contain the occurrenceIDoccurrenceId - that identifies an occurrence in a datasetServiceUnavailableException - if the underlying data connection fails@Nullable VerbatimOccurrence getVerbatim(Long key)
key - that identifies the occurrenceServiceUnavailableException - if the underlying data connection fails@Nullable String getFragment(long key)
key - that identifies an occurrenceServiceUnavailableException - if the underlying data connection failsCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.