Move system groups into their own backend

Delete 'Anonymous Users', 'Registered Users', 'Project Owners' and
'Change Owner' from the database and account_groups table.  Define
them inside of a specialized SystemGroupBackend class.

Change-Id: Ia67add4630579f3d0ce25edcfd662bbcf918dc8f
This commit is contained in:
Shawn Pearce
2013-12-02 11:26:13 -08:00
parent 7f1bb28e9a
commit f43e915c5d
41 changed files with 409 additions and 398 deletions

View File

@@ -14,8 +14,8 @@
package com.google.gerrit.server.config;
import com.google.gerrit.reviewdb.client.AccountGroup;
import com.google.gerrit.server.account.GroupBackend;
import com.google.gerrit.server.group.SystemGroupBackend;
import com.google.gerrit.server.util.ServerRequestContext;
import com.google.gerrit.server.util.ThreadLocalRequestContext;
import com.google.inject.Inject;
@@ -35,7 +35,7 @@ public class GitReceivePackGroupsProvider extends GroupSetProvider {
// If no group was set, default to "registered users"
//
if (groupIds.isEmpty()) {
groupIds = Collections.singleton(AccountGroup.REGISTERED_USERS);
groupIds = Collections.singleton(SystemGroupBackend.REGISTERED_USERS);
}
}
}