Class MergeValidators.AccountMergeValidator
- java.lang.Object
-
- com.google.gerrit.server.git.validators.MergeValidators.AccountMergeValidator
-
- All Implemented Interfaces:
MergeValidationListener
- Enclosing class:
- MergeValidators
public static class MergeValidators.AccountMergeValidator extends Object implements MergeValidationListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMergeValidators.AccountMergeValidator.Factory
-
Constructor Summary
Constructors Constructor Description AccountMergeValidator(AllUsersName allUsersName, ChangeData.Factory changeDataFactory, AccountValidator accountValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPreMerge(org.eclipse.jgit.lib.Repository repo, CodeReviewCommit.CodeReviewRevWalk revWalk, CodeReviewCommit commit, ProjectState destProject, BranchNameKey destBranch, PatchSet.Id patchSetId, IdentifiedUser caller)Validate a commit before it is merged.
-
-
-
Constructor Detail
-
AccountMergeValidator
@Inject public AccountMergeValidator(AllUsersName allUsersName, ChangeData.Factory changeDataFactory, AccountValidator accountValidator)
-
-
Method Detail
-
onPreMerge
public void onPreMerge(org.eclipse.jgit.lib.Repository repo, CodeReviewCommit.CodeReviewRevWalk revWalk, CodeReviewCommit commit, ProjectState destProject, BranchNameKey destBranch, PatchSet.Id patchSetId, IdentifiedUser caller) throws MergeValidationExceptionDescription copied from interface:MergeValidationListenerValidate a commit before it is merged.- Specified by:
onPreMergein interfaceMergeValidationListener- Parameters:
repo- the repositoryrevWalk- the rev walkcommit- commit detailsdestProject- the destination projectdestBranch- the destination branchpatchSetId- the patch set IDcaller- the user who initiated the merge request- Throws:
MergeValidationException- if the commit fails to validate
-
-