Package com.google.gerrit.common.data
Class GroupInfo
- java.lang.Object
-
- com.google.gerrit.common.data.GroupInfo
-
public class GroupInfo extends Object
Summary information about anAccountGroup
, for simple tabular displays.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
description
protected String
name
protected String
url
protected AccountGroup.UUID
uuid
-
Constructor Summary
Constructors Modifier Constructor Description protected
GroupInfo()
GroupInfo(GroupDescription.Basic a)
Create a group description from a real data store record.GroupInfo(AccountGroup.UUID uuid)
Create an anonymous group info, when only the id is known.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
AccountGroup.UUID
getId()
String
getName()
String
getUrl()
-
-
-
Field Detail
-
uuid
protected AccountGroup.UUID uuid
-
name
protected String name
-
description
protected String description
-
url
protected String url
-
-
Constructor Detail
-
GroupInfo
protected GroupInfo()
-
GroupInfo
public GroupInfo(AccountGroup.UUID uuid)
Create an anonymous group info, when only the id is known.This constructor should only be a last-ditch effort, when the usual group lookup has failed and a stale group id has been discovered in the data store.
-
GroupInfo
public GroupInfo(GroupDescription.Basic a)
Create a group description from a real data store record.- Parameters:
a
- the data store record holding the specific group details.
-
-
Method Detail
-
getId
public AccountGroup.UUID getId()
- Returns:
- the unique local id of the group
-
getName
public String getName()
- Returns:
- the name of the group; null if not supplied
-
getDescription
public String getDescription()
- Returns:
- the description of the group; null if not supplied
-
getUrl
public String getUrl()
-
-