public class PublishDraftPatchSet extends Object implements com.google.gerrit.extensions.restapi.RestModifyView<RevisionResource,PublishDraftPatchSet.Input>, com.google.gerrit.extensions.webui.UiAction<RevisionResource>
Modifier and Type | Class and Description |
---|---|
static class |
PublishDraftPatchSet.CurrentRevision |
static class |
PublishDraftPatchSet.Input |
Constructor and Description |
---|
PublishDraftPatchSet(AccountResolver accountResolver,
ApprovalsUtil approvalsUtil,
BatchUpdate.Factory updateFactory,
CreateChangeSender.Factory createChangeSenderFactory,
PatchSetInfoFactory patchSetInfoFactory,
PatchSetUtil psUtil,
com.google.inject.Provider<com.google.gerrit.reviewdb.server.ReviewDb> dbProvider,
ReplacePatchSetSender.Factory replacePatchSetFactory,
DraftPublished draftPublished) |
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.extensions.restapi.Response<?> |
apply(RevisionResource rsrc,
PublishDraftPatchSet.Input input) |
com.google.gerrit.extensions.webui.UiAction.Description |
getDescription(RevisionResource rsrc) |
@Inject public PublishDraftPatchSet(AccountResolver accountResolver, ApprovalsUtil approvalsUtil, BatchUpdate.Factory updateFactory, CreateChangeSender.Factory createChangeSenderFactory, PatchSetInfoFactory patchSetInfoFactory, PatchSetUtil psUtil, com.google.inject.Provider<com.google.gerrit.reviewdb.server.ReviewDb> dbProvider, ReplacePatchSetSender.Factory replacePatchSetFactory, DraftPublished draftPublished)
public com.google.gerrit.extensions.restapi.Response<?> apply(RevisionResource rsrc, PublishDraftPatchSet.Input input) throws com.google.gerrit.extensions.restapi.RestApiException, UpdateException
apply
in interface com.google.gerrit.extensions.restapi.RestModifyView<RevisionResource,PublishDraftPatchSet.Input>
com.google.gerrit.extensions.restapi.RestApiException
UpdateException
public com.google.gerrit.extensions.webui.UiAction.Description getDescription(RevisionResource rsrc)
getDescription
in interface com.google.gerrit.extensions.webui.UiAction<RevisionResource>