Package com.google.gerrit.entities
Class GroupReference
- java.lang.Object
-
- com.google.gerrit.entities.GroupReference
-
- All Implemented Interfaces:
Comparable<GroupReference>
public abstract class GroupReference extends Object implements Comparable<GroupReference>
Describes a group within a projectsAccessSection
s.
-
-
Constructor Summary
Constructors Constructor Description GroupReference()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(GroupReference o)
static GroupReference
create(AccountGroup.UUID uuid, String name)
Create a group reference.static GroupReference
create(String name)
Create a group reference where the group's name couldn't be resolved.boolean
equals(Object o)
static String
extractGroupName(String configValue)
static GroupReference
forGroup(GroupDescription.Basic group)
abstract String
getName()
abstract AccountGroup.UUID
getUUID()
int
hashCode()
static boolean
isGroupReference(String configValue)
String
toConfigValue()
String
toString()
-
-
-
Method Detail
-
forGroup
public static GroupReference forGroup(GroupDescription.Basic group)
-
isGroupReference
public static boolean isGroupReference(String configValue)
-
getUUID
public abstract AccountGroup.UUID getUUID()
-
getName
public abstract String getName()
-
create
public static GroupReference create(AccountGroup.UUID uuid, String name)
Create a group reference.- Parameters:
uuid
- UUID of the group, must not benull
name
- the group name, must not benull
-
create
public static GroupReference create(String name)
Create a group reference where the group's name couldn't be resolved.- Parameters:
name
- the group name, must not benull
-
compareTo
public final int compareTo(GroupReference o)
- Specified by:
compareTo
in interfaceComparable<GroupReference>
-
toConfigValue
public String toConfigValue()
-
-