UserSearchService
instead. Since v7.0.@Deprecated @PublicApi public interface UserPickerSearchService
ApplicationUser
objects based on a partial query stringModifier and Type | Method and Description |
---|---|
boolean |
canPerformAjaxSearch(ApplicationUser user)
Deprecated.
Determines whether the given user could perform AJAX search.
|
boolean |
canPerformAjaxSearch(JiraServiceContext jiraServiceContext)
Deprecated.
Returns true only if UserPicker Ajax search is enabled AND the user in the context has com.atlassian.jira.user.ApplicationUser Browse permission.
|
boolean |
canShowEmailAddresses(JiraServiceContext jiraServiceContext)
Deprecated.
Whether or not the UserPicker Ajax should search or show email addresses
|
List<ApplicationUser> |
findUsers(JiraServiceContext jiraServiceContext,
String query)
Deprecated.
Get Users based on a query string.
|
List<ApplicationUser> |
findUsers(JiraServiceContext jiraServiceContext,
String query,
UserSearchParams userSearchParams)
Deprecated.
Get Users based on a query string.
|
List<ApplicationUser> |
findUsers(String nameQuery,
String emailQuery,
UserSearchParams userSearchParams)
Deprecated.
Get Users based on query strings.
|
List<ApplicationUser> |
findUsers(String query,
UserSearchParams userSearchParams)
Deprecated.
Get Users based on a query string.
|
List<ApplicationUser> |
findUsersAllowEmptyQuery(JiraServiceContext jiraServiceContext,
String query)
Deprecated.
Get Users based on a query string.
|
ApplicationUser |
getUserByName(JiraServiceContext jiraServiceContext,
String query)
Deprecated.
Returns a user by exact username
|
boolean |
userMatches(ApplicationUser user,
UserSearchParams userSearchParams)
Deprecated.
Determine whether a user matches the search criteria specified in the
userSearchParams parameter. |
List<ApplicationUser> findUsers(JiraServiceContext jiraServiceContext, String query)
Matches on start of username, full name and email as well as all the tokenised (on spaces, '.', '@' etc) words Only returns active users.
Results are sorted according to the UserCachingComparator
.
jiraServiceContext
- Jira Service Contextquery
- String to search for.ApplicationUser
objects that match criteria.findUsers(JiraServiceContext, String, UserSearchParams)
ApplicationUser getUserByName(JiraServiceContext jiraServiceContext, String query)
jiraServiceContext
- Jira Service Contextquery
- String to search for.ApplicationUser
object with supplied username.List<ApplicationUser> findUsersAllowEmptyQuery(JiraServiceContext jiraServiceContext, String query)
Matches on start of username, full name and email as well as all the tokenised (on spaces, '.', '@' etc) words This will search even if the query passed is null or empty. Only returns active users.
Results are sorted according to the UserCachingComparator
.
jiraServiceContext
- Jira Service Contextquery
- String to search for.ApplicationUser
objects that match criteria.findUsers(JiraServiceContext, String, UserSearchParams)
List<ApplicationUser> findUsers(JiraServiceContext jiraServiceContext, String query, UserSearchParams userSearchParams)
Matches on start of username, full name and email as well as all the tokenised (on spaces, '.', '@' etc) words
Results are sorted according to the UserCachingComparator
.
If the users in the database change during this call results might not be consistent if a post processing filter and a result limit is used.
jiraServiceContext
- Jira Service Contextquery
- String to search for.userSearchParams
- Additional search parametersApplicationUser
objects that match criteria.List<ApplicationUser> findUsers(String query, UserSearchParams userSearchParams)
Matches on start of username, full name and email as well as all the tokenised (on spaces, '.', '@' etc) words
Matches email only when userSearchParams.canMatchEmail() is true.
Results are sorted according to the userSearchParams.comparator. If userSearchParams.comparator is null, no sorting will be performed.
If the users in the database change during this call results might not be consistent if a post processing filter and a result limit is used.
query
- the query to search username, display name and email addressuserSearchParams
- the search criteriaList<ApplicationUser> findUsers(String nameQuery, String emailQuery, UserSearchParams userSearchParams)
Matches nameQuery on start of username, full name and email as well as all the tokenised (on spaces, '.', '@' etc) words
Matches emailQuery on start of email, as well as the tokenised words. Email matching is performed only when userSearchParams.canMatchEmail() is true.
Results are sorted according to the userSearchParams.comparator. If userSearchParams.comparator is null, no sorting will be performed.
If the users in the database change during this call results might not be consistent if a post processing filter and a result limit is used.
nameQuery
- the query to search username and display name.emailQuery
- the query to search email address, subject to userSearchParams.canMatchEmail.userSearchParams
- the search criteriaboolean userMatches(ApplicationUser user, UserSearchParams userSearchParams)
userSearchParams
parameter.
allowEmptyQuery in userSearchParams
is ignored.
user
- the user to be matcheduserSearchParams
- the search criteriaboolean canPerformAjaxSearch(JiraServiceContext jiraServiceContext)
jiraServiceContext
- Jira Service Contextboolean canPerformAjaxSearch(ApplicationUser user)
boolean canShowEmailAddresses(JiraServiceContext jiraServiceContext)
jiraServiceContext
- Jira Service ContextCopyright © 2002-2019 Atlassian. All Rights Reserved.