public interface ICommentsService
Modifier and Type | Method and Description |
---|---|
CommentBO |
add(CommentVO commentVO,
java.lang.Long commentableId)
This method adds a new comment to a specified by id commentable.
|
void |
delete(java.lang.Long commentableId,
java.lang.Long commentId)
This method deletes a specified by id comment to a specified by id commentable.
|
java.util.List<CommentBO> |
findByCommentableId(java.lang.Long commentableId)
This method returns all comments that are available
to a specified by id commentable.
|
CommentBO |
update(CommentVO commentVO,
java.lang.Long commentableId,
java.lang.Long commentId)
This method updates an existing specified by id comment to a specified by id commentable.
|
java.util.List<CommentBO> findByCommentableId(java.lang.Long commentableId)
commentableId
- Id of commentable to receive comments toCommentBO add(CommentVO commentVO, java.lang.Long commentableId)
commentVO
- CommentVO's instance with user's input datacommentableId
- Id of commentable to add a comment toCommentBO update(CommentVO commentVO, java.lang.Long commentableId, java.lang.Long commentId)
commentVO
- CommentVO's instance with user's changed and old data.commentableId
- Id of commentable to edit an comment tocommentId
- Id of comment to editvoid delete(java.lang.Long commentableId, java.lang.Long commentId)
commentableId
- Id of commentable to delete an comment tocommentId
- Id of comment to delete