Class ConfirmEmail
- java.lang.Object
-
- com.google.gerrit.server.restapi.config.ConfirmEmail
-
- All Implemented Interfaces:
RestModifyView<ConfigResource,ConfirmEmail.Input>
,RestView<ConfigResource>
public class ConfirmEmail extends Object implements RestModifyView<ConfigResource,ConfirmEmail.Input>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfirmEmail.Input
-
Constructor Summary
Constructors Constructor Description ConfirmEmail(com.google.inject.Provider<CurrentUser> self, EmailTokenVerifier emailTokenVerifier, AccountManager accountManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<?>
apply(ConfigResource rsrc, ConfirmEmail.Input input)
Process the view operation by altering the resource.
-
-
-
Constructor Detail
-
ConfirmEmail
@Inject public ConfirmEmail(com.google.inject.Provider<CurrentUser> self, EmailTokenVerifier emailTokenVerifier, AccountManager accountManager)
-
-
Method Detail
-
apply
public Response<?> apply(ConfigResource rsrc, ConfirmEmail.Input input) throws AuthException, UnprocessableEntityException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<ConfigResource,ConfirmEmail.Input>
- 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:
AuthException
- the client is not permitted to access this view.UnprocessableEntityException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-