|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.hibernate.HibernateObjectDao com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao com.atlassian.confluence.userstatus.HibernateUserStatusDao
public class HibernateUserStatusDao
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao |
---|
ONE_DAY |
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
---|
cacheFactory |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateUserStatusDao()
|
Method Summary | |
---|---|
void |
clearCurrentUserStatus(java.lang.String username)
Clears the current status of the specified user |
void |
clearCurrentUserStatus(com.atlassian.user.User user)
Clears the current status of the specified user |
void |
clearUserStatus(UserStatus status)
Clears the specified status if it is current |
java.util.List<UserStatus> |
getAllByUser(java.lang.String username)
Return a list of all user status updates from the specified user |
java.util.List<UserStatus> |
getAllByUser(java.lang.String username,
int maxResults)
Returns a list of user status updates from a specified user with a specified number of results. |
java.util.List<UserStatus> |
getAllByUser(com.atlassian.user.User user)
Return a list of all user status updates from the specified user. |
java.util.List<UserStatus> |
getAllByUser(com.atlassian.user.User user,
int maxResults)
Returns a list of user status updates from a specified user with a specified number of results. |
UserStatus |
getById(long id)
Gets a user status by its id |
UserStatus |
getByUser(java.lang.String username)
Gets the current user status. |
UserStatus |
getByUser(com.atlassian.user.User user)
Gets the current user status. |
java.lang.Class |
getPersistentClass()
|
int |
getUserStatusCount(java.lang.String username)
Returns the total number of user statuses stored against the specified user. |
int |
getUserStatusCount(com.atlassian.user.User user)
Returns the total number of user statuses stored against the specified user. |
void |
removeAllStatusesForUser(java.lang.String username)
Remove all user statuses for a particular user |
void |
removeAllStatusesForUser(com.atlassian.user.User user)
Remove all user statuses for a particular user |
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao |
---|
findPreviousVersions, getAllCurrentEntities, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary |
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
---|
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, setCacheFactory, updateModificationData |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.confluence.core.persistence.ContentEntityObjectDao |
---|
findPreviousVersions, getAllCurrentEntities, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary |
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao |
---|
findLatestVersionsCount, findLatestVersionsIterator, save |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
Constructor Detail |
---|
public HibernateUserStatusDao()
Method Detail |
---|
public java.lang.Class getPersistentClass()
getPersistentClass
in interface ObjectDao
getPersistentClass
in class ContentEntityObjectHibernateDao
public java.util.List<UserStatus> getAllByUser(java.lang.String username)
UserStatusDao
getAllByUser
in interface UserStatusDao
username
- the username of user to find status updates for
public java.util.List<UserStatus> getAllByUser(java.lang.String username, int maxResults)
UserStatusDao
getAllByUser
in interface UserStatusDao
username
- the user to find status updates formaxResults
- the maximum number of results to return
public java.util.List<UserStatus> getAllByUser(com.atlassian.user.User user)
UserStatusDao
getAllByUser
in interface UserStatusDao
user
- the user to find status updates for
public java.util.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 return
public UserStatus getByUser(java.lang.String username)
UserStatusDao
getByUser
in interface UserStatusDao
username
- the specified user name
public UserStatus getByUser(com.atlassian.user.User user)
UserStatusDao
getByUser
in interface UserStatusDao
user
- the user object
java.lang.IllegalArgumentException
- if user is nullpublic UserStatus getById(long id)
UserStatusDao
getById
in interface ContentEntityObjectDao
getById
in interface UserStatusDao
getById
in class ContentEntityObjectHibernateDao
id
- the status id
public int getUserStatusCount(java.lang.String username)
UserStatusDao
getUserStatusCount
in interface UserStatusDao
username
- the user to count the statuses for
public int getUserStatusCount(com.atlassian.user.User user)
UserStatusDao
getUserStatusCount
in interface UserStatusDao
user
- the user to count the statuses for
public void clearCurrentUserStatus(com.atlassian.user.User user)
UserStatusDao
clearCurrentUserStatus
in interface UserStatusDao
user
- - the user to clear the status forpublic void clearCurrentUserStatus(java.lang.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(java.lang.String username)
UserStatusDao
removeAllStatusesForUser
in interface UserStatusDao
username
- - name of the specified user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |