public class DefaultUserStatusManager extends DefaultContentEntityManager implements UserStatusManager
attachmentManager, contentEntityObjectDao, eventManager, hibernateSessionManager, indexer, labelManager, linkManager
ITERATE_ALL
Constructor and Description |
---|
DefaultUserStatusManager(UserStatusDao userStatusDao) |
Modifier and Type | Method and Description |
---|---|
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
*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,
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
|
getBodyContentForRevert, getById, getById, getById, getByIds, getEventManager, getNextVersion, getOtherVersion, getPageDao, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, setAttachmentManager, setContentEntityObjectDao, setEventManager, setHibernateSessionManager, setIndexer, setLabelManager, setLinkManager, suppressNotificationsOnEventIfRequired, updateContentLinkingTo, updateContentLinkingTo, updateOutgoingLinksInContent, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo, updateSingleContentLinkinTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getById, getNextVersion, getOtherVersion, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, setEventManager, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo
public DefaultUserStatusManager(UserStatusDao userStatusDao)
public List<UserStatus> getUserStatusList(String username)
UserStatusManager
getUserStatusList
in interface UserStatusManager
username
- the username of the user to find status updates forpublic List<UserStatus> getUserStatusList(com.atlassian.user.User user)
UserStatusManager
getUserStatusList
in interface UserStatusManager
user
- the user to find status updates forpublic List<UserStatus> getUserStatusList(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 returnpublic 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 returnpublic UserStatus getUserStatus(String username)
UserStatusManager
getUserStatus
in interface UserStatusManager
username
- the username of the user to get the status forpublic UserStatus getUserStatus(com.atlassian.user.User user)
UserStatusManager
getUserStatus
in interface UserStatusManager
user
- the user to get the status forpublic void clearCurrentUserStatus(com.atlassian.user.User user)
UserStatusManager
clearCurrentUserStatus
in interface UserStatusManager
user
- - the user to clear the status forpublic void clearCurrentUserStatus(String username)
UserStatusManager
clearCurrentUserStatus
in interface UserStatusManager
username
- - the user to clear the status forpublic int getUserStatusCount(String username)
UserStatusManager
getUserStatusCount
in interface UserStatusManager
username
- the user to count statuses forpublic int getUserStatusCount(com.atlassian.user.User user)
UserStatusManager
getUserStatusCount
in interface UserStatusManager
user
- the user to count statuses for@Deprecated public UserStatus saveUserStatus(String username, String statusText)
UserStatusManager
saveUserStatus
in interface UserStatusManager
username
- 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 UserStatusManager
username
- The user to save the status againststatusText
- Text for the new statustargetSpace
- The space to target the status topublic UserStatus saveUserStatus(ConfluenceUser user, String statusText)
UserStatusManager
saveUserStatus
in interface UserStatusManager
user
- The user to save the status againststatusText
- Text for the new statuspublic UserStatus saveUserStatus(ConfluenceUser user, 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 topublic UserStatus saveUserStatus(UserStatus status)
UserStatusManager
saveUserStatus
in interface UserStatusManager
status
- the status to be savedpublic UserStatus getUserStatus(long id)
UserStatusManager
getUserStatus
in interface UserStatusManager
id
- the id of the user status objectpublic 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 objectCopyright © 2003–2015 Atlassian. All rights reserved.