public interface ContactService
Contact.| Modifier and Type | Method and Description |
|---|---|
int |
addContact(@NotNull UUID targetEntityKey,
@NotNull @Valid Contact contact)
Add a new Contact to a target entity.
|
void |
deleteContact(@NotNull UUID targetEntityKey,
int contactKey)
Delete an existing Contact from a target entity by contact key.
|
List<Contact> |
listContacts(@NotNull UUID targetEntityKey)
List all contacts of a target entity.
|
void |
updateContact(@NotNull UUID targetEntityKey,
@NotNull @Valid Contact contact)
Updates the given contact for the target entity.
|
int addContact(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid Contact contact)
targetEntityKey - key of target entitycontact - Contact to addvoid deleteContact(@NotNull @NotNull UUID targetEntityKey, int contactKey)
targetEntityKey - key of target entitycontactKey - Contact key to deleteList<Contact> listContacts(@NotNull @NotNull UUID targetEntityKey)
targetEntityKey - key of target entityvoid updateContact(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid Contact contact)
targetEntityKey - Which must be the the owner of the contact or else an exception will be thrown.contact - To updateCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.