@Deprecated public class HibernateUserStatusDao extends ContentEntityObjectHibernateDao implements UserStatusDao
HibernateObjectDao.Cacheability
ONE_DAY
cacheFactory, confluenceUserDao
NON_CACHEABLE
Constructor and Description |
---|
HibernateUserStatusDao()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCurrentUserStatus(String username)
Deprecated.
Clears the current status of the specified user
|
void |
clearCurrentUserStatus(com.atlassian.user.User user)
Deprecated.
Clears the current status of the specified user
|
void |
clearUserStatus(UserStatus status)
Deprecated.
Clears the specified status if it is current
|
List<UserStatus> |
getAllByUser(String username)
Deprecated.
|
List<UserStatus> |
getAllByUser(String username,
int maxResults)
Deprecated.
Returns a list of user status updates from a specified user with
a specified number of results.
|
List<UserStatus> |
getAllByUser(com.atlassian.user.User user)
Deprecated.
Return a list of all user status updates from the specified user.
|
List<UserStatus> |
getAllByUser(com.atlassian.user.User user,
int maxResults)
Deprecated.
Returns a list of user status updates from a specified user with
a specified number of results.
|
UserStatus |
getById(long id)
Deprecated.
Gets a user status by its id
|
UserStatus |
getByUser(String username)
Deprecated.
Gets the current user status.
|
UserStatus |
getByUser(com.atlassian.user.User user)
Deprecated.
Gets the current user status.
|
Class |
getPersistentClass()
Deprecated.
|
int |
getUserStatusCount(String username)
Deprecated.
Returns the total number of user statuses stored against
the specified user.
|
int |
getUserStatusCount(com.atlassian.user.User user)
Deprecated.
Returns the total number of user statuses stored against
the specified user.
|
void |
removeAllStatusesForUser(String username)
Deprecated.
Remove all user statuses for a particular user
|
void |
removeAllStatusesForUser(com.atlassian.user.User user)
Deprecated.
Remove all user statuses for a particular user
|
countContentBySpaceIdAndStatus, findAllDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getByClassId, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationData
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, refresh, reIndex, remove, replicate, save, saveRaw, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countContentBySpaceIdAndStatus, findAllDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
public Class getPersistentClass()
getPersistentClass
in interface ObjectDao
getPersistentClass
in class ContentEntityObjectHibernateDao
@Deprecated public List<UserStatus> getAllByUser(String username)
UserStatusDao
getAllByUser
in interface UserStatusDao
username
- the username of user to find status updates forpublic List<UserStatus> getAllByUser(String username, int maxResults)
UserStatusDao
getAllByUser
in interface UserStatusDao
username
- the user to find status updates formaxResults
- the maximum number of results to returnpublic List<UserStatus> getAllByUser(com.atlassian.user.User user)
UserStatusDao
getAllByUser
in interface UserStatusDao
user
- the user to find status updates forpublic List<UserStatus> getAllByUser(com.atlassian.user.User user, int maxResults)
UserStatusDao
getAllByUser
in interface UserStatusDao
user
- the user to find status updates formaxResults
- the maximum number of results to returnpublic UserStatus getByUser(String username)
UserStatusDao
getByUser
in interface UserStatusDao
username
- the specified user namepublic UserStatus getByUser(com.atlassian.user.User user)
UserStatusDao
getByUser
in interface UserStatusDao
user
- the user objectIllegalArgumentException
- if user is nullpublic UserStatus getById(long id)
UserStatusDao
getById
in interface ContentEntityObjectDao
getById
in interface UserStatusDao
getById
in class ContentEntityObjectHibernateDao
id
- the status idpublic int getUserStatusCount(String username)
UserStatusDao
getUserStatusCount
in interface UserStatusDao
username
- the user to count the statuses forpublic int getUserStatusCount(com.atlassian.user.User user)
UserStatusDao
getUserStatusCount
in interface UserStatusDao
user
- the user to count the statuses forpublic void clearCurrentUserStatus(com.atlassian.user.User user)
UserStatusDao
clearCurrentUserStatus
in interface UserStatusDao
user
- - the user to clear the status forpublic void clearCurrentUserStatus(String username)
UserStatusDao
clearCurrentUserStatus
in interface UserStatusDao
username
- - the user to clear the status forpublic void clearUserStatus(UserStatus status)
UserStatusDao
clearUserStatus
in interface UserStatusDao
status
- - the status to clearpublic void removeAllStatusesForUser(com.atlassian.user.User user)
UserStatusDao
removeAllStatusesForUser
in interface UserStatusDao
user
- - the specified userpublic void removeAllStatusesForUser(String username)
UserStatusDao
removeAllStatusesForUser
in interface UserStatusDao
username
- - name of the specified userCopyright © 2003–2017 Atlassian. All rights reserved.