public static interface WatchService.Validator
Modifier and Type | Method and Description |
---|---|
ValidationResult |
validateWatchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId content)
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.
|
ValidationResult validateWatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
userKey
- the user to add or remove as a watcherspaceKey
- the space to be watchedValidationResult validateWatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId content)
userKey
- the key of the user to add as a watchercontent
- the content to be watchedCopyright © 2003–2018 Atlassian. All rights reserved.