public class SortedMentionableUserSearcher extends Object implements MentionableUserSearcher
| Constructor and Description |
|---|
SortedMentionableUserSearcher(I18nHelper i18n,
GlobalPermissionManager globalPermissionManager,
CommentService commentService,
WatcherService watcherService,
VoteService voteService,
UserSearchService userSearchService,
DCFeatureLicenseChecker licenseChecker) |
| 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
|
List<UserIssueRelevance> |
findRelatedUsersToMention(String query,
Issue issue,
ApplicationUser requestingUser,
int maxResults,
java.util.function.Supplier<List<ApplicationUser>> userSupplier)
Calculates a list of users that are relevant to the issue so that they can be mentioned
|
public SortedMentionableUserSearcher(I18nHelper i18n, GlobalPermissionManager globalPermissionManager, CommentService commentService, WatcherService watcherService, VoteService voteService, UserSearchService userSearchService, DCFeatureLicenseChecker licenseChecker)
public List<UserIssueRelevance> findRelatedUsersToMention(String query, Issue issue, ApplicationUser requestingUser, int maxResults)
MentionableUserSearcherfindRelatedUsersToMention in interface MentionableUserSearcherquery - 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.public List<UserIssueRelevance> findRelatedUsersToMention(@Nonnull String query, Issue issue, ApplicationUser requestingUser, int maxResults, java.util.function.Supplier<List<ApplicationUser>> userSupplier)
MentionableUserSearcherfindRelatedUsersToMention in interface MentionableUserSearcherquery - 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.userSupplier - the supplier providing additional users if there will be not enough relevant onesCopyright © 2002-2024 Atlassian. All Rights Reserved.