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 Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionChangeIdValidator(ChangeUtil changeUtil, ProjectState projectState, IdentifiedUser user, UrlFormatter urlFormatter, org.eclipse.jgit.lib.Config config, SshInfo sshInfo, Change change)  - 
Method Summary
Modifier and TypeMethodDescriptiononCommitReceived(CommitReceivedEvent receiveEvent) Commit validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gerrit.server.git.validators.CommitValidationListener
shouldValidateAllCommits 
- 
Field Details
- 
CHANGE_ID_MISMATCH_MSG
- See Also:
 
 
 - 
 - 
Constructor Details
- 
ChangeIdValidator
public ChangeIdValidator(ChangeUtil changeUtil, ProjectState projectState, IdentifiedUser user, UrlFormatter urlFormatter, org.eclipse.jgit.lib.Config config, SshInfo sshInfo, Change change)  
 - 
 - 
Method Details
- 
onCommitReceived
public List<CommitValidationMessage> onCommitReceived(CommitReceivedEvent receiveEvent) throws CommitValidationException Description copied from interface:CommitValidationListenerCommit validation.- Specified by:
 onCommitReceivedin interfaceCommitValidationListener- Parameters:
 receiveEvent- commit event details- Returns:
 - list of validation messages
 - Throws:
 CommitValidationException- if validation fails
 
 -