public class CommentServiceImpl extends Object implements CommentService
TASK_COMMENT_CREATION| Constructor and Description |
|---|
CommentServiceImpl(TaskStorage taskStorage,
CommentStorage commentStorage,
DAOHandler daoHandler,
org.exoplatform.services.listener.ListenerService listenerService) |
| Modifier and Type | Method and Description |
|---|---|
CommentDto |
addComment(TaskDto task,
long parentCommentId,
String username,
String comment) |
CommentDto |
addComment(TaskDto task,
String username,
String comment) |
int |
countComments(long taskId) |
CommentDto |
getComment(long commentId) |
List<CommentDto> |
getComments(long taskId,
int offset,
int limit) |
List<CommentDto> |
getCommentsWithSubs(long taskId,
int offset,
int limit) |
List<CommentDto> |
loadSubComments(List<CommentDto> listComments)
Fetch sub comments of designed comments
|
void |
removeComment(long commentId) |
public CommentServiceImpl(TaskStorage taskStorage, CommentStorage commentStorage, DAOHandler daoHandler, org.exoplatform.services.listener.ListenerService listenerService)
public CommentDto getComment(long commentId)
getComment in interface CommentServicepublic List<CommentDto> getComments(long taskId, int offset, int limit)
getComments in interface CommentServicepublic List<CommentDto> getCommentsWithSubs(long taskId, int offset, int limit)
getCommentsWithSubs in interface CommentServicepublic int countComments(long taskId)
countComments in interface CommentServicepublic List<CommentDto> loadSubComments(List<CommentDto> listComments)
CommentServiceloadSubComments in interface CommentServicelistComments - the given list of comments.public CommentDto addComment(TaskDto task, long parentCommentId, String username, String comment) throws EntityNotFoundException
addComment in interface CommentServiceEntityNotFoundExceptionpublic CommentDto addComment(TaskDto task, String username, String comment) throws EntityNotFoundException
addComment in interface CommentServiceEntityNotFoundExceptionpublic void removeComment(long commentId)
throws EntityNotFoundException
removeComment in interface CommentServiceEntityNotFoundExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.