public interface UserStatusDao extends ContentEntityObjectDao
NON_CACHEABLE
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
since 5.3. Use
getAllByUser(com.atlassian.user.User) instead. |
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.
|
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
|
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, getPersistentClass, refresh, remove, replicate, save, saveRaw
UserStatus getByUser(java.lang.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 java.util.List<UserStatus> getAllByUser(java.lang.String username)
getAllByUser(com.atlassian.user.User)
instead.username
- the username of user to find status updates forjava.util.List<UserStatus> getAllByUser(com.atlassian.user.User user)
user
- the user to find status updates forjava.util.List<UserStatus> getAllByUser(com.atlassian.user.User user, int maxResults)
user
- the user to find status updates formaxResults
- the maximum number of results to returnjava.util.List<UserStatus> getAllByUser(java.lang.String username, int maxResults)
username
- the user to find status updates formaxResults
- the maximum number of results to returnint getUserStatusCount(java.lang.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(java.lang.String username)
username
- - the user to clear the status forvoid clearUserStatus(UserStatus status)
status
- - the status to clearvoid removeAllStatusesForUser(java.lang.String username)
username
- - name of the specified uservoid removeAllStatusesForUser(com.atlassian.user.User user)
user
- - the specified userCopyright © 2003-2014 Atlassian. All Rights Reserved.