Package org.exoplatform.task.service
Interface CommentService
- All Known Implementing Classes:
CommentServiceImpl
public interface CommentService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddComment(TaskDto task, long parentCommentId, String username, String comment) addComment(TaskDto task, String username, String commentText) 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)
-
Field Details
-
TASK_COMMENT_CREATION
- See Also:
-
-
Method Details
-
getComment
-
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
-
getComments
-
getCommentsWithSubs
-
countComments
int countComments(long taskId) -
loadSubComments
Fetch sub comments of designed comments- Parameters:
listComments- the given list of comments.- Returns:
- List of sub comments
-