public class WatchServiceImpl extends Object implements WatchService
| Modifier and Type | Class and Description |
|---|---|
class |
WatchServiceImpl.ValidatorImpl |
WatchService.Validator| Constructor and Description |
|---|
WatchServiceImpl(UserAccessor userAccessor,
PermissionManager permissionManager,
NotificationManager notificationManager,
SpaceManager spaceManager,
SpaceService spaceService,
ContentEntityManager contentEntityManager,
ContentService contentService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWatchingContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId) |
boolean |
isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey) |
void |
unwatchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
Remove a watch to the given
content |
void |
unwatchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
Remove a watch to the given
space |
WatchService.Validator |
validator()
Get the validator of the
WatchService. |
ContentWatch |
watchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
Create a watch to the given
content |
SpaceWatch |
watchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
Create a watch to the given
space |
public WatchServiceImpl(UserAccessor userAccessor, PermissionManager permissionManager, NotificationManager notificationManager, SpaceManager spaceManager, SpaceService spaceService, ContentEntityManager contentEntityManager, ContentService contentService)
@Nonnull public final SpaceWatch watchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
WatchServicespacewatchSpace in interface WatchServiceuserKey - the key of the user to add as a watcherspaceKey - the key of the space to add the watch forpublic final void unwatchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
WatchServicespaceunwatchSpace in interface WatchServiceuserKey - the key of the user to add as a watcherspaceKey - the key of the space to remove the watch forpublic final boolean isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
isWatchingSpace in interface WatchServiceuserKey - the watcherspaceKey - the key of the space to checkspace or notpublic final ContentWatch watchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
WatchServicecontentwatchContent in interface WatchServiceuserKey - the key of the user to add as a watchercontentId - the id of the content to add the watch forpublic final void unwatchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
WatchServicecontentunwatchContent in interface WatchServiceuserKey - the key of the user to add as a watchercontentId - the id of the content to remove the watch forpublic final boolean isWatchingContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
isWatchingContent in interface WatchServiceuserKey - the watchercontentId - the id of the content to checkcontent or notpublic WatchService.Validator validator()
WatchServiceWatchService.validator in interface WatchServiceCopyright © 2003–2017 Atlassian. All rights reserved.