Package com.google.gerrit.server.project
Class PrologRulesBlockerValidator
- java.lang.Object
-
- com.google.gerrit.server.project.PrologRulesBlockerValidator
-
- All Implemented Interfaces:
CommitValidationListener
public class PrologRulesBlockerValidator extends Object implements CommitValidationListener
A validator than bans creation of new Prolog rules. Modification and deletion will be allowed so that clients can get rid of prolog rules. New rules should use submit-requirements instead.
-
-
Constructor Summary
Constructors Constructor Description PrologRulesBlockerValidator(DiffOperations diffOperations)
-
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
-
PrologRulesBlockerValidator
@Inject public PrologRulesBlockerValidator(DiffOperations diffOperations)
-
-
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
-
-