Package org.gbif.api.service.collections
Interface OccurrenceMappingService
- All Known Subinterfaces:
CollectionEntityService<T>
,CollectionService
,InstitutionService
public interface OccurrenceMappingService
Service that provides a set of operations on
OccurrenceMapping
.-
Method Summary
Modifier and TypeMethodDescriptionint
addOccurrenceMapping
(@NotNull UUID targetEntityKey, @NotNull @Valid OccurrenceMapping occurrenceMapping) Add a newOccurrenceMapping
to a target entity.void
deleteOccurrenceMapping
(@NotNull UUID targetEntityKey, int occurrenceMappingKey) Delete an existingOccurrenceMapping
from a target entity by OccurrenceMapping key.listOccurrenceMappings
(@NotNull UUID targetEntityKey) List allOccurrenceMapping
of a target entity.
-
Method Details
-
addOccurrenceMapping
int addOccurrenceMapping(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid OccurrenceMapping occurrenceMapping) Add a newOccurrenceMapping
to a target entity.- Parameters:
targetEntityKey
- key of target entityoccurrenceMapping
-OccurrenceMapping
to add- Returns:
- key of OccurrenceMapping added
-
deleteOccurrenceMapping
Delete an existingOccurrenceMapping
from a target entity by OccurrenceMapping key.- Parameters:
targetEntityKey
- key of target entityoccurrenceMappingKey
-OccurrenceMapping
key to delete
-
listOccurrenceMappings
List allOccurrenceMapping
of a target entity.- Parameters:
targetEntityKey
- key of target entity- Returns:
- list of
OccurrenceMapping
that belong to the entity
-