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 TypeMethodDescriptionintaddOccurrenceMapping(@NotNull UUID targetEntityKey, @NotNull @Valid OccurrenceMapping occurrenceMapping) Add a newOccurrenceMappingto a target entity.voiddeleteOccurrenceMapping(@NotNull UUID targetEntityKey, int occurrenceMappingKey) Delete an existingOccurrenceMappingfrom a target entity by OccurrenceMapping key.listOccurrenceMappings(@NotNull UUID targetEntityKey) List allOccurrenceMappingof a target entity.
-
Method Details
-
addOccurrenceMapping
int addOccurrenceMapping(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid OccurrenceMapping occurrenceMapping) Add a newOccurrenceMappingto a target entity.- Parameters:
targetEntityKey- key of target entityoccurrenceMapping-OccurrenceMappingto add- Returns:
- key of OccurrenceMapping added
-
deleteOccurrenceMapping
Delete an existingOccurrenceMappingfrom a target entity by OccurrenceMapping key.- Parameters:
targetEntityKey- key of target entityoccurrenceMappingKey-OccurrenceMappingkey to delete
-
listOccurrenceMappings
List allOccurrenceMappingof a target entity.- Parameters:
targetEntityKey- key of target entity- Returns:
- list of
OccurrenceMappingthat belong to the entity
-