|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(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 |
List<UserStatus> |
getAllByUser(String username)
Return a list of all user status updates from the specified user |
List<UserStatus> |
getAllByUser(String username,
int maxResults)
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)
Return a list of all user status updates from the specified user. |
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(String username)
Gets the current user status. |
UserStatus |
getByUser(com.atlassian.user.User user)
Gets the current user status. |
Class |
getPersistentClass()
|
int |
getUserStatusCount(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(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 Class getPersistentClass()
getPersistentClass in interface ObjectDaogetPersistentClass in class ContentEntityObjectHibernateDaopublic List<UserStatus> getAllByUser(String username)
UserStatusDao
getAllByUser in interface UserStatusDaousername - the username of user to find status updates for
public List<UserStatus> getAllByUser(String username,
int maxResults)
UserStatusDao
getAllByUser in interface UserStatusDaousername - the user to find status updates formaxResults - the maximum number of results to return
public List<UserStatus> getAllByUser(com.atlassian.user.User user)
UserStatusDao
getAllByUser in interface UserStatusDaouser - the user to find status updates for
public List<UserStatus> getAllByUser(com.atlassian.user.User user,
int maxResults)
UserStatusDao
getAllByUser in interface UserStatusDaouser - the user to find status updates formaxResults - the maximum number of results to return
public UserStatus getByUser(String username)
UserStatusDao
getByUser in interface UserStatusDaousername - the specified user name
public UserStatus getByUser(com.atlassian.user.User user)
UserStatusDao
getByUser in interface UserStatusDaouser - the user object
IllegalArgumentException - if user is nullpublic UserStatus getById(long id)
UserStatusDao
getById in interface ContentEntityObjectDaogetById in interface UserStatusDaogetById in class ContentEntityObjectHibernateDaoid - the status id
public int getUserStatusCount(String username)
UserStatusDao
getUserStatusCount in interface UserStatusDaousername - the user to count the statuses for
public int getUserStatusCount(com.atlassian.user.User user)
UserStatusDao
getUserStatusCount in interface UserStatusDaouser - the user to count the statuses for
public void clearCurrentUserStatus(com.atlassian.user.User user)
UserStatusDao
clearCurrentUserStatus in interface UserStatusDaouser - - the user to clear the status forpublic void clearCurrentUserStatus(String username)
UserStatusDao
clearCurrentUserStatus in interface UserStatusDaousername - - the user to clear the status forpublic void clearUserStatus(UserStatus status)
UserStatusDao
clearUserStatus in interface UserStatusDaostatus - - the status to clearpublic void removeAllStatusesForUser(com.atlassian.user.User user)
UserStatusDao
removeAllStatusesForUser in interface UserStatusDaouser - - the specified userpublic void removeAllStatusesForUser(String username)
UserStatusDao
removeAllStatusesForUser in interface UserStatusDaousername - - name of the specified user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||