public class GroupBackends extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<com.google.gerrit.common.data.GroupReference> |
GROUP_REF_NAME_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static com.google.gerrit.common.data.GroupReference |
findBestSuggestion(GroupBackend groupBackend,
String name)
Runs
GroupBackend.suggest(String, ProjectControl) and filters the
result to return the best suggestion, or null if one does not exist. |
static com.google.gerrit.common.data.GroupReference |
findBestSuggestion(GroupBackend groupBackend,
String name,
ProjectControl project)
Runs
GroupBackend.suggest(String, ProjectControl) and filters the
result to return the best suggestion, or null if one does not exist. |
static com.google.gerrit.common.data.GroupReference |
findExactSuggestion(GroupBackend groupBackend,
String name)
Runs
GroupBackend.suggest(String, ProjectControl) and filters the
result to return the exact suggestion, or null if one does not exist. |
static com.google.gerrit.common.data.GroupReference |
findExactSuggestion(GroupBackend groupBackend,
String name,
ProjectControl project)
Runs
GroupBackend.suggest(String, ProjectControl) and filters the
result to return the exact suggestion, or null if one does not exist. |
static boolean |
isExactSuggestion(com.google.gerrit.common.data.GroupReference ref,
String name)
Returns whether the GroupReference is an exact suggestion for the name.
|
public static final Comparator<com.google.gerrit.common.data.GroupReference> GROUP_REF_NAME_COMPARATOR
public static com.google.gerrit.common.data.GroupReference findBestSuggestion(GroupBackend groupBackend, String name)
GroupBackend.suggest(String, ProjectControl)
and filters the
result to return the best suggestion, or null if one does not exist.groupBackend
- the group backendname
- the name for which to suggest groupspublic static com.google.gerrit.common.data.GroupReference findBestSuggestion(GroupBackend groupBackend, String name, ProjectControl project)
GroupBackend.suggest(String, ProjectControl)
and filters the
result to return the best suggestion, or null if one does not exist.groupBackend
- the group backendname
- the name for which to suggest groupsproject
- the project for which to suggest groupspublic static com.google.gerrit.common.data.GroupReference findExactSuggestion(GroupBackend groupBackend, String name)
GroupBackend.suggest(String, ProjectControl)
and filters the
result to return the exact suggestion, or null if one does not exist.groupBackend
- the group backendname
- the name for which to suggest groupspublic static com.google.gerrit.common.data.GroupReference findExactSuggestion(GroupBackend groupBackend, String name, ProjectControl project)
GroupBackend.suggest(String, ProjectControl)
and filters the
result to return the exact suggestion, or null if one does not exist.groupBackend
- the group backendname
- the name for which to suggest groupsproject
- the project for which to suggest groupspublic static boolean isExactSuggestion(com.google.gerrit.common.data.GroupReference ref, String name)