Package org.exoplatform.task.storage
Interface CommentStorage
-
- All Known Implementing Classes:
CommentStorageImpl
public interface CommentStorage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommentDtoaddComment(TaskDto task, long parentCommentId, String username, String comment)CommentDtoaddComment(TaskDto task, String username, String commentText)intcountComments(long taskId)CommentDtogetComment(long commentId)List<CommentDto>getComments(long taskId, int offset, int limit)List<CommentDto>getCommentsWithSubs(long taskId, int offset, int limit)List<CommentDto>loadSubComments(List<CommentDto> listComments)Fetch sub comments of designed commentsvoidremoveComment(long commentId)
-
-
-
Method Detail
-
getComment
CommentDto getComment(long commentId)
-
getCommentsWithSubs
List<CommentDto> getCommentsWithSubs(long taskId, int offset, int limit)
-
getComments
List<CommentDto> getComments(long taskId, int offset, int limit)
-
countComments
int countComments(long taskId)
-
addComment
CommentDto addComment(TaskDto task, String username, String commentText) throws EntityNotFoundException
- Throws:
EntityNotFoundException
-
addComment
CommentDto addComment(TaskDto task, long parentCommentId, String username, String comment) throws EntityNotFoundException
- Throws:
EntityNotFoundException
-
removeComment
void removeComment(long commentId) throws EntityNotFoundException- Throws:
EntityNotFoundException
-
loadSubComments
List<CommentDto> loadSubComments(List<CommentDto> listComments)
Fetch sub comments of designed comments- Parameters:
listComments- the given list of comments.- Returns:
- List of SubComments
-
-