public class SortedMentionableUserSearcher extends Object implements MentionableUserSearcher
Constructor and Description |
---|
SortedMentionableUserSearcher(I18nHelper i18n,
PermissionManager permissionManager,
CommentService commentService,
WatcherService watcherService,
VoteService voteService,
UserSearchService userSearchService) |
Modifier and Type | Method and Description |
---|---|
List<UserIssueRelevance> |
findRelatedUsersToMention(String query,
Issue issue,
ApplicationUser requestingUser,
int maxResults)
Calculates a list of users that are relevant to the issue so that they can be mentioned
|
public SortedMentionableUserSearcher(I18nHelper i18n, PermissionManager permissionManager, CommentService commentService, WatcherService watcherService, VoteService voteService, UserSearchService userSearchService)
public List<UserIssueRelevance> findRelatedUsersToMention(String query, Issue issue, ApplicationUser requestingUser, int maxResults)
MentionableUserSearcher
findRelatedUsersToMention
in interface MentionableUserSearcher
query
- the filter string to match the user, or role, againstissue
- the issue we are looking for users to mention on (to determine relevance)requestingUser
- what user is making the request, for authorisationmaxResults
- the maximum number of results that will be returned. We assume it has been validated before reaching here.Copyright © 2002-2021 Atlassian. All Rights Reserved.