public class GroupBackends
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<GroupReference> |
GROUP_REF_NAME_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static GroupReference |
findBestSuggestion(GroupBackend groupBackend,
java.lang.String name)
Runs
GroupBackend.suggest(String, ProjectControl) and filters the result to return the
best suggestion, or null if one does not exist. |
static GroupReference |
findBestSuggestion(GroupBackend groupBackend,
java.lang.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 GroupReference |
findExactSuggestion(GroupBackend groupBackend,
java.lang.String name)
Runs
GroupBackend.suggest(String, ProjectControl) and filters the result to return the
exact suggestion, or null if one does not exist. |
static GroupReference |
findExactSuggestion(GroupBackend groupBackend,
java.lang.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(GroupReference ref,
java.lang.String name)
Returns whether the GroupReference is an exact suggestion for the name.
|
public static final java.util.Comparator<GroupReference> GROUP_REF_NAME_COMPARATOR
public static GroupReference findBestSuggestion(GroupBackend groupBackend, java.lang.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 GroupReference findBestSuggestion(GroupBackend groupBackend, java.lang.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 GroupReference findExactSuggestion(GroupBackend groupBackend, java.lang.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 GroupReference findExactSuggestion(GroupBackend groupBackend, java.lang.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(GroupReference ref, java.lang.String name)