Package org.gbif.api.service.registry
Interface PrimaryIdentifierService
-
- All Superinterfaces:
IdentifierService
- All Known Subinterfaces:
CollectionEntityService<T>
,CollectionService
,InstitutionService
public interface PrimaryIdentifierService extends IdentifierService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
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 Detail
-
updateIdentifier
int updateIdentifier(UUID targetEntityKey, int identifierKey, boolean isPrimary)
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
-
-