Package com.google.gerrit.server.project
Class GroupList
java.lang.Object
com.google.gerrit.server.git.meta.TabFile
com.google.gerrit.server.project.GroupList
File format for group name aliases.
Project configuration must use aliases for groups used in the permission section. The aliases/group mapping is stored in a file "groups", (de)serialized with this class.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.server.git.meta.TabFile
TabFile.Parser, TabFile.Row
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasText()
byUUID()
byUUID
(AccountGroup.UUID uuid) static GroupList
parse
(Project.NameKey project, String text, ValidationError.Sink errors) void
put
(AccountGroup.UUID uuid, GroupReference reference) void
renameGroup
(AccountGroup.UUID uuid, String name) resolve
(GroupReference group) Returns theGroupReference
instance thatGroupList
holds on to that has the sameAccountGroup.UUID
as the argument.void
retainUUIDs
(Collection<AccountGroup.UUID> toBeRetained) uuids()
-
Field Details
-
FILE_NAME
- See Also:
-
-
Method Details
-
parse
public static GroupList parse(Project.NameKey project, String text, ValidationError.Sink errors) throws IOException - Throws:
IOException
-
byUUID
-
byUUID
-
byName
-
resolve
Returns theGroupReference
instance thatGroupList
holds on to that has the sameAccountGroup.UUID
as the argument. Will store the argument internally, if no group with thisAccountGroup.UUID
was stored previously. -
renameGroup
-
references
-
uuids
-
put
-
asText
-
retainUUIDs
-