java.lang.Object | |
↳ | com.atlassian.jira.bc.user.search.DefaultUserPickerSearchService |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a DefaultUserPickerSearchService
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines whether the given user could perform AJAX search.
| |||||||||||
Returns true only if UserPicker Ajax search is enabled AND the user in the context has User Browse permission.
| |||||||||||
Whether or not the UserPicker Ajax should search or show email addresses
| |||||||||||
Get Users based on query strings.
| |||||||||||
Get Users based on a query string.
| |||||||||||
Get Users based on a query string.
| |||||||||||
Get Users based on a query string.
| |||||||||||
Get Users based on a query string.
| |||||||||||
Returns a user by exact username
| |||||||||||
Determine whether a user matches the search criteria specified in the
userSearchParams parameter. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.bc.user.search.UserPickerSearchService
|
Constructs a DefaultUserPickerSearchService
userManager | the UserUtil needed |
---|---|
applicationProperties | the ApplicationProperties |
permissionManager | needed to resolve permissions |
Determines whether the given user could perform AJAX search.
Returns true only if UserPicker Ajax search is enabled AND the user in the context has User Browse permission.
jiraServiceContext | Jira Service Context |
---|
Whether or not the UserPicker Ajax should search or show email addresses
jiraServiceContext | Jira Service Context |
---|
Get Users based on query strings.
Matches nameQuery on the start of username and each word in Full Name & email.
Matches emailQuery on start of email. 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.
nameQuery | the query to search username and display name. |
---|---|
emailQuery | the query to search email address, subject to userSearchParams.canMatchEmail. |
userSearchParams | the search criteria |
Get Users based on a query string.
Matches on the start of username and each word in Full Name & email.
Results are sorted according to the UserCachingComparator
.
jiraServiceContext | Jira Service Context |
---|---|
query | String to search for. |
userSearchParams | Additional search parameters |
User
objects that match criteria.Get Users based on a query string.
Matches on the start of username and each word in Full Name & email.
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.
query | the query to search username, display name and email address |
---|---|
userSearchParams | the search criteria |
Get Users based on a query string.
Matches on the start of username and each word in Full Name & email. Only returns active users.
Results are sorted according to the UserCachingComparator
.
jiraServiceContext | Jira Service Context |
---|---|
query | String to search for. |
User
objects that match criteria.Get Users based on a query string.
Matches on the start of username and each word in Full Name & email. 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 Context |
---|---|
query | String to search for. |
User
objects that match criteria.Returns a user by exact username
jiraServiceContext | Jira Service Context |
---|---|
query | String to search for. |
User
object with supplied username.
Determine whether a user matches the search criteria specified in the userSearchParams
parameter.
allowEmptyQuery in userSearchParams
is ignored.
user | the user to be matched |
---|---|
userSearchParams | the search criteria |