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) intcountCommentsWithSubs(long taskId) Retrieves the Task comments including sub-commentsgetComment(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
-
countCommentsWithSubs
int countCommentsWithSubs(long taskId) Retrieves the Task comments including sub-comments- Parameters:
taskId- Task identifier- Returns:
Integer
-