Class CreateEmail
- java.lang.Object
-
- com.google.gerrit.server.restapi.account.CreateEmail
-
- All Implemented Interfaces:
RestCollectionCreateView<AccountResource,AccountResource.Email,EmailInput>
,RestCollectionView<AccountResource,AccountResource.Email,EmailInput>
,RestView<AccountResource.Email>
public class CreateEmail extends Object implements RestCollectionCreateView<AccountResource,AccountResource.Email,EmailInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<EmailInfo>
apply(AccountResource rsrc, IdString id, EmailInput input)
Process the view operation by creating the resource.Response<EmailInfo>
apply(IdentifiedUser user, IdString id, EmailInput input)
To be used from plugins that want to create emails without permission checks.
-
-
-
Method Detail
-
apply
public Response<EmailInfo> apply(AccountResource rsrc, IdString id, EmailInput input) throws RestApiException, com.google.gwtorm.server.OrmException, EmailException, MethodNotAllowedException, 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<AccountResource,AccountResource.Email,EmailInput>
- 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:
RestApiException
- if the resource creation is rejectedcom.google.gwtorm.server.OrmException
EmailException
MethodNotAllowedException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
apply
public Response<EmailInfo> apply(IdentifiedUser user, IdString id, EmailInput input) throws RestApiException, com.google.gwtorm.server.OrmException, EmailException, MethodNotAllowedException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
To be used from plugins that want to create emails without permission checks.- Throws:
RestApiException
com.google.gwtorm.server.OrmException
EmailException
MethodNotAllowedException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
-