Merge "Allow group includes to be by UUID instead of group ID"

This commit is contained in:
Shawn Pearce
2013-01-10 13:01:20 -08:00
committed by Gerrit Code Review
24 changed files with 329 additions and 192 deletions

View File

@@ -57,10 +57,10 @@ final class CreateGroupCommand extends SshCommand {
@Option(name = "--visible-to-all", usage = "to make the group visible to all registered users")
private boolean visibleToAll;
private final Set<AccountGroup.Id> initialGroups = new HashSet<AccountGroup.Id>();
private final Set<AccountGroup.UUID> initialGroups = new HashSet<AccountGroup.UUID>();
@Option(name = "--group", aliases = "-g", metaVar = "GROUP", usage = "initial set of groups to be included in the group")
void addGroup(final AccountGroup.Id id) {
void addGroup(final AccountGroup.UUID id) {
initialGroups.add(id);
}