Package org.gbif.api.service.registry
Interface IdentifierService
- All Known Subinterfaces:
CollectionEntityService<T>,CollectionService,DatasetService,InstallationService,InstitutionService,NetworkEntityService<T>,NetworkService,NodeService,OrganizationService,PrimaryIdentifierService
public interface IdentifierService
Service provides a set of operations on
Identifier.-
Method Summary
Modifier and TypeMethodDescriptionintaddIdentifier(@NotNull UUID targetEntityKey, @NotNull @Valid Identifier identifier) Add a new Identifier to a target entity.voiddeleteIdentifier(@NotNull UUID targetEntityKey, int identifierKey) Delete an existing Identifier from a target entity by identifier key.listIdentifiers(@NotNull UUID targetEntityKey) List all identifiers of a target entity.
-
Method Details
-
addIdentifier
int addIdentifier(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid Identifier identifier) Add a new Identifier to a target entity.- Parameters:
targetEntityKey- key of target entityidentifier- Identifier to add- Returns:
- key of Identifier added
-
deleteIdentifier
Delete an existing Identifier from a target entity by identifier key.- Parameters:
targetEntityKey- key of target entityidentifierKey- Identifier key to delete
-
listIdentifiers
List all identifiers of a target entity.- Parameters:
targetEntityKey- key of target entity- Returns:
- list of identifiers that belong to the entity
-