Class CommentStorageImpl
- java.lang.Object
-
- org.exoplatform.task.storage.impl.CommentStorageImpl
-
- All Implemented Interfaces:
CommentStorage
public class CommentStorageImpl extends Object implements CommentStorage
-
-
Constructor Summary
Constructors Constructor Description CommentStorageImpl(DAOHandler daoHandler, ProjectStorage projectStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentDtoaddComment(TaskDto task, long parentCommentId, String username, String comment)CommentDtoaddComment(TaskDto task, String username, String comment)intcountComments(long taskId)CommentDtogetComment(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 commentsvoidremoveComment(long commentId)
-
-
-
Constructor Detail
-
CommentStorageImpl
public CommentStorageImpl(DAOHandler daoHandler, ProjectStorage projectStorage)
-
-
Method Detail
-
getComment
public CommentDto getComment(long commentId)
- Specified by:
getCommentin interfaceCommentStorage
-
getCommentsWithSubs
public List<CommentDto> getCommentsWithSubs(long taskId, int offset, int limit)
- Specified by:
getCommentsWithSubsin interfaceCommentStorage
-
getComments
public List<CommentDto> getComments(long taskId, int offset, int limit)
- 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
public void removeComment(long commentId) throws EntityNotFoundException- Specified by:
removeCommentin interfaceCommentStorage- Throws:
EntityNotFoundException
-
loadSubComments
public List<CommentDto> loadSubComments(List<CommentDto> listComments)
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
-
-