Class CommentServiceImpl
java.lang.Object
org.exoplatform.task.service.impl.CommentServiceImpl
- All Implemented Interfaces:
CommentService
-
Constructor Summary
ConstructorsConstructorDescriptionCommentServiceImpl(CommentStorage commentStorage, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionaddComment(TaskDto task, long parentCommentId, String username, String comment) addComment(TaskDto task, String username, String comment) 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)
-
Constructor Details
-
CommentServiceImpl
public CommentServiceImpl(CommentStorage commentStorage, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
getComment
- Specified by:
getCommentin interfaceCommentService
-
getComments
- Specified by:
getCommentsin interfaceCommentService
-
getCommentsWithSubs
- Specified by:
getCommentsWithSubsin interfaceCommentService
-
countCommentsWithSubs
public int countCommentsWithSubs(long taskId) Description copied from interface:CommentServiceRetrieves the Task comments including sub-comments- Specified by:
countCommentsWithSubsin interfaceCommentService- Parameters:
taskId- Task identifier- Returns:
Integer
-
countComments
public int countComments(long taskId) - Specified by:
countCommentsin interfaceCommentService
-
loadSubComments
Description copied from interface:CommentServiceFetch sub comments of designed comments- Specified by:
loadSubCommentsin interfaceCommentService- Parameters:
listComments- the given list of comments.- Returns:
- List of sub comments
-
addComment
public CommentDto addComment(TaskDto task, long parentCommentId, String username, String comment) throws EntityNotFoundException - Specified by:
addCommentin interfaceCommentService- Throws:
EntityNotFoundException
-
addComment
public CommentDto addComment(TaskDto task, String username, String comment) throws EntityNotFoundException - Specified by:
addCommentin interfaceCommentService- Throws:
EntityNotFoundException
-
removeComment
- Specified by:
removeCommentin interfaceCommentService- Throws:
EntityNotFoundException
-