public interface CommentStorage
| Modifier and Type | Method and Description |
|---|---|
CommentDto |
addComment(TaskDto task,
long parentCommentId,
String username,
String comment) |
CommentDto |
addComment(TaskDto task,
String username,
String commentText) |
CommentDto |
commentToDto(Comment comment) |
Comment |
commentToEntity(CommentDto commentDto) |
int |
countComments(long taskId) |
CommentDto |
getComment(long commentId) |
List<CommentDto> |
getComments(long taskId,
int offset,
int limit) |
List<CommentDto> |
getCommentsWithSubs(long taskId,
int offset,
int limit) |
List<CommentDto> |
listCommentsToDtos(List<Comment> comments) |
List<Comment> |
listCommentsToEntitys(List<CommentDto> commentDtos) |
List<CommentDto> |
loadSubComments(List<CommentDto> listComments)
Fetch sub comments of designed comments
|
void |
removeComment(long commentId) |
CommentDto getComment(long commentId)
List<CommentDto> getCommentsWithSubs(long taskId, int offset, int limit)
List<CommentDto> getComments(long taskId, int offset, int limit)
int countComments(long taskId)
CommentDto addComment(TaskDto task, String username, String commentText) throws EntityNotFoundException
EntityNotFoundExceptionCommentDto addComment(TaskDto task, long parentCommentId, String username, String comment) throws EntityNotFoundException
EntityNotFoundExceptionvoid removeComment(long commentId)
throws EntityNotFoundException
EntityNotFoundExceptionList<CommentDto> loadSubComments(List<CommentDto> listComments)
listComments - the given list of comments.Comment commentToEntity(CommentDto commentDto)
CommentDto commentToDto(Comment comment)
List<CommentDto> listCommentsToDtos(List<Comment> comments)
List<Comment> listCommentsToEntitys(List<CommentDto> commentDtos)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.