Class CreateAccount
- java.lang.Object
-
- com.google.gerrit.server.restapi.account.CreateAccount
-
- All Implemented Interfaces:
RestCollectionCreateView<TopLevelResource,AccountResource,AccountInput>
,RestCollectionView<TopLevelResource,AccountResource,AccountInput>
,RestView<AccountResource>
public class CreateAccount extends Object implements RestCollectionCreateView<TopLevelResource,AccountResource,AccountInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<AccountInfo>
apply(IdString id, AccountInput input)
Response<AccountInfo>
apply(TopLevelResource rsrc, IdString id, AccountInput input)
Process the view operation by creating the resource.
-
-
-
Method Detail
-
apply
public Response<AccountInfo> apply(TopLevelResource rsrc, IdString id, AccountInput input) throws BadRequestException, ResourceConflictException, UnprocessableEntityException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
Description copied from interface:RestCollectionCreateView
Process the view operation by creating the resource.- Specified by:
apply
in interfaceRestCollectionCreateView<TopLevelResource,AccountResource,AccountInput>
- Parameters:
rsrc
- parent resource of the resource that should be createdinput
- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
BadRequestException
ResourceConflictException
UnprocessableEntityException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
apply
public Response<AccountInfo> apply(IdString id, AccountInput input) throws BadRequestException, ResourceConflictException, UnprocessableEntityException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
- Throws:
BadRequestException
ResourceConflictException
UnprocessableEntityException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
-