public class

GroupPickerSearchServiceImpl

extends Object
implements GroupPickerSearchService
java.lang.Object
   ↳ com.atlassian.jira.bc.group.search.GroupPickerSearchServiceImpl

Class Overview

UserManager based implementation of GroupPickerSearchService

Summary

Public Constructors
GroupPickerSearchServiceImpl(UserManager userManager)
Public Methods
List<Group> findGroups(String query)
Get groups based on a query string.
Group getGroupByName(String groupName)
Returns a group by name.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.bc.group.search.GroupPickerSearchService

Public Constructors

public GroupPickerSearchServiceImpl (UserManager userManager)

Public Methods

public List<Group> findGroups (String query)

Get groups based on a query string. Will be unique and sorted.

Results are sorted according to the com.atlassian.crowd.embedded.api.GroupComparator.

Parameters
query String to search for.
Returns
  • List of Group objects that match criteria.

public Group getGroupByName (String groupName)

Returns a group by name.

Parameters
groupName The group name
Returns
  • The group (if any)