Interface CommentDao
- All Known Subinterfaces:
CommentDaoInternal
- All Known Implementing Classes:
HibernateCommentDao
public interface CommentDao
-
Method Summary
Modifier and TypeMethodDescriptionint
Count the total number of comments of all types, including previous versionsint
countComments
(Searchable searchable) Count all comments in a searchable contentcountComments
(Collection<? extends Searchable> searchables) Count all comments for each content in a collectioncountUnresolvedComments
(@NonNull Collection<Long> containerIds) Count unresolved comments of comment containers.getById
(long id) Get a comment by its idgetChildren
(Comment comment, LimitedRequest pageRequest) getContainerComments
(long containerId, LimitedRequest pageRequest) getContainerComments
(long containerId, Date since) Get the comments that have been added or updated since a specific timegetContainerComments
(long containerId, Date since, ConfluenceUser ignoreUser) Get the comments that have been added or updated since a specific time but not by a usergetRecentlyUpdatedComments
(long spaceId, int maxResults) Get all comments that have been updated recently in a space
-
Method Details
-
getById
Get a comment by its id- Parameters:
id
- the comment's id- Returns:
- the comment object
-
getRecentlyUpdatedComments
Get all comments that have been updated recently in a space- Parameters:
spaceId
- the space's idmaxResults
- the maximum number of comments that can be retrieved- Returns:
- a
Iterator
object that encapsulates the list of comments found
-
getContainerComments
Get the comments that have been added or updated since a specific time- Parameters:
containerId
- the container's idsince
-Date
the time after which the comments have been added or updated- Returns:
- a list of comments created or updated
-
getContainerComments
Get the comments that have been added or updated since a specific time but not by a user- Parameters:
containerId
- the container's idsince
-Date
the time after which the comments have been added or updatedignoreUser
- the user to be ignored- Returns:
- a list of comments created or updated
-
getContainerComments
-
countComments
Count all comments for each content in a collection- Parameters:
searchables
- a collection ofSearchable
objects representing the contents- Returns:
- a map of counts for each searchable content
-
countComments
Count all comments in a searchable content- Parameters:
searchable
- aSearchable
object representing the content- Returns:
- a number of comments in the searchable content
-
countAllCommentVersions
int countAllCommentVersions()Count the total number of comments of all types, including previous versions- Returns:
- the total number of comments
- Since:
- 6.11.0
-
getChildren
-
countUnresolvedComments
Count unresolved comments of comment containers.- Parameters:
containerIds
- the list of comment containers ids- Returns:
- The map of container id and its unresolved comment count
- Since:
- 5.7
-