Interface PrologSubmitRuleUtil


public interface PrologSubmitRuleUtil
Provides prolog-related operations to different callers.
  • Method Details

    • isProjectRulesEnabled

      boolean isProjectRulesEnabled()
      Returns true if prolog rules are enabled for the project.
    • getSubmitType

      SubmitTypeRecord getSubmitType(ChangeData cd)
      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

      SubmitTypeRecord 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.

      Must only be called when Prolog rules are enabled on the Gerrit server.

    • evaluate

      SubmitRecord evaluate(ChangeData cd, String ruleToTest, boolean skipFilters)
      Evaluates a submit rule.

      Must only be called when Prolog rules are enabled on the Gerrit server.