public class GetSshKeys extends java.lang.Object implements RestReadView<AccountResource>
Modifier and Type | Method and Description |
---|---|
java.util.List<SshKeyInfo> |
apply(AccountResource rsrc)
Process the view operation by reading from the resource.
|
java.util.List<SshKeyInfo> |
apply(IdentifiedUser user) |
static SshKeyInfo |
newSshKeyInfo(AccountSshKey sshKey) |
public java.util.List<SshKeyInfo> apply(AccountResource rsrc) throws AuthException, org.eclipse.jgit.errors.RepositoryNotFoundException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
RestReadView
apply
in interface RestReadView<AccountResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.org.eclipse.jgit.errors.RepositoryNotFoundException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
public java.util.List<SshKeyInfo> apply(IdentifiedUser user) throws org.eclipse.jgit.errors.RepositoryNotFoundException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
org.eclipse.jgit.errors.RepositoryNotFoundException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static SshKeyInfo newSshKeyInfo(AccountSshKey sshKey)