public interface UserPickerResourceHelper
Modifier and Type | Method and Description |
---|---|
List<ApplicationUser> |
findActiveUsers(String searchString)
Finds active users, throws exception if search string is null
|
List<ApplicationUser> |
findTopAssignableUsers(String searchString,
UserSearchIssueContext issueContext,
Integer maxResults,
boolean ignorePermissionCheck)
Finds top
maxResults assignable users |
List<ApplicationUser> |
findUsers(String searchString,
Boolean includeActive,
Boolean includeInactive)
Finds users, throws exception if search string is null
|
List<ApplicationUser> |
findUsers(String searchString,
Boolean includeActive,
Boolean includeInactive,
boolean allowEmptySearchString)
Finds users, throws exception if search string is null
|
List<ApplicationUser> |
findUsers(String searchString,
Boolean includeActive,
Boolean includeInactive,
boolean allowEmptySearchString,
com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.User> filter)
Finds users, throws exception if search string is null
|
List<ApplicationUser> |
findUsers(String searchString,
Boolean includeActive,
Boolean includeInactive,
boolean allowEmptySearchString,
com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.User> filter,
Integer maxResults)
Finds users, throws exception if search string is null
|
List<ApplicationUser> |
findUsers(String searchString,
UserSearchParams userSearchParams)
Finds users, throws exception if search string is null
|
UserPickerResultsBean |
findUsersAsBean(String query,
Integer maxResults,
Boolean showAvatar,
List<String> excludeUsers)
Returns a list of users matching query with highlighting.
|
UserPickerResultsBean |
findUsersAsBean(String query,
Integer maxResults,
Boolean showAvatar,
List<String> excludeUsers,
UserSearchParams userSearchParams)
Returns a list of users matching query with highlighting.
|
List<ApplicationUser> |
findUsersWithBrowsePermission(String searchString,
UserSearchIssueContext issueContext,
Integer maxResults,
boolean ignorePermissionCheck)
Finds users with browse permission, throws exception if search string is null
|
ApplicationUser |
getUserByName(String userName)
Returns a user if supplied userName is exact match to their username.
|
List<ApplicationUser> |
limitUserSearch(Integer startAt,
Integer maxResults,
Iterable<ApplicationUser> users,
Iterable<String> excludeUsers) |
UserPickerResultsBean findUsersAsBean(String query, Integer maxResults, Boolean showAvatar, List<String> excludeUsers)
query
- A string used to search username, Name or e-mail address. Empty query is not allowed.maxResults
- the maximum number of users to return (defaults to 50). The maximum allowed value is 1000.
If you specify a value that is higher than this number, your search results will be truncated.showAvatar
- get avatar urlexcludeUsers
- exclude these users from search resultsUserPickerResultsBean findUsersAsBean(String query, Integer maxResults, Boolean showAvatar, List<String> excludeUsers, UserSearchParams userSearchParams)
query
- A string used to search username, Name or e-mail address. Empty query is not allowed.maxResults
- the maximum number of users to return (defaults to 50). The maximum allowed value is 1000.
If you specify a value that is higher than this number, your search results will be truncated.showAvatar
- get avatar urlexcludeUsers
- exclude these users from search resultsuserSearchParams
- additional search parameters. allowEmptyQuery is ignored, always treated as false.List<ApplicationUser> limitUserSearch(Integer startAt, Integer maxResults, Iterable<ApplicationUser> users, @Nullable Iterable<String> excludeUsers)
startAt
- start the search at this indexmaxResults
- max resultsusers
- search results to limitexcludeUsers
- exclude these users from search resultsList<ApplicationUser> findActiveUsers(String searchString)
searchString
- user queryList<ApplicationUser> findUsers(String searchString, Boolean includeActive, Boolean includeInactive)
searchString
- user query, no users returned if emptyincludeActive
- whether to include active users (null implies true)includeInactive
- whether to include inactive users (null implies false)List<ApplicationUser> findUsers(String searchString, UserSearchParams userSearchParams)
searchString
- user queryuserSearchParams
- search parameters, including "includeActive", "includeInactive", etc. allowEmptyQuery is ignored, always treated as false.List<ApplicationUser> findUsers(String searchString, Boolean includeActive, Boolean includeInactive, boolean allowEmptySearchString)
searchString
- user queryallowEmptySearchString
- controls whether users are returned if searchString is emptyincludeActive
- whether to include active users (null implies true)includeInactive
- whether to include inactive users (null implies false)List<ApplicationUser> findUsers(String searchString, Boolean includeActive, Boolean includeInactive, boolean allowEmptySearchString, com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.User> filter)
searchString
- user queryallowEmptySearchString
- controls whether users are returned if searchString is emptyincludeActive
- whether to include active users (null implies true)includeInactive
- whether to include inactive users (null implies false)filter
- filter to post-process user results with. May be null for no filtering.List<ApplicationUser> findUsers(String searchString, Boolean includeActive, Boolean includeInactive, boolean allowEmptySearchString, com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.User> filter, Integer maxResults)
searchString
- user queryallowEmptySearchString
- controls whether users are returned if searchString is emptyincludeActive
- whether to include active users (null implies true)includeInactive
- whether to include inactive users (null implies false)filter
- filter to post-process user results with. May be null for no filtering.maxResults
- the result limit, use null for no limit.List<ApplicationUser> findUsersWithBrowsePermission(String searchString, UserSearchIssueContext issueContext, Integer maxResults, boolean ignorePermissionCheck)
searchString
- user queryissueContext
- context for issuemaxResults
- the result limit, use null for no limit.ignorePermissionCheck
- controls if user making call must have Browse User permissionList<ApplicationUser> findTopAssignableUsers(String searchString, UserSearchIssueContext issueContext, Integer maxResults, boolean ignorePermissionCheck)
maxResults
assignable userssearchString
- user queryissueContext
- context for issuemaxResults
- the result limit, use null for no limitignorePermissionCheck
- controls if user making call must have Browse User permissionApplicationUser getUserByName(String userName)
userName
- The username queryCopyright © 2002-2023 Atlassian. All Rights Reserved.