public class Rebase extends RetryingRestModifyView<RevisionResource,RebaseInput,ChangeInfo> implements RestModifyView<RevisionResource,RebaseInput>, UiAction<RevisionResource>
Modifier and Type | Class and Description |
---|---|
static class |
Rebase.CurrentRevision |
UiAction.Description
Constructor and Description |
---|
Rebase(RetryHelper retryHelper,
GitRepositoryManager repoManager,
RebaseChangeOp.Factory rebaseFactory,
RebaseUtil rebaseUtil,
ChangeJson.Factory json,
com.google.inject.Provider<ReviewDb> dbProvider,
PermissionBackend permissionBackend) |
Modifier and Type | Method and Description |
---|---|
protected ChangeInfo |
applyImpl(BatchUpdate.Factory updateFactory,
RevisionResource rsrc,
RebaseInput input) |
UiAction.Description |
getDescription(RevisionResource resource)
Get the description of the action customized for the resource.
|
apply
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
@Inject public Rebase(RetryHelper retryHelper, GitRepositoryManager repoManager, RebaseChangeOp.Factory rebaseFactory, RebaseUtil rebaseUtil, ChangeJson.Factory json, com.google.inject.Provider<ReviewDb> dbProvider, PermissionBackend permissionBackend)
protected ChangeInfo applyImpl(BatchUpdate.Factory updateFactory, RevisionResource rsrc, RebaseInput input) throws EmailException, com.google.gwtorm.server.OrmException, UpdateException, RestApiException, java.io.IOException, NoSuchChangeException, PermissionBackendException
applyImpl
in class RetryingRestModifyView<RevisionResource,RebaseInput,ChangeInfo>
EmailException
com.google.gwtorm.server.OrmException
UpdateException
RestApiException
java.io.IOException
NoSuchChangeException
PermissionBackendException
public UiAction.Description getDescription(RevisionResource resource)
UiAction
getDescription
in interface UiAction<RevisionResource>
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)
.