Interface IssueWatcherAccessor

All Known Implementing Classes:
DefaultIssueWatcherAccessor

public interface IssueWatcherAccessor
Get all watchers for an issue.
Since:
v4.1
  • Method Details

    • isWatchingEnabled

      boolean isWatchingEnabled()
    • getWatcherNames

      @Nonnull Iterable<String> getWatcherNames(@Nonnull Issue issue)
      Deprecated.
      Convenience function that simply returns the User names.
      Parameters:
      issue - the issue to get the watchers for
      Returns:
      an Iterable of the user names, empty if no watchers
    • getWatcherKeys

      Collection<String> getWatcherKeys(Issue issue)
    • getWatchers

      @Nonnull Iterable<ApplicationUser> getWatchers(@Nonnull Issue issue, @Nonnull Locale displayLocale)
      Convenience function that simply returns the User objects.
      Parameters:
      issue - the issue to get the watchers for
      displayLocale - for sorting.
      Returns:
      an Iterable of the users, empty if no watchers
      Since:
      v4.3