public class PutHttpPassword extends java.lang.Object implements RestModifyView<AccountResource,HttpPasswordInput>
Modifier and Type | Method and Description |
---|---|
Response<java.lang.String> |
apply(AccountResource rsrc,
HttpPasswordInput input)
Process the view operation by altering the resource.
|
Response<java.lang.String> |
apply(IdentifiedUser user,
java.lang.String newPassword) |
static java.lang.String |
generate() |
public Response<java.lang.String> apply(AccountResource rsrc, HttpPasswordInput input) throws AuthException, ResourceNotFoundException, ResourceConflictException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
RestModifyView
apply
in interface RestModifyView<AccountResource,HttpPasswordInput>
rsrc
- resource to modify.input
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.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
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
public Response<java.lang.String> apply(IdentifiedUser user, java.lang.String newPassword) throws ResourceNotFoundException, ResourceConflictException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
ResourceNotFoundException
ResourceConflictException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static java.lang.String generate()