public class PutTopic extends Object implements RestModifyView<ChangeResource,PutTopic.Input>, UiAction<ChangeResource>
| Modifier and Type | Class and Description |
|---|---|
static class |
PutTopic.Input |
UiAction.Description| Modifier and Type | Method and Description |
|---|---|
Response<String> |
apply(ChangeResource req,
PutTopic.Input input)
Process the view operation by altering the resource.
|
UiAction.Description |
getDescription(ChangeResource resource)
Get the description of the action customized for the resource.
|
public Response<String> apply(ChangeResource req, PutTopic.Input input) throws UpdateException, RestApiException
RestModifyViewapply in interface RestModifyView<ChangeResource,PutTopic.Input>req - 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.BadRequestException - the request was incorrectly specified and cannot be handled by this
view.ResourceConflictException - the resource state does not permit this view to make the
changes at this time.UpdateExceptionRestApiExceptionpublic UiAction.Description getDescription(ChangeResource resource)
UiActiongetDescription in interface UiAction<ChangeResource>resource - the resource the view would act upon if the action is invoked by the client.
Information from the resource can be used to customize the description.id and method
properties. If null the action will assumed unavailable and not presented. This is usually
the same as setVisible(false).