public interface CollectionEntityService<T extends CollectionEntity> extends CrudService<T>, PrimaryIdentifierService, TagService, MachineTagService, CommentService, ContactService, OccurrenceMappingService
Modifier and Type | Method and Description |
---|---|
int |
addMasterSourceMetadata(UUID targetEntityKey,
MasterSourceMetadata masterSourceMetadata)
Adds
MasterSourceMetadata to an entity. |
void |
deleteMasterSourceMetadata(UUID targetEntityKey)
Removes the
MasterSourceMetadata from an entity. |
List<T> |
findByMasterSource(Source source,
String sourceId)
Finds the collection entity whose master data metadata matches with the parameters received.
|
MasterSourceMetadata |
getMasterSourceMetadata(@NotNull UUID targetEntityKey)
Returns the
MasterSourceMetadata of the entity. |
void |
replace(UUID entityToReplaceKey,
UUID replacementKey)
Replaces a entity with another.
|
void |
update(T entity,
boolean lockFields)
Updates an existing entity.
|
create, delete, exists, get, update
updateIdentifier
addIdentifier, deleteIdentifier, listIdentifiers
addTag, addTag, deleteTag, listTags
addMachineTag, addMachineTag, addMachineTag, deleteMachineTag, deleteMachineTags, deleteMachineTags, deleteMachineTags, deleteMachineTags, listMachineTags
addComment, deleteComment, listComments
addContactPerson, addSuggestionContacts, listContactPersons, removeContactPerson, replaceContactPersons, updateContactPerson
addOccurrenceMapping, deleteOccurrenceMapping, listOccurrenceMappings
void replace(UUID entityToReplaceKey, UUID replacementKey)
int addMasterSourceMetadata(UUID targetEntityKey, MasterSourceMetadata masterSourceMetadata)
MasterSourceMetadata
to an entity.targetEntityKey
- key of the entity to add the metadata tomasterSourceMetadata
- metadata to addvoid deleteMasterSourceMetadata(UUID targetEntityKey)
MasterSourceMetadata
from an entity.targetEntityKey
- key of the entity whose metadata will be deletedMasterSourceMetadata getMasterSourceMetadata(@NotNull @NotNull UUID targetEntityKey)
MasterSourceMetadata
of the entity.targetEntityKey
- key of the entityMasterSourceMetadata
List<T> findByMasterSource(Source source, String sourceId)
source
- source of the metadatasourceId
- source Id of the metadataOptional
with the collection entity foundCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.