Package org.gbif.api.service.registry
Interface PrimaryIdentifierService
- All Superinterfaces:
IdentifierService
- All Known Subinterfaces:
CollectionEntityService<T>
,CollectionService
,InstitutionService
-
Method Summary
Modifier and TypeMethodDescriptionint
updateIdentifier
(UUID targetEntityKey, int identifierKey, boolean isPrimary) Updates the specified Identifier for a target entity, setting its primary status.Methods inherited from interface org.gbif.api.service.registry.IdentifierService
addIdentifier, deleteIdentifier, listIdentifiers
-
Method Details
-
updateIdentifier
Updates the specified Identifier for a target entity, setting its primary status.- Parameters:
targetEntityKey
- the key of the target entity to which the identifier belongsidentifierKey
- the key of the identifier to be updatedisPrimary
- a boolean indicating whether the identifier should be set as primary (true) or non-primary (false)- Returns:
- the key of the updated Identifier
-