Package org.exoplatform.task.storage
Interface CommentStorage
- All Known Implementing Classes:
CommentStorageImpl
public interface CommentStorage
-
Method Summary
Modifier and TypeMethodDescriptionaddComment(TaskDto task, long parentCommentId, String username, String comment) addComment(TaskDto task, String username, String commentText) intcountComments(long taskId) getComment(long commentId) getComments(long taskId, int offset, int limit) getCommentsWithSubs(long taskId, int offset, int limit) loadSubComments(List<CommentDto> listComments) Fetch sub comments of designed commentsvoidremoveComment(long commentId)
-
Method Details
-
getComment
-
getCommentsWithSubs
-
getComments
-
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
- Throws:
EntityNotFoundException
-
loadSubComments
Fetch sub comments of designed comments- Parameters:
listComments- the given list of comments.- Returns:
- List of SubComments
-