Class CommitValidators.ChangeIdValidator
java.lang.Object
com.google.gerrit.server.git.validators.CommitValidators.ChangeIdValidator
- All Implemented Interfaces:
- CommitValidationListener
- Enclosing class:
- CommitValidators
public static class CommitValidators.ChangeIdValidator
extends Object
implements CommitValidationListener
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionChangeIdValidator(ChangeUtil changeUtil, ProjectState projectState, IdentifiedUser user, UrlFormatter urlFormatter, org.eclipse.jgit.lib.Config config, SshInfo sshInfo, Change change) 
- 
Method SummaryModifier and TypeMethodDescriptiononCommitReceived(CommitReceivedEvent receiveEvent) Commit validation.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gerrit.server.git.validators.CommitValidationListenershouldValidateAllCommits
- 
Field Details- 
CHANGE_ID_MISMATCH_MSG- See Also:
 
 
- 
- 
Constructor Details- 
ChangeIdValidatorpublic ChangeIdValidator(ChangeUtil changeUtil, ProjectState projectState, IdentifiedUser user, UrlFormatter urlFormatter, org.eclipse.jgit.lib.Config config, SshInfo sshInfo, Change change) 
 
- 
- 
Method Details- 
onCommitReceivedpublic List<CommitValidationMessage> onCommitReceived(CommitReceivedEvent receiveEvent) throws CommitValidationException Description copied from interface:CommitValidationListenerCommit validation.- Specified by:
- onCommitReceivedin interface- CommitValidationListener
- Parameters:
- receiveEvent- commit event details
- Returns:
- list of validation messages
- Throws:
- CommitValidationException- if validation fails
 
 
-