public interface ContactableMapper
Modifier and Type | Method and Description |
---|---|
int |
addContact(UUID entityKey,
int contactKey,
org.gbif.api.vocabulary.ContactType contactType,
boolean isPrimary) |
Boolean |
areRelated(UUID targetEntityKey,
int contactKey)
Checks if the contact is associated with the entity.
|
int |
deleteContact(UUID entityKey,
int contactKey) |
int |
deleteContacts(UUID entityKey)
Delete all contacts associated with the given entity
|
List<org.gbif.api.model.registry.Contact> |
listContacts(UUID targetEntityKey) |
void |
updateContact(UUID entityKey,
Integer contactKey,
org.gbif.api.vocabulary.ContactType contactType,
boolean primary)
Updates the contact if it exists, updating the type and is_primary columns.
|
void |
updatePrimaryContacts(UUID entityKey,
org.gbif.api.vocabulary.ContactType contactType)
Updates the current primary contact of the given type if it exists and makes it non primary.
|
int addContact(UUID entityKey, int contactKey, org.gbif.api.vocabulary.ContactType contactType, boolean isPrimary)
void updatePrimaryContacts(UUID entityKey, org.gbif.api.vocabulary.ContactType contactType)
void updateContact(UUID entityKey, Integer contactKey, org.gbif.api.vocabulary.ContactType contactType, boolean primary)
int deleteContact(UUID entityKey, int contactKey)
int deleteContacts(UUID entityKey)
List<org.gbif.api.model.registry.Contact> listContacts(UUID targetEntityKey)
Boolean areRelated(UUID targetEntityKey, int contactKey)
Copyright © 2016 Global Biodiversity Information Facility. All rights reserved.