public class HibernateCommentDao extends ConfluenceHibernateObjectDao<Comment> implements CommentDaoInternal
HibernateObjectDao.CacheabilitycacheFactory, confluenceUserDao| Constructor and Description |
|---|
HibernateCommentDao() |
| 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(@NonNull Collection<Long> containerIds)
Count unresolved comments of comment containers.
|
protected Comment |
getByClassId(long id)
Retrieve the object with a particular id from the database.
|
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)
Deprecated.
|
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)
Deprecated.
since 7.0.1. Use
CommentDaoInternal.getFilteredContainerComments(long, LimitedRequest, Depth, java.util.function.Predicate[]) (long, Date)} |
Class<Comment> |
getPersistentClass()
Gets the type of
EntityObject this Dao works with. |
Iterator |
getRecentlyUpdatedComments(long spaceId,
int maxResults)
Get all comments that have been updated recently in a space
|
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationDataapplyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilteredChildren, getFilteredContainerCommentsfindAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntitypublic Class<Comment> getPersistentClass()
ObjectDaoInternalEntityObject this Dao works with.getPersistentClass in interface ObjectDaogetPersistentClass in interface ObjectDaoInternal<Comment>public Comment getById(long id)
CommentDaogetById in interface CommentDaoid - the comment's idprotected Comment getByClassId(long id)
HibernateObjectDaogetByClassId in class HibernateObjectDao<Comment>id - the id of the object to look uppublic Iterator getRecentlyUpdatedComments(long spaceId, int maxResults)
CommentDaogetRecentlyUpdatedComments in interface CommentDaospaceId - the space's idmaxResults - the maximum number of comments that can be retrievedIterator object that encapsulates the list of comments foundpublic List<Comment> getContainerComments(long containerId, Date since)
CommentDaogetContainerComments in interface CommentDaocontainerId - the container's idsince - Date the time after which the comments have been added or updatedpublic List<Comment> getContainerComments(long containerId, Date since, String ignoreUsername)
CommentDaogetContainerComments in interface CommentDaocontainerId - the container's idsince - Date the time after which the comments have been added or updatedignoreUsername - the user to be ignoredpublic Map<com.atlassian.bonnie.Searchable,Integer> countComments(Collection<? extends com.atlassian.bonnie.Searchable> searchables)
CommentDaocountComments in interface CommentDaosearchables - a collection of Searchable objects representing the contentspublic int countComments(com.atlassian.bonnie.Searchable searchable)
CommentDaocountComments in interface CommentDaosearchable - a Searchable object representing the contentpublic int countAllCommentVersions()
CommentDaocountAllCommentVersions in interface CommentDao@Deprecated public PageResponse<Comment> getContainerComments(long containerId, LimitedRequest pageRequest, Depth depth, com.google.common.base.Predicate<? super Comment>... predicates)
CommentDaoInternal.getFilteredContainerComments(long, LimitedRequest, Depth, java.util.function.Predicate[]) (long, Date)}CommentDaogetContainerComments in interface CommentDaocontainerId - the container's idpageRequest - the pagination infodepth - the search depthpredicates - the predicates used to filter the childrenPageResponse object that encapsulates the comments@Deprecated public PageResponse<Comment> getChildren(Comment comment, LimitedRequest pageRequest, Depth depth, com.google.common.base.Predicate<? super Comment>... predicates)
CommentDaoInternal.getFilteredChildren(Comment, LimitedRequest, Depth, java.util.function.Predicate[])CommentDaogetChildren in interface CommentDaocomment - the parent commentpageRequest - the pagination infodepth - the search depthpredicates - the predicates used to filter the childrenPageResponse object that encapsulates the children commentspublic Map<Long,Integer> countUnresolvedComments(@NonNull Collection<Long> containerIds)
CommentDaocountUnresolvedComments in interface CommentDaocontainerIds - the list of comment containers idsCopyright © 2003–2022 Atlassian. All rights reserved.