public class WatchServiceImpl.ValidatorImpl extends Object implements WatchService.Validator
Constructor and Description |
---|
ValidatorImpl() |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
validateWatchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
Validate that the user can watch a Content.
|
ValidationResult |
validateWatchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
Validate that the user can see a Space.
|
public final ValidationResult validateWatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
WatchService.Validator
validateWatchSpace
in interface WatchService.Validator
userKey
- the user to add or remove as a watcherspaceKey
- the space to be watchedpublic final ValidationResult validateWatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
WatchService.Validator
validateWatchContent
in interface WatchService.Validator
userKey
- the key of the user to add as a watchercontentId
- the content to be watchedCopyright © 2003–2017 Atlassian. All rights reserved.