public class

AbstractWatcherRequest

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.watcher.AbstractWatcherRequest
Known Direct Subclasses

Class Overview

A base class for request objects used to interact with the WatcherService when referring to a specific watcher.

Summary

Nested Classes
class AbstractWatcherRequest.AbstractBuilder<B, R>  
Protected Constructors
AbstractWatcherRequest(AbstractBuilder<?, ?> builder)
Public Methods
@Nonnull Optional<ApplicationUser> getUser()
If provided, determines which user is the subject of this request
@Nonnull Watchable getWatchable()
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected AbstractWatcherRequest (AbstractBuilder<?, ?> builder)

Public Methods

@Nonnull public Optional<ApplicationUser> getUser ()

If provided, determines which user is the subject of this request

Returns
  • the user whose watch status is to be updated.

@Nonnull public Watchable getWatchable ()