public class PutAccount extends java.lang.Object implements RestModifyView<AccountResource,AccountInput>
Constructor and Description |
---|
PutAccount() |
Modifier and Type | Method and Description |
---|---|
Response<AccountInfo> |
apply(AccountResource resource,
AccountInput input)
Process the view operation by altering the resource.
|
public Response<AccountInfo> apply(AccountResource resource, AccountInput input) throws ResourceConflictException
RestModifyView
apply
in interface RestModifyView<AccountResource,AccountInput>
resource
- resource to modify.input
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.ResourceConflictException
- the resource state does not permit this view to make the
changes at this time.