public class CreateAccount extends java.lang.Object implements RestCollectionCreateView<TopLevelResource,AccountResource,AccountInput>
Modifier and Type | Method and 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.
|
public Response<AccountInfo> apply(TopLevelResource rsrc, IdString id, AccountInput input) throws BadRequestException, ResourceConflictException, UnprocessableEntityException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
RestCollectionCreateView
apply
in interface RestCollectionCreateView<TopLevelResource,AccountResource,AccountInput>
rsrc
- parent resource of the resource that should be createdinput
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.BadRequestException
ResourceConflictException
UnprocessableEntityException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
public Response<AccountInfo> apply(IdString id, AccountInput input) throws BadRequestException, ResourceConflictException, UnprocessableEntityException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
BadRequestException
ResourceConflictException
UnprocessableEntityException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException