Add settings screen for editing GPG public keys

The UI is almost identical to the UI for editing SSH keys (although
implemented with UiBinder).

Change-Id: Ic6cf4dc9d7f71b00efea00a86498660d113ebb2b
This commit is contained in:
Dave Borowitz
2015-08-03 10:28:32 -07:00
parent eab3aff03a
commit 0349f8a1c8
12 changed files with 499 additions and 14 deletions

View File

@@ -29,6 +29,7 @@ import static com.google.gerrit.common.PageLinks.SETTINGS;
import static com.google.gerrit.common.PageLinks.SETTINGS_AGREEMENTS;
import static com.google.gerrit.common.PageLinks.SETTINGS_CONTACT;
import static com.google.gerrit.common.PageLinks.SETTINGS_EXTENSION;
import static com.google.gerrit.common.PageLinks.SETTINGS_GPGKEYS;
import static com.google.gerrit.common.PageLinks.SETTINGS_HTTP_PASSWORD;
import static com.google.gerrit.common.PageLinks.SETTINGS_MYGROUPS;
import static com.google.gerrit.common.PageLinks.SETTINGS_NEW_AGREEMENT;
@@ -40,6 +41,7 @@ import static com.google.gerrit.common.PageLinks.toChangeQuery;
import com.google.gerrit.client.account.MyAgreementsScreen;
import com.google.gerrit.client.account.MyContactInformationScreen;
import com.google.gerrit.client.account.MyGpgKeysScreen;
import com.google.gerrit.client.account.MyGroupsScreen;
import com.google.gerrit.client.account.MyIdentitiesScreen;
import com.google.gerrit.client.account.MyPasswordScreen;
@@ -536,6 +538,10 @@ public class Dispatcher {
return new MySshKeysScreen();
}
if (matchExact(SETTINGS_GPGKEYS, token)) {
return new MyGpgKeysScreen();
}
if (matchExact(SETTINGS_WEBIDENT, token)) {
return new MyIdentitiesScreen();
}