Populate the group screens via REST

Finish the migration of the groups screen to the new REST API.

Change-Id: If453bd9ff594b6a424fb0fbecde38825ed03808a
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-02-01 16:37:38 +01:00
parent bf75002957
commit accd070eeb
8 changed files with 148 additions and 111 deletions

View File

@@ -85,6 +85,11 @@ public final class AccountGroup {
|| uuid.get().matches("^[0-9a-f]{40}$");
}
/** @return true if the UUID is for a system group managed within Gerrit. */
public static boolean isSystemGroup(AccountGroup.UUID uuid) {
return uuid.get().startsWith("global:");
}
/** Synthetic key to link to within the database */
public static class Id extends IntKey<com.google.gwtorm.client.Key<?>> {
private static final long serialVersionUID = 1L;