public class PutHttpPassword extends Object implements RestModifyView<AccountResource,HttpPasswordInput>
Modifier and Type | Method and 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() |
public Response<String> apply(AccountResource rsrc, HttpPasswordInput input) throws AuthException, ResourceNotFoundException, ResourceConflictException, com.google.gwtorm.server.OrmException, 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
com.google.gwtorm.server.OrmException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
public Response<String> apply(IdentifiedUser user, String newPassword) throws ResourceNotFoundException, ResourceConflictException, com.google.gwtorm.server.OrmException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
ResourceNotFoundException
ResourceConflictException
com.google.gwtorm.server.OrmException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public static String generate()