public interface DatasetService extends NetworkEntityService<Dataset>
Modifier and Type | Method and Description |
---|---|
void |
deleteMetadata(int metadataKey)
Removes a metadata entry and its document by its key.
|
Metadata |
getMetadata(int metadataKey)
Get a metadata description by its key.
|
InputStream |
getMetadataDocument(int metadataKey)
Gets the actual metadata document content by its key.
|
InputStream |
getMetadataDocument(UUID datasetKey)
Retrieves a GBIF generated EML document overlaying GBIF information with any existing metadata
document data.
|
Metadata |
insertMetadata(UUID datasetKey,
InputStream document)
Inserts a metadata document, replacing any previously existing document of the same type.
|
PagingResponse<Dataset> |
list(DatasetRequestSearchParams searchParams)
Provides paging service to list datasets that can be filtered by multiple parameters.
|
PagingResponse<Dataset> |
listByCountry(Country country,
DatasetType type,
Pageable page)
Provides paging service to list datasets published, i.e.
|
PagingResponse<Dataset> |
listByDOI(String doi,
Pageable page)
Get a Dataset list from a DOI.
|
PagingResponse<Dataset> |
listByType(DatasetType type,
Pageable page)
Provides paging service to list datasets published filtered by a particular dataset type.
|
PagingResponse<Dataset> |
listConstituents(Pageable page)
Pages through all constituent datasets, i.e.
|
PagingResponse<Dataset> |
listConstituents(UUID datasetKey,
Pageable page)
Pages through constituents of a dataset, i.e.
|
PagingResponse<Dataset> |
listDatasetsWithNoEndpoint(Pageable page)
Provides access to internal (e.g.
|
PagingResponse<Dataset> |
listDeleted(DatasetRequestSearchParams searchParams)
Provides access to deleted datasets.
|
PagingResponse<Dataset> |
listDuplicates(Pageable page)
Provides access to datasets that are marked as a duplicate of another.
|
List<Grid> |
listGrids(UUID datasetKey)
Get gridded datasets processing info
|
List<Metadata> |
listMetadata(UUID datasetKey,
MetadataType type)
Lists all metadata descriptions available for a dataset and optionally filters them by document
type.
|
List<Network> |
listNetworks(UUID datasetKey)
Lists all networks that this dataset is a constituent of.
|
create, delete, get, getTitles, list, listByIdentifier, listByIdentifier, listByMachineTag, search, update
addMachineTag, addMachineTag, addMachineTag, deleteMachineTag, deleteMachineTags, deleteMachineTags, deleteMachineTags, deleteMachineTags, listMachineTags
addTag, addTag, deleteTag, listTags
addComment, deleteComment, listComments
addIdentifier, deleteIdentifier, listIdentifiers
addEndpoint, deleteEndpoint, listEndpoints
addContact, deleteContact, listContacts, updateContact
PagingResponse<Dataset> listConstituents(UUID datasetKey, @Nullable Pageable page)
datasetKey
- the parent datasets keyPagingResponse<Dataset> listConstituents(@Nullable Pageable page)
PagingResponse<Dataset> listByCountry(Country country, @Nullable DatasetType type, @Nullable Pageable page)
country
- the hosting countrytype
- the optional dataset type filterPagingResponse<Dataset> listByType(DatasetType type, @Nullable Pageable page)
type
- the dataset type filterList<Metadata> listMetadata(UUID datasetKey, @Nullable MetadataType type)
List<Network> listNetworks(UUID datasetKey)
datasetKey
- the dataset in questionMetadata getMetadata(int metadataKey)
void deleteMetadata(int metadataKey)
Metadata insertMetadata(UUID datasetKey, InputStream document)
datasetKey
- the dataset in questiondocument
- metadata document to insertIllegalArgumentException
- if document is not parsableInputStream getMetadataDocument(UUID datasetKey)
InputStream getMetadataDocument(int metadataKey)
PagingResponse<Dataset> listDeleted(DatasetRequestSearchParams searchParams)
PagingResponse<Dataset> listDuplicates(@Nullable Pageable page)
PagingResponse<Dataset> listDatasetsWithNoEndpoint(@Nullable Pageable page)
PagingResponse<Dataset> listByDOI(String doi, @Nullable Pageable page)
List<Grid> listGrids(UUID datasetKey)
datasetKey
- the dataset in questionPagingResponse<Dataset> list(DatasetRequestSearchParams searchParams)
searchParams
- DatasetRequestSearchParams
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.