public static class MergeValidators.ProjectConfigValidator extends Object implements MergeValidationListener
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
MergeValidators.ProjectConfigValidator.Factory  | 
| Constructor and Description | 
|---|
MergeValidators.ProjectConfigValidator(AllProjectsName allProjectsName,
                                      com.google.gerrit.reviewdb.server.ReviewDb db,
                                      ProjectCache projectCache,
                                      IdentifiedUser.GenericFactory iuf,
                                      ApprovalsUtil approvalsUtil,
                                      com.google.gerrit.extensions.registration.DynamicMap<ProjectConfigEntry> pluginConfigEntries)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
onPreMerge(org.eclipse.jgit.lib.Repository repo,
          CodeReviewCommit commit,
          ProjectState destProject,
          com.google.gerrit.reviewdb.client.Branch.NameKey destBranch,
          com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId)
Validate a commit before it is merged. 
 | 
@Inject public MergeValidators.ProjectConfigValidator(AllProjectsName allProjectsName, com.google.gerrit.reviewdb.server.ReviewDb db, ProjectCache projectCache, IdentifiedUser.GenericFactory iuf, ApprovalsUtil approvalsUtil, com.google.gerrit.extensions.registration.DynamicMap<ProjectConfigEntry> pluginConfigEntries)
public void onPreMerge(org.eclipse.jgit.lib.Repository repo,
              CodeReviewCommit commit,
              ProjectState destProject,
              com.google.gerrit.reviewdb.client.Branch.NameKey destBranch,
              com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId)
                throws MergeValidationException
MergeValidationListeneronPreMerge in interface MergeValidationListenerrepo - the repositorycommit - commit detailsdestProject - the destination projectdestBranch - the destination branchpatchSetId - the patch set IDMergeValidationException - if the commit fails to validate