Package com.google.gerrit.server.rules
Interface PrologSubmitRuleUtil
public interface PrologSubmitRuleUtil
Provides prolog-related operations to different callers.
- 
Method SummaryModifier 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.booleanReturns true if prolog rules are enabled for the project.
- 
Method Details- 
isProjectRulesEnabledboolean isProjectRulesEnabled()Returns true if prolog rules are enabled for the project.
- 
getSubmitTypeReturns 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. 
- 
getSubmitTypeReturns 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. 
- 
evaluateEvaluates a submit rule.Must only be called when Prolog rules are enabled on the Gerrit server. 
 
-