public class Revert extends RetryingRestModifyView<ChangeResource,RevertInput,ChangeInfo> implements UiAction<ChangeResource>
UiAction.Description
Modifier and Type | Method and Description |
---|---|
ChangeInfo |
applyImpl(BatchUpdate.Factory updateFactory,
ChangeResource rsrc,
RevertInput input) |
UiAction.Description |
getDescription(ChangeResource rsrc)
Get the description of the action customized for the resource.
|
apply
public ChangeInfo applyImpl(BatchUpdate.Factory updateFactory, ChangeResource rsrc, RevertInput input) throws java.io.IOException, com.google.gwtorm.server.OrmException, RestApiException, UpdateException, NoSuchChangeException, PermissionBackendException, NoSuchProjectException, org.eclipse.jgit.errors.ConfigInvalidException
applyImpl
in class RetryingRestModifyView<ChangeResource,RevertInput,ChangeInfo>
java.io.IOException
com.google.gwtorm.server.OrmException
RestApiException
UpdateException
NoSuchChangeException
PermissionBackendException
NoSuchProjectException
org.eclipse.jgit.errors.ConfigInvalidException
public UiAction.Description getDescription(ChangeResource rsrc)
UiAction
getDescription
in interface UiAction<ChangeResource>
rsrc
- 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)
.