Class PutAccount
- java.lang.Object
-
- com.google.gerrit.server.restapi.account.PutAccount
-
- All Implemented Interfaces:
RestModifyView<AccountResource,AccountInput>
,RestView<AccountResource>
public class PutAccount extends Object implements RestModifyView<AccountResource,AccountInput>
-
-
Constructor Summary
Constructors Constructor Description PutAccount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<AccountInfo>
apply(AccountResource resource, AccountInput input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public Response<AccountInfo> apply(AccountResource resource, AccountInput input) throws ResourceConflictException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<AccountResource,AccountInput>
- Parameters:
resource
- 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:
ResourceConflictException
- the resource state does not permit this view to make the changes at this time.
-
-