|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserStatusManager
Used to retrieve and store the user status for a user
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager |
---|
ITERATE_ALL |
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 |
UserStatus |
getUserStatus(long id)
Retrieve the user status for the given status id |
UserStatus |
getUserStatus(java.lang.String username)
Retrieve the current user status for the given user |
UserStatus |
getUserStatus(com.atlassian.user.User user)
Retrieve the current user status for the given user |
int |
getUserStatusCount(java.lang.String username)
Returns the total number of statuses set against the specified user |
int |
getUserStatusCount(com.atlassian.user.User user)
Returns the total number of statuses set against the specified user |
java.util.List<UserStatus> |
getUserStatusList(java.lang.String username)
Retrieve a list of user status items for the specified user |
java.util.List<UserStatus> |
getUserStatusList(java.lang.String username,
int maxResults)
Retrieve a list of user status items for the specified user |
java.util.List<UserStatus> |
getUserStatusList(com.atlassian.user.User user)
Retrieve a list of user status items for the specified user |
java.util.List<UserStatus> |
getUserStatusList(com.atlassian.user.User user,
int maxResults)
Retrieve a list of user status items for the specified user |
void |
removeAllStatusForUser(com.atlassian.user.User user)
Deletes all user status' for the specified user |
UserStatus |
saveUserStatus(java.lang.String username,
java.lang.String statusText)
Saves a new status. |
UserStatus |
saveUserStatus(java.lang.String username,
java.lang.String statusText,
Space targetSpace)
Saves a new status, targetted to a specific space. |
UserStatus |
saveUserStatus(UserStatus status)
Saves a status |
Method Detail |
---|
java.util.List<UserStatus> getUserStatusList(java.lang.String username)
username
- the username of the user to find status updates for
java.util.List<UserStatus> getUserStatusList(com.atlassian.user.User user)
user
- the user to find status updates for
java.util.List<UserStatus> getUserStatusList(java.lang.String username, int maxResults)
username
- the username of the user to find status updates formaxResults
- the maximum number of statuses to return
java.util.List<UserStatus> getUserStatusList(com.atlassian.user.User user, int maxResults)
user
- the user to find status updates formaxResults
- the maximum number of statuses to return
UserStatus getUserStatus(java.lang.String username)
username
- the username of the user to get the status for
UserStatus getUserStatus(com.atlassian.user.User user)
user
- the user to get the status for
UserStatus saveUserStatus(java.lang.String username, java.lang.String statusText)
username
- The user to save the status againststatusText
- Text for the new status
UserStatus saveUserStatus(java.lang.String username, java.lang.String statusText, Space targetSpace)
username
- The user to save the status againststatusText
- Text for the new statustargetSpace
- The space to target the status to
UserStatus saveUserStatus(UserStatus status)
status
- the status to be saved
void 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 forUserStatus getUserStatus(long id)
id
- the id of the user status object
int getUserStatusCount(java.lang.String username)
username
- the user to count statuses for
int getUserStatusCount(com.atlassian.user.User user)
user
- the user to count statuses for
void removeAllStatusForUser(com.atlassian.user.User user)
user
- the user to clear the statuses for
java.lang.IllegalArgumentException
- if user is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |