Support listing the SSH keys of an account via REST

By GET on /accounts/<account-id>/sshkeys it is now possible to retrieve
the SSH keys of an account.

The WebUI is adapted to use the new REST endpoint to retrieve the SSH
keys. The old RPC for this is deleted.

Change-Id: Iea83e77acbc1bb28c2bea0b5a3972b78acb22d62
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-05-29 13:33:06 +02:00
committed by Edwin Kempin
parent d9cdf5eea4
commit ebccb84a19
10 changed files with 263 additions and 31 deletions

View File

@@ -106,15 +106,6 @@ class AccountSecurityImpl extends BaseServiceImplementation implements
this.groupCache = groupCache;
}
public void mySshKeys(final AsyncCallback<List<AccountSshKey>> callback) {
run(callback, new Action<List<AccountSshKey>>() {
public List<AccountSshKey> run(ReviewDb db) throws OrmException {
IdentifiedUser u = user.get();
return db.accountSshKeys().byAccount(u.getAccountId()).toList();
}
});
}
public void addSshKey(final String keyText,
final AsyncCallback<AccountSshKey> callback) {
run(callback, new Action<AccountSshKey>() {