Package org.gbif.api.service.registry
Interface CommentService
- All Known Subinterfaces:
CollectionEntityService<T>
,CollectionService
,DatasetService
,InstallationService
,InstitutionService
,NetworkEntityService<T>
,NetworkService
,NodeService
,OrganizationService
public interface CommentService
Service provides a set of operations on
Comment
.-
Method Summary
Modifier and TypeMethodDescriptionint
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.listComments
(@NotNull UUID targetEntityKey) List all comments of a target entity.
-
Method Details
-
addComment
int addComment(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid Comment comment) Add a new Comment to a target entity.- Parameters:
targetEntityKey
- key of target entitycomment
- Comment to add- Returns:
- key of Comment added
-
deleteComment
Delete an existing Comment from a target entity by comment key.- Parameters:
targetEntityKey
- key of target entitycommentKey
- Comment key to delete
-
listComments
List all comments of a target entity.- Parameters:
targetEntityKey
- key of target entity- Returns:
- list of comments that belong to the entity
-