@Deprecated @ParametersAreNonnullByDefault public class DefaultUserStatusManager extends DefaultContentEntityManager implements UserStatusManager
ITERATE_ALL
Constructor and Description |
---|
DefaultUserStatusManager(UserStatusDao userStatusDao,
LinkManager linkManager,
ConfluenceIndexer indexer,
LabelManager labelManager,
AttachmentManager attachmentManager,
HibernateSessionManager hibernateSessionManager,
com.google.common.base.Supplier<XhtmlContent> xhtmlContent,
com.atlassian.event.api.EventPublisher eventPublisher,
NotificationManager notificationManager,
RelationManager relationManager)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCurrentUserStatus(String username)
Deprecated.
Clears the current status of the specified user
|
void |
clearCurrentUserStatus(com.atlassian.user.User user)
Deprecated.
Clears the current status of the specified user
|
UserStatus |
getUserStatus(long id)
Deprecated.
Retrieve the user status for the given status id
|
UserStatus |
getUserStatus(String username)
Deprecated.
Retrieve the current user status for the given user
|
UserStatus |
getUserStatus(com.atlassian.user.User user)
Deprecated.
Retrieve the current user status for the given user
|
int |
getUserStatusCount(String username)
Deprecated.
Returns the total number of statuses set against the specified user
|
int |
getUserStatusCount(com.atlassian.user.User user)
Deprecated.
Returns the total number of statuses set against the specified user
|
List<UserStatus> |
getUserStatusList(String username)
Deprecated.
Retrieve a list of user status items for the specified user
|
List<UserStatus> |
getUserStatusList(String username,
int maxResults)
Deprecated.
Retrieve a list of user status items for the specified user
|
List<UserStatus> |
getUserStatusList(com.atlassian.user.User user)
Deprecated.
Retrieve a list of user status items for the specified user
|
List<UserStatus> |
getUserStatusList(com.atlassian.user.User user,
int maxResults)
Deprecated.
Retrieve a list of user status items for the specified user
|
protected void |
publishCreateEvent(ContentEntityObject obj)
Deprecated.
This method publishes
*CreateEvents s. |
protected void |
publishCreateEvent(ContentEntityObject obj,
SaveContext saveContext)
Deprecated.
|
protected void |
publishRemoveEvent(ContentEntityObject obj)
Deprecated.
This method publishes
*RemoveEvent s. |
protected void |
publishUpdateEvent(ContentEntityObject obj,
ContentEntityObject origObj,
SaveContext saveContext)
Deprecated.
This method publishes
*UpdateEvent s. |
void |
removeAllStatusForUser(com.atlassian.user.User user)
Deprecated.
Deletes all user status' for the specified user
|
UserStatus |
saveUserStatus(ConfluenceUser user,
String statusText)
Deprecated.
Saves a new status.
|
UserStatus |
saveUserStatus(ConfluenceUser user,
String statusText,
Space targetSpace)
Deprecated.
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)
Deprecated.
Saves a status
|
createDraft, findDraftFor, findDraftFor, findUnpublishedContentWithUserContributions, getAttachmentManager, getBodyContentForRevert, getById, getById, getById, getByIds, getContentEntityObjectDao, getEventPublisher, getHibernateSessionManager, getIndexer, getLabelManager, getLinkManager, getNextVersion, getNotificationManager, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPageDao, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, setAttachmentManager, suppressNotificationsOnEventIfRequired, updateContentLinkingTo, updateContentLinkingTo, updateOutgoingLinksInContent, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo, updateSingleContentLinkinTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getById, getNextVersion, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo
public DefaultUserStatusManager(UserStatusDao userStatusDao, LinkManager linkManager, ConfluenceIndexer indexer, LabelManager labelManager, AttachmentManager attachmentManager, HibernateSessionManager hibernateSessionManager, com.google.common.base.Supplier<XhtmlContent> xhtmlContent, com.atlassian.event.api.EventPublisher eventPublisher, NotificationManager notificationManager, RelationManager relationManager)
@Nonnull public List<UserStatus> getUserStatusList(String username)
UserStatusManager
getUserStatusList
in interface UserStatusManager
username
- the username of the user to find status updates for@Nonnull public List<UserStatus> getUserStatusList(com.atlassian.user.User user)
UserStatusManager
getUserStatusList
in interface UserStatusManager
user
- the user to find status updates for@Nonnull public 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 return@Nonnull public 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@Nullable public UserStatus getUserStatus(String username)
UserStatusManager
getUserStatus
in interface UserStatusManager
username
- the username of the user to get the status for@Nullable public 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@Nonnull @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 @Nonnull public UserStatus saveUserStatus(String username, String statusText, @Nullable 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@Nonnull public UserStatus saveUserStatus(ConfluenceUser user, String statusText)
UserStatusManager
saveUserStatus
in interface UserStatusManager
user
- The user to save the status againststatusText
- Text for the new status@Nonnull public UserStatus saveUserStatus(ConfluenceUser user, String statusText, @Nullable 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@Nullable public UserStatus saveUserStatus(@Nullable UserStatus status)
UserStatusManager
saveUserStatus
in interface UserStatusManager
status
- the status to be saved@Nullable public UserStatus getUserStatus(long id)
UserStatusManager
getUserStatus
in interface UserStatusManager
id
- the id of the user status objectpublic void removeAllStatusForUser(@Nullable 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, @Nullable SaveContext saveContext)
publishCreateEvent
in class DefaultContentEntityManager
protected void publishUpdateEvent(ContentEntityObject obj, @Nullable ContentEntityObject origObj, @Nullable 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–2016 Atlassian. All rights reserved.