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
 java.lang.Iterable<java.lang.Long> getWatchedIssueIds(com.opensymphony.user.User watcher, com.opensymphony.user.User searcher, WatchedIssuesAccessor.Security security)
          Get the issues a particular user is watching.
 boolean isWatchingEnabled()
           
 

Method Detail

isWatchingEnabled

boolean isWatchingEnabled()

getWatchedIssueIds

@NotNull
java.lang.Iterable<java.lang.Long> getWatchedIssueIds(@NotNull
                                                              com.opensymphony.user.User watcher,
                                                              @NotNull
                                                              com.opensymphony.user.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-2010 Atlassian. All Rights Reserved.