public class OccurrenceDownloadResource extends Object implements org.gbif.api.service.registry.OccurrenceDownloadService
Constructor and Description |
---|
OccurrenceDownloadResource(OccurrenceDownloadMapper occurrenceDownloadMapper,
DatasetOccurrenceDownloadMapper datasetOccurrenceDownloadMapper,
DoiGenerator doiGenerator,
org.gbif.api.service.common.UserService userService,
org.gbif.occurrence.query.TitleLookup titleLookup) |
Modifier and Type | Method and Description |
---|---|
void |
create(org.gbif.api.model.occurrence.Download occurrenceDownload) |
org.gbif.api.model.occurrence.Download |
get(String key) |
org.gbif.api.model.common.paging.PagingResponse<org.gbif.api.model.occurrence.Download> |
list(org.gbif.api.model.common.paging.Pageable page,
Set<org.gbif.api.model.occurrence.Download.Status> status)
Lists all the downloads.
|
org.gbif.api.model.common.paging.PagingResponse<org.gbif.api.model.occurrence.Download> |
listByUser(String user,
org.gbif.api.model.common.paging.Pageable page,
Set<org.gbif.api.model.occurrence.Download.Status> status) |
org.gbif.api.model.common.paging.PagingResponse<org.gbif.api.model.registry.DatasetOccurrenceDownloadUsage> |
listDatasetUsages(String downloadKey,
org.gbif.api.model.common.paging.Pageable page) |
void |
update(org.gbif.api.model.occurrence.Download download) |
@Inject public OccurrenceDownloadResource(OccurrenceDownloadMapper occurrenceDownloadMapper, DatasetOccurrenceDownloadMapper datasetOccurrenceDownloadMapper, DoiGenerator doiGenerator, org.gbif.api.service.common.UserService userService, org.gbif.occurrence.query.TitleLookup titleLookup)
@RolesAllowed(value="REGISTRY_ADMIN") public void create(@NotNull org.gbif.api.model.occurrence.Download occurrenceDownload)
create
in interface org.gbif.api.service.registry.OccurrenceDownloadService
@Nullable public org.gbif.api.model.occurrence.Download get(String key)
get
in interface org.gbif.api.service.registry.OccurrenceDownloadService
@RolesAllowed(value="REGISTRY_ADMIN") public org.gbif.api.model.common.paging.PagingResponse<org.gbif.api.model.occurrence.Download> list(@Context org.gbif.api.model.common.paging.Pageable page, @Nullable Set<org.gbif.api.model.occurrence.Download.Status> status)
list
in interface org.gbif.api.service.registry.OccurrenceDownloadService
public org.gbif.api.model.common.paging.PagingResponse<org.gbif.api.model.occurrence.Download> listByUser(String user, @Context org.gbif.api.model.common.paging.Pageable page, @Nullable Set<org.gbif.api.model.occurrence.Download.Status> status)
listByUser
in interface org.gbif.api.service.registry.OccurrenceDownloadService
public void update(org.gbif.api.model.occurrence.Download download)
update
in interface org.gbif.api.service.registry.OccurrenceDownloadService
public org.gbif.api.model.common.paging.PagingResponse<org.gbif.api.model.registry.DatasetOccurrenceDownloadUsage> listDatasetUsages(String downloadKey, @Context org.gbif.api.model.common.paging.Pageable page)
listDatasetUsages
in interface org.gbif.api.service.registry.OccurrenceDownloadService
Copyright © 2016 Global Biodiversity Information Facility. All rights reserved.