Class CherryPick
- java.lang.Object
-
- com.google.gerrit.server.update.RetryingRestModifyView<RevisionResource,CherryPickInput,CherryPickChangeInfo>
-
- com.google.gerrit.server.restapi.change.CherryPick
-
- All Implemented Interfaces:
RestModifyView<RevisionResource,CherryPickInput>
,RestView<RevisionResource>
,UiAction<RevisionResource>
public class CherryPick extends RetryingRestModifyView<RevisionResource,CherryPickInput,CherryPickChangeInfo> implements UiAction<RevisionResource>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.webui.UiAction
UiAction.Description
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CherryPickChangeInfo
applyImpl(BatchUpdate.Factory updateFactory, RevisionResource rsrc, CherryPickInput 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
-
-
-
-
Method Detail
-
applyImpl
public CherryPickChangeInfo applyImpl(BatchUpdate.Factory updateFactory, RevisionResource rsrc, CherryPickInput input) throws IOException, UpdateException, RestApiException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException, NoSuchProjectException
- Specified by:
applyImpl
in classRetryingRestModifyView<RevisionResource,CherryPickInput,CherryPickChangeInfo>
- Throws:
IOException
UpdateException
RestApiException
PermissionBackendException
org.eclipse.jgit.errors.ConfigInvalidException
NoSuchProjectException
-
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)
.
-
-