|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.core.DefaultContentEntityManager
com.atlassian.confluence.userstatus.DefaultUserStatusManager
public class DefaultUserStatusManager
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.core.DefaultContentEntityManager |
|---|
attachmentManager, contentEntityObjectDao, eventManager, hibernateSessionManager, indexer, labelManager, linkManager |
| Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager |
|---|
ITERATE_ALL |
| Constructor Summary | |
|---|---|
DefaultUserStatusManager(UserStatusDao userStatusDao)
|
|
| 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 |
UserStatus |
getUserStatus(long id)
Retrieve the user status for the given status id |
UserStatus |
getUserStatus(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(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 |
List<UserStatus> |
getUserStatusList(String username)
Retrieve a list of user status items for the specified user |
List<UserStatus> |
getUserStatusList(String username,
int maxResults)
Retrieve a list of user status items for the specified user |
List<UserStatus> |
getUserStatusList(com.atlassian.user.User user)
Retrieve a list of user status items for the specified user |
List<UserStatus> |
getUserStatusList(com.atlassian.user.User user,
int maxResults)
Retrieve a list of user status items for the specified user |
protected void |
publishCreateEvent(ContentEntityObject obj)
This method publishes *CreateEventss. |
protected void |
publishCreateEvent(ContentEntityObject obj,
SaveContext saveContext)
|
protected void |
publishRemoveEvent(ContentEntityObject obj)
This method publishes *RemoveEvents. |
protected void |
publishUpdateEvent(ContentEntityObject obj,
ContentEntityObject origObj,
SaveContext saveContext)
This method publishes *UpdateEvents. |
void |
removeAllStatusForUser(com.atlassian.user.User user)
Deletes all user status' for the specified user |
UserStatus |
saveUserStatus(ConfluenceUser user,
String statusText)
Saves a new status. |
UserStatus |
saveUserStatus(ConfluenceUser user,
String statusText,
Space targetSpace)
Saves a new status, targeted to a specific space. |
UserStatus |
saveUserStatus(String username,
String statusText)
Deprecated. |
UserStatus |
saveUserStatus(String username,
String statusText,
Space targetSpace)
Deprecated. |
UserStatus |
saveUserStatus(UserStatus status)
Saves a status |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUserStatusManager(UserStatusDao userStatusDao)
| Method Detail |
|---|
public List<UserStatus> getUserStatusList(String username)
UserStatusManager
getUserStatusList in interface UserStatusManagerusername - the username of the user to find status updates for
public List<UserStatus> getUserStatusList(com.atlassian.user.User user)
UserStatusManager
getUserStatusList in interface UserStatusManageruser - the user to find status updates for
public List<UserStatus> getUserStatusList(String username,
int maxResults)
UserStatusManager
getUserStatusList in interface UserStatusManagerusername - the username of the user to find status updates formaxResults - the maximum number of statuses to return
public List<UserStatus> getUserStatusList(com.atlassian.user.User user,
int maxResults)
UserStatusManager
getUserStatusList in interface UserStatusManageruser - the user to find status updates formaxResults - the maximum number of statuses to return
public UserStatus getUserStatus(String username)
UserStatusManager
getUserStatus in interface UserStatusManagerusername - the username of the user to get the status for
public UserStatus getUserStatus(com.atlassian.user.User user)
UserStatusManager
getUserStatus in interface UserStatusManageruser - the user to get the status for
public void clearCurrentUserStatus(com.atlassian.user.User user)
UserStatusManager
clearCurrentUserStatus in interface UserStatusManageruser - - the user to clear the status forpublic void clearCurrentUserStatus(String username)
UserStatusManager
clearCurrentUserStatus in interface UserStatusManagerusername - - the user to clear the status forpublic int getUserStatusCount(String username)
UserStatusManager
getUserStatusCount in interface UserStatusManagerusername - the user to count statuses for
public int getUserStatusCount(com.atlassian.user.User user)
UserStatusManager
getUserStatusCount in interface UserStatusManageruser - the user to count statuses for
@Deprecated
public UserStatus saveUserStatus(String username,
String statusText)
UserStatusManager
saveUserStatus in interface UserStatusManagerusername - The user to save the status againststatusText - Text for the new status
@Deprecated
public UserStatus saveUserStatus(String username,
String statusText,
Space targetSpace)
UserStatusManager
saveUserStatus in interface UserStatusManagerusername - The user to save the status againststatusText - Text for the new statustargetSpace - The space to target the status to
public UserStatus saveUserStatus(ConfluenceUser user,
String statusText)
UserStatusManager
saveUserStatus in interface UserStatusManageruser - The user to save the status againststatusText - Text for the new status
public UserStatus saveUserStatus(ConfluenceUser user,
String statusText,
Space targetSpace)
UserStatusManager
saveUserStatus in interface UserStatusManageruser - The user to save the status againststatusText - Text for the new statustargetSpace - The space to target the status to
public UserStatus saveUserStatus(UserStatus status)
UserStatusManager
saveUserStatus in interface UserStatusManagerstatus - the status to be saved
public UserStatus getUserStatus(long id)
UserStatusManager
getUserStatus in interface UserStatusManagerid - the id of the user status object
public void removeAllStatusForUser(com.atlassian.user.User user)
UserStatusManager
removeAllStatusForUser in interface UserStatusManageruser - the user to clear the statuses forprotected void publishCreateEvent(ContentEntityObject obj)
DefaultContentEntityManager*CreateEventss.
Specific content entity object manager that need to publish those events should override this method.
publishCreateEvent in class DefaultContentEntityManagerobj - the created content entity object
protected void publishCreateEvent(ContentEntityObject obj,
SaveContext saveContext)
publishCreateEvent in class DefaultContentEntityManager
protected void publishUpdateEvent(ContentEntityObject obj,
ContentEntityObject origObj,
SaveContext saveContext)
DefaultContentEntityManager*UpdateEvents.
Specific content entity object manager that need to publish those events should override this method.
publishUpdateEvent in class DefaultContentEntityManagerobj - the updated content entity objectorigObj - the old version of the content entity object, for history purposesaveContext - the associated SaveContextprotected void publishRemoveEvent(ContentEntityObject obj)
DefaultContentEntityManager*RemoveEvents.
Specific content entity object manager that need to publish those events should override this method.
publishRemoveEvent in class DefaultContentEntityManagerobj - the removed content entity object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||