com.atlassian.jira.issue.watchers
Interface WatchedIssuesAccessor

All Known Implementing Classes:
DefaultWatchedIssuesAccessor

public interface WatchedIssuesAccessor

Get all issue ids someone is watching.

Since:
v4.1

Nested Class Summary
static class WatchedIssuesAccessor.Security
           
 
Method Summary
 Iterable<Long> getWatchedIssueIds(com.atlassian.crowd.embedded.api.User watcher, com.atlassian.crowd.embedded.api.User searcher, WatchedIssuesAccessor.Security security)
          Get the issues a particular user is watching.
 boolean isWatchingEnabled()
           
 

Method Detail

isWatchingEnabled

boolean isWatchingEnabled()

getWatchedIssueIds

@NotNull
Iterable<Long> getWatchedIssueIds(@NotNull
                                          com.atlassian.crowd.embedded.api.User watcher,
                                          @NotNull
                                          com.atlassian.crowd.embedded.api.User searcher,
                                          @NotNull
                                          WatchedIssuesAccessor.Security security)
Get the issues a particular user is watching.

Parameters:
watcher - the user whose watches we are searching for.
searcher - the user who is searching for the watched issues.
security - whether to respect or override security.
Returns:
the ids of the found issues.


Copyright © 2002-2013 Atlassian. All Rights Reserved.