|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(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 |
protected void |
publishCreateEvent(ContentEntityObject obj)
This method publishes *CreateEvents s. |
protected void |
publishCreateEvent(ContentEntityObject obj,
SaveContext saveContext)
|
protected void |
publishRemoveEvent(ContentEntityObject obj)
This method publishes *RemoveEvent s. |
protected void |
publishUpdateEvent(ContentEntityObject obj,
ContentEntityObject origObj,
SaveContext saveContext)
This method publishes *UpdateEvent s. |
void |
removeAllStatusForUser(com.atlassian.user.User user)
Deletes all user status' for the specified user |
UserStatus |
saveUserStatus(ConfluenceUser user,
java.lang.String statusText)
Saves a new status. |
UserStatus |
saveUserStatus(ConfluenceUser user,
java.lang.String statusText,
Space targetSpace)
Saves a new status, targeted to a specific space. |
UserStatus |
saveUserStatus(java.lang.String username,
java.lang.String statusText)
Deprecated. |
UserStatus |
saveUserStatus(java.lang.String username,
java.lang.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 java.util.List<UserStatus> getUserStatusList(java.lang.String username)
UserStatusManager
getUserStatusList
in interface UserStatusManager
username
- the username of the user to find status updates for
public java.util.List<UserStatus> getUserStatusList(com.atlassian.user.User user)
UserStatusManager
getUserStatusList
in interface UserStatusManager
user
- the user to find status updates for
public java.util.List<UserStatus> getUserStatusList(java.lang.String username, int maxResults)
UserStatusManager
getUserStatusList
in interface UserStatusManager
username
- the username of the user to find status updates formaxResults
- the maximum number of statuses to return
public java.util.List<UserStatus> getUserStatusList(com.atlassian.user.User user, int maxResults)
UserStatusManager
getUserStatusList
in interface UserStatusManager
user
- the user to find status updates formaxResults
- the maximum number of statuses to return
public UserStatus getUserStatus(java.lang.String username)
UserStatusManager
getUserStatus
in interface UserStatusManager
username
- the username of the user to get the status for
public UserStatus getUserStatus(com.atlassian.user.User user)
UserStatusManager
getUserStatus
in interface UserStatusManager
user
- the user to get the status for
public void clearCurrentUserStatus(com.atlassian.user.User user)
UserStatusManager
clearCurrentUserStatus
in interface UserStatusManager
user
- - the user to clear the status forpublic void clearCurrentUserStatus(java.lang.String username)
UserStatusManager
clearCurrentUserStatus
in interface UserStatusManager
username
- - the user to clear the status forpublic int getUserStatusCount(java.lang.String username)
UserStatusManager
getUserStatusCount
in interface UserStatusManager
username
- the user to count statuses for
public int getUserStatusCount(com.atlassian.user.User user)
UserStatusManager
getUserStatusCount
in interface UserStatusManager
user
- the user to count statuses for
@Deprecated public UserStatus saveUserStatus(java.lang.String username, java.lang.String statusText)
UserStatusManager
saveUserStatus
in interface UserStatusManager
username
- The user to save the status againststatusText
- Text for the new status
@Deprecated public UserStatus saveUserStatus(java.lang.String username, java.lang.String statusText, Space targetSpace)
UserStatusManager
saveUserStatus
in interface UserStatusManager
username
- The user to save the status againststatusText
- Text for the new statustargetSpace
- The space to target the status to
public UserStatus saveUserStatus(ConfluenceUser user, java.lang.String statusText)
UserStatusManager
saveUserStatus
in interface UserStatusManager
user
- The user to save the status againststatusText
- Text for the new status
public UserStatus saveUserStatus(ConfluenceUser user, java.lang.String statusText, Space targetSpace)
UserStatusManager
saveUserStatus
in interface UserStatusManager
user
- 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 UserStatusManager
status
- the status to be saved
public UserStatus getUserStatus(long id)
UserStatusManager
getUserStatus
in interface UserStatusManager
id
- the id of the user status object
public void removeAllStatusForUser(com.atlassian.user.User user)
UserStatusManager
removeAllStatusForUser
in interface UserStatusManager
user
- the user to clear the statuses forprotected void publishCreateEvent(ContentEntityObject obj)
DefaultContentEntityManager
*CreateEvents
s.
Specific content entity object manager that need to publish those events should override this method.
publishCreateEvent
in class DefaultContentEntityManager
obj
- the created content entity objectprotected void publishCreateEvent(ContentEntityObject obj, SaveContext saveContext)
publishCreateEvent
in class DefaultContentEntityManager
protected void publishUpdateEvent(ContentEntityObject obj, ContentEntityObject origObj, SaveContext saveContext)
DefaultContentEntityManager
*UpdateEvent
s.
Specific content entity object manager that need to publish those events should override this method.
publishUpdateEvent
in class DefaultContentEntityManager
obj
- the updated content entity objectorigObj
- the old version of the content entity object, for history purposesaveContext
- the associated SaveContext
protected void publishRemoveEvent(ContentEntityObject obj)
DefaultContentEntityManager
*RemoveEvent
s.
Specific content entity object manager that need to publish those events should override this method.
publishRemoveEvent
in class DefaultContentEntityManager
obj
- the removed content entity object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |