public interface UserStatusDao extends ContentEntityObjectDao
NON_CACHEABLE
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
since 5.3. Use
getAllByUser(com.atlassian.user.User) instead. |
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.
|
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
|
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findHistoricalVersionsAfterVersion, findPreviousVersions, getAllCurrentEntities, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getOldestPageCreationDate, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
UserStatus getByUser(String username)
username
- the specified user nameUserStatus getByUser(com.atlassian.user.User user)
user
- the user objectUserStatus getById(long id)
getById
in interface ContentEntityObjectDao
id
- the status id@Deprecated List<UserStatus> getAllByUser(String username)
getAllByUser(com.atlassian.user.User)
instead.username
- the username of user to find status updates forList<UserStatus> getAllByUser(com.atlassian.user.User user)
user
- the user to find status updates forList<UserStatus> getAllByUser(com.atlassian.user.User user, int maxResults)
user
- the user to find status updates formaxResults
- the maximum number of results to returnList<UserStatus> getAllByUser(String username, int maxResults)
username
- the user to find status updates formaxResults
- the maximum number of results to returnint getUserStatusCount(String username)
username
- the user to count the statuses forint getUserStatusCount(com.atlassian.user.User user)
user
- the user to count the statuses forvoid clearCurrentUserStatus(com.atlassian.user.User user)
user
- - the user to clear the status forvoid clearCurrentUserStatus(String username)
username
- - the user to clear the status forvoid clearUserStatus(UserStatus status)
status
- - the status to clearvoid removeAllStatusesForUser(String username)
username
- - name of the specified uservoid removeAllStatusesForUser(com.atlassian.user.User user)
user
- - the specified userCopyright © 2003–2015 Atlassian. All rights reserved.