public class UserSearcherHelperImpl extends Object implements UserSearcherHelper
Constructor and Description |
---|
UserSearcherHelperImpl(GroupManager groupManager,
PermissionManager permissionManager,
UserManager userManager,
UserHistoryManager userHistoryManager,
UserSearchService userSearchService) |
Modifier and Type | Method and Description |
---|---|
void |
addGroupSuggestionParams(ApplicationUser user,
Map<String,Object> params) |
void |
addUserGroupSuggestionParams(ApplicationUser user,
List<String> selectedUsers,
Map<String,Object> params) |
void |
addUserGroupSuggestionParams(ApplicationUser user,
List<String> selectedUsers,
UserSearchParams searchParams,
Map<String,Object> params)
add user and group suggestions based on search parameters.
|
void |
addUserSuggestionParams(ApplicationUser user,
List<String> selectedUsers,
Map<String,Object> params) |
boolean |
hasUserPickingPermission(ApplicationUser user)
Determine whether a user has permission to pick users.
|
public UserSearcherHelperImpl(GroupManager groupManager, PermissionManager permissionManager, UserManager userManager, UserHistoryManager userHistoryManager, UserSearchService userSearchService)
public void addUserSuggestionParams(ApplicationUser user, List<String> selectedUsers, Map<String,Object> params)
addUserSuggestionParams
in interface UserSearcherHelper
public void addUserGroupSuggestionParams(ApplicationUser user, List<String> selectedUsers, Map<String,Object> params)
addUserGroupSuggestionParams
in interface UserSearcherHelper
public void addUserGroupSuggestionParams(ApplicationUser user, List<String> selectedUsers, UserSearchParams searchParams, Map<String,Object> params)
UserSearcherHelper
params
parameter in-place.addUserGroupSuggestionParams
in interface UserSearcherHelper
user
- the user requesting for the suggestionsselectedUsers
- a list of recently selected users, which could be included into the suggested users with higher prioritysearchParams
- additional search parameters for groups and roles based restrictions.params
- the map to hold the parameterspublic void addGroupSuggestionParams(ApplicationUser user, Map<String,Object> params)
addGroupSuggestionParams
in interface UserSearcherHelper
public boolean hasUserPickingPermission(ApplicationUser user)
UserSearcherHelper
hasUserPickingPermission
in interface UserSearcherHelper
Copyright © 2002-2019 Atlassian. All Rights Reserved.