Interface CommentService

    • Method Detail

      • 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 entity
        comment - Comment to add
        Returns:
        key of Comment added
      • deleteComment

        void deleteComment​(@NotNull
                           @NotNull UUID targetEntityKey,
                           int commentKey)
        Delete an existing Comment from a target entity by comment key.
        Parameters:
        targetEntityKey - key of target entity
        commentKey - Comment key to delete
      • listComments

        List<CommentlistComments​(@NotNull
                                   @NotNull UUID targetEntityKey)
        List all comments of a target entity.
        Parameters:
        targetEntityKey - key of target entity
        Returns:
        list of comments that belong to the entity