Package com.google.gerrit.server.account
Class PutName
- java.lang.Object
-
- com.google.gerrit.server.account.PutName
-
- All Implemented Interfaces:
RestModifyView<AccountResource,PutName.Input>
,RestView<AccountResource>
public class PutName extends Object implements RestModifyView<AccountResource,PutName.Input>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutName.Input
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<String>
apply(AccountResource rsrc, PutName.Input input)
Process the view operation by altering the resource.Response<String>
apply(IdentifiedUser user, PutName.Input input)
-
-
-
Method Detail
-
apply
public Response<String> apply(AccountResource rsrc, PutName.Input input) throws AuthException, MethodNotAllowedException, ResourceNotFoundException, com.google.gwtorm.server.OrmException, IOException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<AccountResource,PutName.Input>
- Parameters:
rsrc
- resource to modify.input
- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
AuthException
- the client is not permitted to access this view.MethodNotAllowedException
ResourceNotFoundException
com.google.gwtorm.server.OrmException
IOException
PermissionBackendException
org.eclipse.jgit.errors.ConfigInvalidException
-
apply
public Response<String> apply(IdentifiedUser user, PutName.Input input) throws MethodNotAllowedException, ResourceNotFoundException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
MethodNotAllowedException
ResourceNotFoundException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-