com.atlassian.jira.issue.watchers
Class DefaultWatchedIssuesAccessor

java.lang.Object
  extended by com.atlassian.jira.issue.watchers.DefaultWatchedIssuesAccessor
All Implemented Interfaces:
WatchedIssuesAccessor

public class DefaultWatchedIssuesAccessor
extends Object
implements WatchedIssuesAccessor


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.watchers.WatchedIssuesAccessor
WatchedIssuesAccessor.Security
 
Constructor Summary
DefaultWatchedIssuesAccessor(WatcherManager watcherManager, SearchProvider searchProvider, SearchProviderFactory factory)
           
 
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.
 Iterable<Long> getWatchedIssueIds(User watcher, User searcher, WatchedIssuesAccessor.Security security)
          Get the issues a particular user is watching.
 boolean isWatchingEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWatchedIssuesAccessor

public DefaultWatchedIssuesAccessor(@NotNull
                                    WatcherManager watcherManager,
                                    @NotNull
                                    SearchProvider searchProvider,
                                    @NotNull
                                    SearchProviderFactory factory)
Method Detail

getWatchedIssueIds

public Iterable<Long> getWatchedIssueIds(com.atlassian.crowd.embedded.api.User watcher,
                                         com.atlassian.crowd.embedded.api.User searcher,
                                         WatchedIssuesAccessor.Security security)
Description copied from interface: WatchedIssuesAccessor
Get the issues a particular user is watching.

Specified by:
getWatchedIssueIds in interface WatchedIssuesAccessor
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.

getWatchedIssueIds

public Iterable<Long> getWatchedIssueIds(User watcher,
                                         User searcher,
                                         WatchedIssuesAccessor.Security security)
Description copied from interface: WatchedIssuesAccessor
Get the issues a particular user is watching.

Specified by:
getWatchedIssueIds in interface WatchedIssuesAccessor
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.

isWatchingEnabled

public boolean isWatchingEnabled()
Specified by:
isWatchingEnabled in interface WatchedIssuesAccessor


Copyright © 2002-2011 Atlassian. All Rights Reserved.