public class Submit extends Object implements com.google.gerrit.extensions.restapi.RestModifyView<RevisionResource,com.google.gerrit.extensions.api.changes.SubmitInput>, com.google.gerrit.extensions.webui.UiAction<RevisionResource>
Modifier and Type | Class and Description |
---|---|
static class |
Submit.CurrentRevision |
static class |
Submit.Output |
static class |
Submit.TestSubmitInput
Subclass of
SubmitInput with special bits that may be flipped for
testing purposes only. |
Modifier and Type | Method and Description |
---|---|
Submit.Output |
apply(RevisionResource rsrc,
com.google.gerrit.extensions.api.changes.SubmitInput input) |
com.google.gerrit.reviewdb.client.ChangeMessage |
getConflictMessage(RevisionResource rsrc)
If the merge was attempted and it failed the system usually writes a
comment as a ChangeMessage and sets status to NEW.
|
com.google.gerrit.extensions.webui.UiAction.Description |
getDescription(RevisionResource resource) |
static boolean |
submittable(ChangeData cd)
Check if there are any problems with the given change.
|
Collection<ChangeData> |
unmergeableChanges(ChangeSet cs) |
static boolean |
wholeTopicEnabled(org.eclipse.jgit.lib.Config config) |
public Submit.Output apply(RevisionResource rsrc, com.google.gerrit.extensions.api.changes.SubmitInput input) throws com.google.gerrit.extensions.restapi.RestApiException, org.eclipse.jgit.errors.RepositoryNotFoundException, IOException, com.google.gwtorm.server.OrmException
apply
in interface com.google.gerrit.extensions.restapi.RestModifyView<RevisionResource,com.google.gerrit.extensions.api.changes.SubmitInput>
com.google.gerrit.extensions.restapi.RestApiException
org.eclipse.jgit.errors.RepositoryNotFoundException
IOException
com.google.gwtorm.server.OrmException
public static boolean submittable(ChangeData cd)
cd
- the change to check for submittabilitypublic com.google.gerrit.extensions.webui.UiAction.Description getDescription(RevisionResource resource)
getDescription
in interface com.google.gerrit.extensions.webui.UiAction<RevisionResource>
public com.google.gerrit.reviewdb.client.ChangeMessage getConflictMessage(RevisionResource rsrc) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public Collection<ChangeData> unmergeableChanges(ChangeSet cs) throws com.google.gwtorm.server.OrmException, IOException
com.google.gwtorm.server.OrmException
IOException
public static boolean wholeTopicEnabled(org.eclipse.jgit.lib.Config config)