Interface WatchService.Validator

  • All Known Implementing Classes:
    WatchServiceImpl.ValidatorImpl
    Enclosing interface:
    WatchService

    @Deprecated
    public static interface WatchService.Validator
    Deprecated.
    since 7.9
    Provides methods for validating the permissions to watch / unwatch space / content / labels.
    • 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 watcher
        spaceKey - 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 watcher
        content - the content to be watched
        Returns:
        an immutable Validation result.