Class CommentServiceImpl
java.lang.Object
org.exoplatform.task.service.impl.CommentServiceImpl
- All Implemented Interfaces:
CommentService
-
Constructor Summary
ConstructorsConstructorDescriptionCommentServiceImpl(TaskStorage taskStorage, CommentStorage commentStorage, DAOHandler daoHandler, 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) 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
-
CommentServiceImpl
public CommentServiceImpl(TaskStorage taskStorage, CommentStorage commentStorage, DAOHandler daoHandler, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
getComment
- Specified by:
getCommentin interfaceCommentService
-
getComments
- Specified by:
getCommentsin interfaceCommentService
-
getCommentsWithSubs
- Specified by:
getCommentsWithSubsin interfaceCommentService
-
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
-