Class CommentStorageImpl
java.lang.Object
org.exoplatform.task.storage.impl.CommentStorageImpl
- All Implemented Interfaces:
CommentStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComment(TaskDto task, long parentCommentId, String username, String comment) addComment(TaskDto task, String username, String comment) 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)
-
Constructor Details
-
CommentStorageImpl
-
-
Method Details
-
getComment
- Specified by:
getCommentin interfaceCommentStorage
-
getCommentsWithSubs
- Specified by:
getCommentsWithSubsin interfaceCommentStorage
-
getComments
- Specified by:
getCommentsin interfaceCommentStorage
-
countComments
public int countComments(long taskId) - Specified by:
countCommentsin interfaceCommentStorage
-
addComment
public CommentDto addComment(TaskDto task, String username, String comment) throws EntityNotFoundException - Specified by:
addCommentin interfaceCommentStorage- Throws:
EntityNotFoundException
-
addComment
public CommentDto addComment(TaskDto task, long parentCommentId, String username, String comment) throws EntityNotFoundException - Specified by:
addCommentin interfaceCommentStorage- Throws:
EntityNotFoundException
-
removeComment
- Specified by:
removeCommentin interfaceCommentStorage- Throws:
EntityNotFoundException
-
loadSubComments
Description copied from interface:CommentStorageFetch sub comments of designed comments- Specified by:
loadSubCommentsin interfaceCommentStorage- Parameters:
listComments- the given list of comments.- Returns:
- List of SubComments
-