Class WatchServiceImpl.ValidatorImpl

    • Constructor Detail

      • ValidatorImpl

        public ValidatorImpl()
        Deprecated.
    • Method Detail

      • validateWatchSpace

        public final ValidationResult validateWatchSpace​(com.atlassian.sal.api.user.UserKey userKey,
                                                         String spaceKey)
        Deprecated.
        Description copied from interface: WatchService.Validator
        Validate that the user can see a Space.
        Specified by:
        validateWatchSpace in interface WatchService.Validator
        Parameters:
        userKey - the user to add or remove as a watcher
        spaceKey - the space to be watched
        Returns:
        an immutable Validation result.
      • validateWatchContent

        public final ValidationResult validateWatchContent​(com.atlassian.sal.api.user.UserKey userKey,
                                                           ContentId contentId)
        Deprecated.
        Description copied from interface: WatchService.Validator
        Validate that the user can watch a Content.
        Specified by:
        validateWatchContent in interface WatchService.Validator
        Parameters:
        userKey - the key of the user to add as a watcher
        contentId - the content to be watched
        Returns:
        an immutable Validation result.