public interface CollectionEntityService<T extends CollectionEntity> extends CrudService<T>, IdentifierService, 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, updateaddIdentifier, deleteIdentifier, listIdentifiersaddTag, addTag, deleteTag, listTagsaddMachineTag, addMachineTag, addMachineTag, deleteMachineTag, deleteMachineTags, deleteMachineTags, deleteMachineTags, deleteMachineTags, listMachineTagsaddComment, deleteComment, listCommentsaddContactPerson, listContactPersons, removeContactPerson, replaceContactPersons, updateContactPersonaddOccurrenceMapping, deleteOccurrenceMapping, listOccurrenceMappingsvoid 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 entityMasterSourceMetadataList<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.