public interface CommentService
Comment
.Modifier and Type | Method and Description |
---|---|
int |
addComment(@NotNull UUID targetEntityKey,
@NotNull @Valid Comment comment)
Add a new Comment to a target entity.
|
void |
deleteComment(@NotNull UUID targetEntityKey,
int commentKey)
Delete an existing Comment from a target entity by comment key.
|
List<Comment> |
listComments(@NotNull UUID targetEntityKey)
List all comments of a target entity.
|
int addComment(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid Comment comment)
targetEntityKey
- key of target entitycomment
- Comment to addvoid deleteComment(@NotNull @NotNull UUID targetEntityKey, int commentKey)
targetEntityKey
- key of target entitycommentKey
- Comment key to deleteList<Comment> listComments(@NotNull @NotNull UUID targetEntityKey)
targetEntityKey
- key of target entityCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.