public interface CommentDao extends ObjectDao
NON_CACHEABLE
Modifier and Type | Method and Description |
---|---|
int |
countAllCommentVersions()
Count the total number of comments of all types, including previous versions
|
Map<com.atlassian.bonnie.Searchable,Integer> |
countComments(Collection<? extends com.atlassian.bonnie.Searchable> searchables)
Count all comments for each content in a collection
|
int |
countComments(com.atlassian.bonnie.Searchable searchable)
Count all comments in a searchable content
|
Map<Long,Integer> |
countUnresolvedComments(Collection<Long> containerIds)
Count unresolved comments of comment containers.
|
Comment |
getById(long id)
Get a comment by its id
|
PageResponse<Comment> |
getChildren(Comment comment,
LimitedRequest pageRequest,
Depth depth,
com.google.common.base.Predicate<? super Comment>... predicates)
Get the children of a comment
|
List<Comment> |
getContainerComments(long containerId,
Date since)
Get the comments that have been added or updated since a specific time
|
List<Comment> |
getContainerComments(long containerId,
Date since,
String ignoreUsername)
Get the comments that have been added or updated since a specific time but not by a user
|
PageResponse<Comment> |
getContainerComments(long containerId,
LimitedRequest pageRequest,
Depth depth,
com.google.common.base.Predicate<? super Comment>... predicates)
Get the comments belonging to a container
|
Iterator |
getRecentlyUpdatedComments(long spaceId,
int maxResults)
Get all comments that have been updated recently in a space
|
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
Comment getById(long id)
id
- the comment's idIterator getRecentlyUpdatedComments(long spaceId, int maxResults)
spaceId
- the space's idmaxResults
- the maximum number of comments that can be retrievedIterator
object that encapsulates the list of comments foundList<Comment> getContainerComments(long containerId, Date since)
containerId
- the container's idsince
- Date
the time after which the comments have been added or updatedList<Comment> getContainerComments(long containerId, Date since, String ignoreUsername)
containerId
- the container's idsince
- Date
the time after which the comments have been added or updatedignoreUsername
- the user to be ignoredPageResponse<Comment> getContainerComments(long containerId, LimitedRequest pageRequest, Depth depth, com.google.common.base.Predicate<? super Comment>... predicates)
containerId
- the container's idpageRequest
- the pagination infodepth
- the search depthpredicates
- the predicates used to filter the childrenPageResponse
object that encapsulates the commentsMap<com.atlassian.bonnie.Searchable,Integer> countComments(Collection<? extends com.atlassian.bonnie.Searchable> searchables)
searchables
- a collection of Searchable
objects representing the contentsint countComments(com.atlassian.bonnie.Searchable searchable)
searchable
- a Searchable
object representing the contentint countAllCommentVersions()
PageResponse<Comment> getChildren(Comment comment, LimitedRequest pageRequest, Depth depth, com.google.common.base.Predicate<? super Comment>... predicates)
comment
- the parent commentpageRequest
- the pagination infodepth
- the search depthpredicates
- the predicates used to filter the childrenPageResponse
object that encapsulates the children commentsCopyright © 2003–2018 Atlassian. All rights reserved.