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 intaddOccurrenceMapping(@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.List<OccurrenceMapping>listOccurrenceMappings(@NotNull UUID targetEntityKey)List allOccurrenceMappingof a target entity.
-
-
-
Method Detail
-
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
void deleteOccurrenceMapping(@NotNull @NotNull UUID targetEntityKey, int occurrenceMappingKey)
Delete an existingOccurrenceMappingfrom a target entity by OccurrenceMapping key.- Parameters:
targetEntityKey- key of target entityoccurrenceMappingKey-OccurrenceMappingkey to delete
-
listOccurrenceMappings
List<OccurrenceMapping> listOccurrenceMappings(@NotNull @NotNull UUID targetEntityKey)
List allOccurrenceMappingof a target entity.- Parameters:
targetEntityKey- key of target entity- Returns:
- list of
OccurrenceMappingthat belong to the entity
-
-