Class CommitValidators.ConfigValidator
- java.lang.Object
-
- com.google.gerrit.server.git.validators.CommitValidators.ConfigValidator
-
- All Implemented Interfaces:
CommitValidationListener
- Enclosing class:
- CommitValidators
public static class CommitValidators.ConfigValidator extends Object implements CommitValidationListener
If this is the special project configuration branch, validate the config.
-
-
Constructor Summary
Constructors Constructor Description ConfigValidator(ProjectConfig.Factory projectConfigFactory, Branch.NameKey branch, IdentifiedUser user, org.eclipse.jgit.revwalk.RevWalk rw, AllUsersName allUsers, AllProjectsName allProjects)
-
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
-
-
-
-
Constructor Detail
-
ConfigValidator
public ConfigValidator(ProjectConfig.Factory projectConfigFactory, Branch.NameKey branch, IdentifiedUser user, org.eclipse.jgit.revwalk.RevWalk rw, AllUsersName allUsers, AllProjectsName allProjects)
-
-
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
-
-