Package com.google.gerrit.server.account
Class CreateAccount
- java.lang.Object
-
- com.google.gerrit.server.account.CreateAccount
-
- All Implemented Interfaces:
RestModifyView<TopLevelResource,AccountInput>
,RestView<TopLevelResource>
public class CreateAccount extends Object implements RestModifyView<TopLevelResource,AccountInput>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CreateAccount.Factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<AccountInfo>
apply(AccountInput input)
Response<AccountInfo>
apply(TopLevelResource rsrc, AccountInput input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public Response<AccountInfo> apply(TopLevelResource rsrc, AccountInput input) throws BadRequestException, ResourceConflictException, UnprocessableEntityException, com.google.gwtorm.server.OrmException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<TopLevelResource,AccountInput>
- 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:
BadRequestException
- the request was incorrectly specified and cannot be handled by this view.ResourceConflictException
- the resource state does not permit this view to make the changes at this time.UnprocessableEntityException
com.google.gwtorm.server.OrmException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
apply
public Response<AccountInfo> apply(AccountInput input) throws BadRequestException, ResourceConflictException, UnprocessableEntityException, com.google.gwtorm.server.OrmException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
BadRequestException
ResourceConflictException
UnprocessableEntityException
com.google.gwtorm.server.OrmException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-