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 Modifier and Type Field Description static StringCHANGE_ID_MISMATCH_MSG 
- 
Constructor Summary
Constructors Constructor Description ChangeIdValidator(ProjectState projectState, IdentifiedUser user, UrlFormatter urlFormatter, org.eclipse.jgit.lib.Config config, SshInfo sshInfo, Change change) 
- 
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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
CHANGE_ID_MISMATCH_MSG
public static final String CHANGE_ID_MISMATCH_MSG
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
ChangeIdValidator
public ChangeIdValidator(ProjectState projectState, IdentifiedUser user, UrlFormatter urlFormatter, org.eclipse.jgit.lib.Config config, SshInfo sshInfo, Change change)
 
 - 
 
- 
Method Detail
- 
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
 
 - 
 
 -