Class CommitValidationInfo
java.lang.Object
com.google.gerrit.server.git.validators.CommitValidationInfo
Result of invoking a 
CommitValidationListener if the commit passed the validator.
 Note, if a commit is rejected by a CommitValidationListener it throws a CommitValidationException and no CommitValidationInfo is returned. Hence 
 CommitValidationInfo doesn't cover rejections.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionEmpty metadata map.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionmetadata()Metadata about the commit validation that has been performed, for example the version ID of the configuration that was used for the commit validation or the SHA1 from which the configuration that was used for the commit validation was read.static CommitValidationInfonotApplicable(com.google.common.collect.ImmutableMap<String, String> metadata) static CommitValidationInfopassed(com.google.common.collect.ImmutableMap<String, String> metadata, com.google.common.collect.ImmutableList<CommitValidationMessage> validationMessages) static CommitValidationInfoskippedByUser(com.google.common.collect.ImmutableMap<String, String> metadata) abstract CommitValidationInfo.Statusstatus()Status of the commit validation run.abstract com.google.common.collect.ImmutableList<CommitValidationMessage> Validation messages collected during the commit validation run.
- 
Field Details- 
NO_METADATAEmpty metadata map.
 
- 
- 
Constructor Details- 
CommitValidationInfopublic CommitValidationInfo()
 
- 
- 
Method Details- 
statusStatus of the commit validation run.
- 
metadataMetadata about the commit validation that has been performed, for example the version ID of the configuration that was used for the commit validation or the SHA1 from which the configuration that was used for the commit validation was read.
- 
validationMessagespublic abstract com.google.common.collect.ImmutableList<CommitValidationMessage> validationMessages()Validation messages collected during the commit validation run.
- 
passedpublic static CommitValidationInfo passed(com.google.common.collect.ImmutableMap<String, String> metadata, com.google.common.collect.ImmutableList<CommitValidationMessage> validationMessages) 
- 
notApplicablepublic static CommitValidationInfo notApplicable(com.google.common.collect.ImmutableMap<String, String> metadata) 
- 
skippedByUserpublic static CommitValidationInfo skippedByUser(com.google.common.collect.ImmutableMap<String, String> metadata) 
 
-