com.atlassian.confluence.userstatus
Interface UserStatusManager

All Superinterfaces:
ContentEntityManager
All Known Implementing Classes:
DefaultUserStatusManager

public interface UserStatusManager
extends ContentEntityManager

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
 
Methods inherited from interface com.atlassian.confluence.core.ContentEntityManager
getAllCurrentEntities, getById, getLockedBySpace, getNextVersion, getOtherVersion, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, refreshContentEntity, removeContentEntity, revertContentEntityBackToVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, setEventManager, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo
 

Method Detail

getUserStatusList

java.util.List<UserStatus> getUserStatusList(java.lang.String username)
Retrieve a list of user status items for the specified user

Parameters:
username - the username of the user to find status updates for
Returns:
a list of user status objects

getUserStatusList

java.util.List<UserStatus> getUserStatusList(com.atlassian.user.User user)
Retrieve a list of user status items for the specified user

Parameters:
user - the user to find status updates for
Returns:
a list of user status objects

getUserStatusList

java.util.List<UserStatus> getUserStatusList(java.lang.String username,
                                             int maxResults)
Retrieve a list of user status items for the specified user

Parameters:
username - the username of the user to find status updates for
maxResults - the maximum number of statuses to return
Returns:
a list of user status objects

getUserStatusList

java.util.List<UserStatus> getUserStatusList(com.atlassian.user.User user,
                                             int maxResults)
Retrieve a list of user status items for the specified user

Parameters:
user - the user to find status updates for
maxResults - the maximum number of statuses to return
Returns:
a list of user status objects

getUserStatus

UserStatus getUserStatus(java.lang.String username)
Retrieve the current user status for the given user

Parameters:
username - the username of the user to get the status for
Returns:
user status

getUserStatus

UserStatus getUserStatus(com.atlassian.user.User user)
Retrieve the current user status for the given user

Parameters:
user - the user to get the status for
Returns:
user status

saveUserStatus

UserStatus saveUserStatus(java.lang.String username,
                          java.lang.String statusText)
Saves a new status.

Parameters:
username - The user to save the status against
statusText - Text for the new status
Returns:
The persisted status object

saveUserStatus

UserStatus saveUserStatus(java.lang.String username,
                          java.lang.String statusText,
                          Space targetSpace)
Saves a new status, targetted to a specific space.

Parameters:
username - The user to save the status against
statusText - Text for the new status
targetSpace - The space to target the status to
Returns:
The persisted status object

saveUserStatus

UserStatus saveUserStatus(UserStatus status)
Saves a status

Parameters:
status - the status to be saved
Returns:
The status that was passed in as a parameter

clearCurrentUserStatus

void clearCurrentUserStatus(com.atlassian.user.User user)
Clears the current status of the specified user

Parameters:
user - - the user to clear the status for

clearCurrentUserStatus

void clearCurrentUserStatus(java.lang.String username)
Clears the current status of the specified user

Parameters:
username - - the user to clear the status for

getUserStatus

UserStatus getUserStatus(long id)
Retrieve the user status for the given status id

Parameters:
id - the id of the user status object
Returns:
user status

getUserStatusCount

int getUserStatusCount(java.lang.String username)
Returns the total number of statuses set against the specified user

Parameters:
username - the user to count statuses for
Returns:
total number of statuses set

getUserStatusCount

int getUserStatusCount(com.atlassian.user.User user)
Returns the total number of statuses set against the specified user

Parameters:
user - the user to count statuses for
Returns:
total number of statuses set

removeAllStatusForUser

void removeAllStatusForUser(com.atlassian.user.User user)
Deletes all user status' for the specified user

Parameters:
user - the user to clear the statuses for
Throws:
java.lang.IllegalArgumentException - if user is null


Copyright © 2003-2010 Atlassian. All Rights Reserved.