public interface ContactService
Modifier and Type | Method and Description |
---|---|
int |
addContactPerson(@NotNull UUID entityKey,
@NotNull @Valid Contact contact)
Adds a
Contact contact to an entity. |
List<Contact> |
listContactPersons(@NotNull UUID entityKey)
Lists all the contacts of an entity.
|
void |
removeContactPerson(@NotNull UUID entityKey,
@NotNull int contactKey)
Removes a
Contact contact from an entity. |
void |
replaceContactPersons(@NotNull UUID entityKey,
List<Contact> newContactPersons)
Removes all the contacts from an entity.
|
void |
updateContactPerson(@NotNull UUID entityKey,
@NotNull @Valid Contact contact)
Updates a
Contact contact in an entity. |
List<Contact> listContactPersons(@NotNull @NotNull UUID entityKey)
entityKey
- of the entityContact
int addContactPerson(@NotNull @NotNull UUID entityKey, @NotNull @Valid @NotNull @Valid Contact contact)
Contact
contact to an entity.entityKey
- key of the entity where the contact will be added to.contact
- key of the contact to add.void updateContactPerson(@NotNull @NotNull UUID entityKey, @NotNull @Valid @NotNull @Valid Contact contact)
Contact
contact in an entity.entityKey
- key of the entity where the contact will be updated.contact
- updated contact.void removeContactPerson(@NotNull @NotNull UUID entityKey, @NotNull @NotNull int contactKey)
Contact
contact from an entity.entityKey
- key of the entity where the contact will be removed from.contactKey
- key of the contact to remove.void replaceContactPersons(@NotNull @NotNull UUID entityKey, List<Contact> newContactPersons)
entityKey
- key of the entity where the contact will be removed from.newContactPersons
- contact persons that will replace the existing ones.Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.