Class CommitValidators
- java.lang.Object
-
- com.google.gerrit.server.git.validators.CommitValidators
-
public class CommitValidators extends Object
Represents a list of CommitValidationListeners to run for a push to one branch of one project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommitValidators.AccountCommitValidatorstatic classCommitValidators.AmendedGerritMergeCommitValidationListenerDon't allow the user to amend a merge created by Gerrit Code Review.static classCommitValidators.AuthorUploaderValidatorRequire that author matches the uploader.static classCommitValidators.BannedCommitsValidatorReject banned commits.static classCommitValidators.ChangeIdValidatorstatic classCommitValidators.CommitterUploaderValidatorRequire that committer matches the uploader.static classCommitValidators.ConfigValidatorIf this is the special project configuration branch, validate the config.static classCommitValidators.ExternalIdUpdateListenerValidates updates to refs/meta/external-ids.static classCommitValidators.Factorystatic classCommitValidators.GroupCommitValidatorRejects updates to group branches.static classCommitValidators.PluginCommitValidationListenerExecute commit validation plug-insstatic classCommitValidators.ProjectStateValidationListenerRejects updates to projects that don't allow writes.static classCommitValidators.SignedOffByValidatorstatic classCommitValidators.UploadMergesPermissionValidatorRequire permission to upload merge commits.
-
Field Summary
Fields Modifier and Type Field Description static PatternNEW_PATCHSET_PATTERN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CommitValidationMessage>validate(CommitReceivedEvent receiveEvent)
-
-
-
Field Detail
-
NEW_PATCHSET_PATTERN
public static final Pattern NEW_PATCHSET_PATTERN
-
-
Method Detail
-
validate
public List<CommitValidationMessage> validate(CommitReceivedEvent receiveEvent) throws CommitValidationException
- Throws:
CommitValidationException
-
-