Interface WatchService.Validator
-
- All Known Implementing Classes:
WatchServiceImpl.ValidatorImpl
- Enclosing interface:
- WatchService
@Deprecated public static interface WatchService.Validator
Deprecated.since 7.9Provides methods for validating the permissions to watch / unwatch space / content / labels.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ValidationResult
validateWatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId content)
Deprecated.Validate that the user can watch a Content.ValidationResult
validateWatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
Deprecated.Validate that the user can see a Space.
-
-
-
Method Detail
-
validateWatchSpace
ValidationResult validateWatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
Deprecated.Validate that the user can see a Space.- Parameters:
userKey
- the user to add or remove as a watcherspaceKey
- the space to be watched- Returns:
- an immutable Validation result.
-
validateWatchContent
ValidationResult validateWatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId content)
Deprecated.Validate that the user can watch a Content.- Parameters:
userKey
- the key of the user to add as a watchercontent
- the content to be watched- Returns:
- an immutable Validation result.
-
-