|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.user.search.DefaultUserPickerSearchService
public class DefaultUserPickerSearchService
Constructor Summary | |
---|---|
DefaultUserPickerSearchService(UserManager userManager,
ApplicationProperties applicationProperties,
PermissionManager permissionManager)
Constructs a DefaultUserPickerSearchService |
Method Summary | |
---|---|
boolean |
canPerformAjaxSearch(JiraServiceContext jiraServiceContext)
Returns true only if UserPicker Ajax search is enabled AND the user in the context has User Browse permission. |
boolean |
canPerformAjaxSearch(com.atlassian.crowd.embedded.api.User user)
|
boolean |
canShowEmailAddresses(JiraServiceContext jiraServiceContext)
Whether or not the UserPicker Ajax should search or show email addresses |
List<com.atlassian.crowd.embedded.api.User> |
findUsers(JiraServiceContext jiraServiceContext,
String query)
Get Users based on a query string. |
List<com.atlassian.crowd.embedded.api.User> |
findUsersAllowEmptyQuery(JiraServiceContext jiraServiceContext,
String query)
Get Users based on a query string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUserPickerSearchService(UserManager userManager, ApplicationProperties applicationProperties, PermissionManager permissionManager)
userManager
- the UserUtil neededapplicationProperties
- the ApplicationPropertiespermissionManager
- needed to resolve permissionsMethod Detail |
---|
public List<com.atlassian.crowd.embedded.api.User> findUsers(JiraServiceContext jiraServiceContext, String query)
UserPickerSearchService
Matches on the start of username, Each word in Full Name & email.
Results are sorted according to the UserBestNameComparator
.
findUsers
in interface UserPickerSearchService
jiraServiceContext
- Jira Service Contextquery
- String to search for.
User
objects that match criteria.public List<com.atlassian.crowd.embedded.api.User> findUsersAllowEmptyQuery(JiraServiceContext jiraServiceContext, String query)
UserPickerSearchService
Matches on the start of username, Each word in Full Name & email. This will search even if the query passed is null or empty.
Results are sorted according to the UserBestNameComparator
.
findUsersAllowEmptyQuery
in interface UserPickerSearchService
jiraServiceContext
- Jira Service Contextquery
- String to search for.
User
objects that match criteria.public boolean canShowEmailAddresses(JiraServiceContext jiraServiceContext)
UserPickerSearchService
canShowEmailAddresses
in interface UserPickerSearchService
jiraServiceContext
- Jira Service Context
UserPickerSearchService.canShowEmailAddresses(com.atlassian.jira.bc.JiraServiceContext)
public boolean canPerformAjaxSearch(JiraServiceContext jiraServiceContext)
UserPickerSearchService
canPerformAjaxSearch
in interface UserPickerSearchService
jiraServiceContext
- Jira Service Context
public boolean canPerformAjaxSearch(com.atlassian.crowd.embedded.api.User user)
canPerformAjaxSearch
in interface UserPickerSearchService
UserPickerSearchService.canPerformAjaxSearch(com.atlassian.jira.bc.JiraServiceContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |