public class Submit extends java.lang.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 |
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) |
boolean |
submittable(ChangeData cd)
Check if there are any problems with the given change.
|
java.util.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.AuthException, com.google.gerrit.extensions.restapi.ResourceConflictException, org.eclipse.jgit.errors.RepositoryNotFoundException, java.io.IOException, com.google.gwtorm.server.OrmException, com.google.gerrit.extensions.restapi.UnprocessableEntityException
apply
in interface com.google.gerrit.extensions.restapi.RestModifyView<RevisionResource,com.google.gerrit.extensions.api.changes.SubmitInput>
com.google.gerrit.extensions.restapi.AuthException
com.google.gerrit.extensions.restapi.ResourceConflictException
org.eclipse.jgit.errors.RepositoryNotFoundException
java.io.IOException
com.google.gwtorm.server.OrmException
com.google.gerrit.extensions.restapi.UnprocessableEntityException
public 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 java.util.Collection<ChangeData> unmergeableChanges(ChangeSet cs) throws com.google.gwtorm.server.OrmException, java.io.IOException
com.google.gwtorm.server.OrmException
java.io.IOException
public static boolean wholeTopicEnabled(org.eclipse.jgit.lib.Config config)