public interface NameUsageService
NameUsage
Modifier and Type | Method and Description |
---|---|
NameUsage |
get(int taxonKey,
Locale locale)
Attempt to find a name usage matching the passed key.
|
NameUsageMetrics |
getMetrics(int taxonKey)
Gets the metrics for a given name usage.
|
ParsedName |
getParsedName(int taxonKey)
Gets the parsed name representation of a given name usage.
|
VerbatimNameUsage |
getVerbatim(int taxonKey)
Returns the verbatim data for the usage or null if its a generated usage having no verbatim data.
|
PagingResponse<NameUsage> |
list(Locale locale,
UUID datasetKey,
String sourceId,
Pageable page)
Page through all usages across all or one checklists.
|
PagingResponse<NameUsage> |
listByCanonicalName(Locale locale,
String canonicalName,
Pageable page,
UUID... datasetKey)
Page through all usages with a given canonical name across all or some checklists.
|
PagingResponse<NameUsage> |
listChildren(int parentKey,
Locale locale,
Pageable page)
Lists all accepted child name usages for a given parent.
|
List<NameUsage> |
listCombinations(int basionymKey,
Locale locale)
Lists all combinations or names at different rank that are based on this basionym, i.e.
|
List<NameUsage> |
listParents(int taxonKey,
Locale locale)
Lists the complete parental hierarchy of a name usage regardless of their ranks.
|
PagingResponse<NameUsage> |
listRelated(int taxonKey,
Locale locale,
Pageable page,
UUID... datasetKey)
Lists all related checklist usages for a given nub usage.
|
PagingResponse<NameUsage> |
listRoot(UUID datasetKey,
Locale locale,
Pageable page)
Lists all root usages for a given checklist, i.e.
|
PagingResponse<NameUsage> |
listSynonyms(int taxonKey,
Locale locale,
Pageable page)
Lists all synonym name usages for a given accepted name usage.
|
@Nullable NameUsage get(int taxonKey, @Nullable Locale locale)
taxonKey
- that identifies a name usagelocale
- the locale's language determines the vernacular name to use for a usage.
Use null to not load any common name@Nullable ParsedName getParsedName(int taxonKey)
taxonKey
- that identifies a name usage@Nullable NameUsageMetrics getMetrics(int taxonKey)
taxonKey
- that identifies a name usage@Nullable VerbatimNameUsage getVerbatim(int taxonKey)
PagingResponse<NameUsage> list(Locale locale, @Nullable UUID datasetKey, @Nullable String sourceId, @Nullable Pageable page)
datasetKey
- the optional checklist key to limit paging to.sourceId
- the optional checklist key to limit paging to.locale
- the locale's language determines the vernacular name to use for a usage
Use null to not load any common namepage
- paging parameters or null for first page with default sizePagingResponse<NameUsage> listByCanonicalName(Locale locale, String canonicalName, @Nullable Pageable page, @Nullable UUID... datasetKey)
canonicalName
- the canonical name of a name usage.locale
- the locale's language determines the vernacular name to use for a usage
Use null to not load any common namedatasetKey
- the optional list of checklist keys to limit paging to.page
- paging parameters or null for first page with default sizePagingResponse<NameUsage> listChildren(int parentKey, Locale locale, @Nullable Pageable page)
parentKey
- that identifies the parent name usagelocale
- the locale's language determines the vernacular name to use for a usage
Use null to not load any common namepage
- paging parameters or null for first page with default sizeList<NameUsage> listParents(int taxonKey, Locale locale)
taxonKey
- that identifies the name usage to show parents oflocale
- the locale's language determines the vernacular name to use for a usage
Use null to not load any common namePagingResponse<NameUsage> listRelated(int taxonKey, Locale locale, @Nullable Pageable page, @Nullable UUID... datasetKey)
taxonKey
- that identifies a nub usagelocale
- the locale's language determines the vernacular name to use for a usage
Use null to not load any common namepage
- paging parameters or null for first page with default sizedatasetKey
- Optional list of checklist keys to restrict related usages toPagingResponse<NameUsage> listRoot(UUID datasetKey, Locale locale, @Nullable Pageable page)
datasetKey
- the registered dataset key for the checklist in questionlocale
- the locale's language determines the vernacular name to use for a usage
Use null to not load any common namepage
- paging parameters or null for first page with default sizeConstants.NUB_DATASET_KEY
PagingResponse<NameUsage> listSynonyms(int taxonKey, Locale locale, @Nullable Pageable page)
taxonKey
- that identifies any name usagelocale
- the locale's language determines the vernacular name to use for a usage
Use null to not load any common namepage
- paging parameters or null for first page with default sizeList<NameUsage> listCombinations(int basionymKey, Locale locale)
basionymKey
- the name usage key of the basionymlocale
- the locale's language determines the vernacular name to use for a usage
Use null to not load any common nameCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.