Class PutHttpPassword
- java.lang.Object
-
- com.google.gerrit.server.restapi.account.PutHttpPassword
-
- All Implemented Interfaces:
RestModifyView<AccountResource,HttpPasswordInput>
,RestView<AccountResource>
public class PutHttpPassword extends Object implements RestModifyView<AccountResource,HttpPasswordInput>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<String>
apply(AccountResource rsrc, HttpPasswordInput input)
Process the view operation by altering the resource.Response<String>
apply(IdentifiedUser user, String newPassword)
static String
generate()
-
-
-
Method Detail
-
apply
public Response<String> apply(AccountResource rsrc, HttpPasswordInput input) throws AuthException, ResourceNotFoundException, ResourceConflictException, com.google.gwtorm.server.OrmException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<AccountResource,HttpPasswordInput>
- 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.ResourceConflictException
- the resource state does not permit this view to make the changes at this time.ResourceNotFoundException
com.google.gwtorm.server.OrmException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
apply
public Response<String> apply(IdentifiedUser user, String newPassword) throws ResourceNotFoundException, ResourceConflictException, com.google.gwtorm.server.OrmException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
ResourceNotFoundException
ResourceConflictException
com.google.gwtorm.server.OrmException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
generate
public static String generate()
-
-