Class CommitValidators.BannedCommitsValidator
- java.lang.Object
-
- com.google.gerrit.server.git.validators.CommitValidators.BannedCommitsValidator
-
- All Implemented Interfaces:
CommitValidationListener
- Enclosing class:
- CommitValidators
public static class CommitValidators.BannedCommitsValidator extends Object implements CommitValidationListener
Reject banned commits.
-
-
Constructor Summary
Constructors Constructor Description BannedCommitsValidator(org.eclipse.jgit.notes.NoteMap rejectCommits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CommitValidationMessage>
onCommitReceived(CommitReceivedEvent receiveEvent)
Commit validation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.server.git.validators.CommitValidationListener
shouldValidateAllCommits
-
-
-
-
Method Detail
-
onCommitReceived
public List<CommitValidationMessage> onCommitReceived(CommitReceivedEvent receiveEvent) throws CommitValidationException
Description copied from interface:CommitValidationListener
Commit validation.- Specified by:
onCommitReceived
in interfaceCommitValidationListener
- Parameters:
receiveEvent
- commit event details- Returns:
- list of validation messages
- Throws:
CommitValidationException
- if validation fails
-
-