public class GroupReference extends Object implements Comparable<GroupReference>
AccessSection
s.Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected String |
uuid |
Modifier | Constructor and Description |
---|---|
protected |
GroupReference() |
|
GroupReference(AccountGroup.UUID uuid,
String name)
Create a group reference.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GroupReference o) |
boolean |
equals(Object o) |
static String |
extractGroupName(String configValue) |
static GroupReference |
forGroup(GroupDescription.Basic group) |
String |
getName() |
AccountGroup.UUID |
getUUID() |
int |
hashCode() |
static boolean |
isGroupReference(String configValue) |
void |
setName(String newName) |
void |
setUUID(AccountGroup.UUID newUUID) |
String |
toConfigValue() |
String |
toString() |
protected GroupReference()
public GroupReference(AccountGroup.UUID uuid, String name)
uuid
- UUID of the group, may be null
if the group name couldn't be resolvedname
- the group name, must not be null
public static GroupReference forGroup(GroupDescription.Basic group)
public static boolean isGroupReference(String configValue)
public AccountGroup.UUID getUUID()
public void setUUID(AccountGroup.UUID newUUID)
public String getName()
public void setName(String newName)
public int compareTo(GroupReference o)
compareTo
in interface Comparable<GroupReference>
public String toConfigValue()