Class Rebase
- java.lang.Object
-
- com.google.gerrit.server.update.RetryingRestModifyView<RevisionResource,RebaseInput,ChangeInfo>
-
- com.google.gerrit.server.restapi.change.Rebase
-
- All Implemented Interfaces:
RestModifyView<RevisionResource,RebaseInput>
,RestView<RevisionResource>
,UiAction<RevisionResource>
public class Rebase extends RetryingRestModifyView<RevisionResource,RebaseInput,ChangeInfo> implements RestModifyView<RevisionResource,RebaseInput>, UiAction<RevisionResource>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Rebase.CurrentRevision
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.webui.UiAction
UiAction.Description
-
-
Constructor Summary
Constructors Constructor Description Rebase(RetryHelper retryHelper, GitRepositoryManager repoManager, RebaseChangeOp.Factory rebaseFactory, RebaseUtil rebaseUtil, ChangeJson.Factory json, PermissionBackend permissionBackend, ProjectCache projectCache, PatchSetUtil patchSetUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Response<ChangeInfo>
applyImpl(BatchUpdate.Factory updateFactory, RevisionResource rsrc, RebaseInput input)
UiAction.Description
getDescription(RevisionResource rsrc)
Get the description of the action customized for the resource.-
Methods inherited from class com.google.gerrit.server.update.RetryingRestModifyView
apply
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.extensions.restapi.RestModifyView
apply
-
-
-
-
Constructor Detail
-
Rebase
@Inject public Rebase(RetryHelper retryHelper, GitRepositoryManager repoManager, RebaseChangeOp.Factory rebaseFactory, RebaseUtil rebaseUtil, ChangeJson.Factory json, PermissionBackend permissionBackend, ProjectCache projectCache, PatchSetUtil patchSetUtil)
-
-
Method Detail
-
applyImpl
protected Response<ChangeInfo> applyImpl(BatchUpdate.Factory updateFactory, RevisionResource rsrc, RebaseInput input) throws UpdateException, RestApiException, IOException, PermissionBackendException
- Specified by:
applyImpl
in classRetryingRestModifyView<RevisionResource,RebaseInput,ChangeInfo>
- Throws:
UpdateException
RestApiException
IOException
PermissionBackendException
-
getDescription
public UiAction.Description getDescription(RevisionResource rsrc)
Description copied from interface:UiAction
Get the description of the action customized for the resource.- Specified by:
getDescription
in interfaceUiAction<RevisionResource>
- Parameters:
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.- Returns:
- a description of the action. The server will populate the
id
andmethod
properties. If null the action will assumed unavailable and not presented. This is usually the same assetVisible(false)
.
-
-