Class SubmitRuleEvaluator

java.lang.Object
com.google.gerrit.server.project.SubmitRuleEvaluator

public class SubmitRuleEvaluator extends Object
Evaluates a submit-like Prolog rule found in the rules.pl file of the current project and filters the results through rules found in the parent projects, all the way up to All-Projects.
  • Method Details

    • evaluate

      public List<SubmitRecord> evaluate(ChangeData cd)
      Evaluate the submit rules.
      Parameters:
      cd - ChangeData to evaluate
      Returns:
      List of SubmitRecord objects returned from the evaluated rules, including any errors.
    • getSubmitType

      public SubmitTypeRecord getSubmitType(ChangeData cd)
      Evaluate the submit type rules to get the submit type.
      Returns:
      record from the evaluated rules.