Class WatchServiceImpl.ValidatorImpl

java.lang.Object
com.atlassian.confluence.api.impl.service.watch.WatchServiceImpl.ValidatorImpl
All Implemented Interfaces:
WatchService.Validator
Enclosing class:
WatchServiceImpl

public class WatchServiceImpl.ValidatorImpl extends Object implements WatchService.Validator
  • Constructor Details

    • ValidatorImpl

      public ValidatorImpl()
  • Method Details

    • validateWatchSpace

      public final ValidationResult validateWatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
      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)
      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.
    • validateFindUsersWatchingSpacePaginated

      public ValidationResult validateFindUsersWatchingSpacePaginated(String spaceKey)
      Description copied from interface: WatchService.Validator
      Validate that the requesting User can view the list of Users watching the given Space identified by spaceKey. Only a Confluence Administrator or Space Administrator can perform this action.
      Specified by:
      validateFindUsersWatchingSpacePaginated in interface WatchService.Validator
      Parameters:
      spaceKey - the key of the Space the User is attempting to view.
      Returns:
      an immutable Validation result.
    • validateFindUsersWatchingContentPaginated

      public ValidationResult validateFindUsersWatchingContentPaginated(ContentId contentId)
      Description copied from interface: WatchService.Validator
      Validate that the requesting User can view the list of Users watching the given Content identified by contentId. Only a Confluence Administrator or Space Administrator can perform this action.
      Specified by:
      validateFindUsersWatchingContentPaginated in interface WatchService.Validator
      Parameters:
      contentId - the id of the Content the User is attempting to view.
      Returns:
      an immutable Validation result.