public class PutUsername extends Object implements RestModifyView<AccountResource,UsernameInput>
Modifier and Type | Method and Description |
---|---|
String |
apply(AccountResource rsrc,
UsernameInput input)
Process the view operation by altering the resource.
|
public String apply(AccountResource rsrc, UsernameInput input) throws AuthException, MethodNotAllowedException, UnprocessableEntityException, ResourceConflictException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
RestModifyView
apply
in interface RestModifyView<AccountResource,UsernameInput>
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.MethodNotAllowedException
UnprocessableEntityException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException