Package com.google.gerrit.server.rules
Interface PrologSubmitRuleUtil
public interface PrologSubmitRuleUtil
Provides prolog-related operations to different callers.
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(ChangeData cd, String ruleToTest, boolean skipFilters) Evaluates a submit rule.Returns the submit-type of a change depending on the change data and the definition of the prolog rules file.getSubmitType
(ChangeData cd, String ruleToTest, boolean skipFilters) Returns the submit-type of a change depending on the change data and the definition of the prolog rules file.boolean
Returns true if prolog rules are enabled for the project.
-
Method Details
-
isProjectRulesEnabled
boolean isProjectRulesEnabled()Returns true if prolog rules are enabled for the project. -
getSubmitType
Returns the submit-type of a change depending on the change data and the definition of the prolog rules file.Must only be called when Prolog rules are enabled on the Gerrit server.
-
getSubmitType
Returns the submit-type of a change depending on the change data and the definition of the prolog rules file.Must only be called when Prolog rules are enabled on the Gerrit server.
-
evaluate
Evaluates a submit rule.Must only be called when Prolog rules are enabled on the Gerrit server.
-