Class DefaultWatchedIssuesAccessor
java.lang.Object
com.atlassian.jira.issue.watchers.DefaultWatchedIssuesAccessor
- All Implemented Interfaces:
WatchedIssuesAccessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.watchers.WatchedIssuesAccessor
WatchedIssuesAccessor.Security -
Constructor Summary
ConstructorsConstructorDescriptionDefaultWatchedIssuesAccessor(WatcherManager watcherManager, IssueDocumentSearchService issueDocumentSearchService) -
Method Summary
Modifier and TypeMethodDescriptiongetWatchedIssueIds(ApplicationUser watcher, ApplicationUser searcher, WatchedIssuesAccessor.Security security) Get the issues a particular user is watching.boolean
-
Constructor Details
-
DefaultWatchedIssuesAccessor
public DefaultWatchedIssuesAccessor(@Nonnull WatcherManager watcherManager, @Nonnull IssueDocumentSearchService issueDocumentSearchService)
-
-
Method Details
-
getWatchedIssueIds
public Iterable<Long> getWatchedIssueIds(ApplicationUser watcher, ApplicationUser searcher, WatchedIssuesAccessor.Security security) Description copied from interface:WatchedIssuesAccessorGet the issues a particular user is watching.- Specified by:
getWatchedIssueIdsin interfaceWatchedIssuesAccessor- 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:
isWatchingEnabledin interfaceWatchedIssuesAccessor
-