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 onOccurrenceMapping
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
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.List<OccurrenceMapping>
listOccurrenceMappings(@NotNull UUID targetEntityKey)
List allOccurrenceMapping
of a target entity.
-
-
-
Method Detail
-
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
void deleteOccurrenceMapping(@NotNull @NotNull UUID targetEntityKey, int occurrenceMappingKey)
Delete an existingOccurrenceMapping
from a target entity by OccurrenceMapping key.- Parameters:
targetEntityKey
- key of target entityoccurrenceMappingKey
-OccurrenceMapping
key to delete
-
listOccurrenceMappings
List<OccurrenceMapping> listOccurrenceMappings(@NotNull @NotNull UUID targetEntityKey)
List allOccurrenceMapping
of a target entity.- Parameters:
targetEntityKey
- key of target entity- Returns:
- list of
OccurrenceMapping
that belong to the entity
-
-