|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserStatusDao
Interface to the persisted user status objects
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. |
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 interface com.atlassian.confluence.core.persistence.VersionedObjectDao |
---|
findLatestVersionsCount, findLatestVersionsIterator, save |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
UserStatus getByUser(String username)
username
- the specified user name
UserStatus getByUser(com.atlassian.user.User user)
user
- the user object
UserStatus getById(long id)
getById
in interface ContentEntityObjectDao
id
- the status id
List<UserStatus> getAllByUser(String username)
username
- the username of user to find status updates for
List<UserStatus> getAllByUser(com.atlassian.user.User user)
user
- the user to find status updates for
List<UserStatus> getAllByUser(com.atlassian.user.User user, int maxResults)
user
- the user to find status updates formaxResults
- the maximum number of results to return
List<UserStatus> getAllByUser(String username, int maxResults)
username
- the user to find status updates formaxResults
- the maximum number of results to return
int getUserStatusCount(String username)
username
- the user to count the statuses for
int getUserStatusCount(com.atlassian.user.User user)
user
- the user to count the statuses for
void 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 user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |