コード例 #1
0
  private boolean jobMatchesRunWhereClause(
      StaplerRequest request, Job<?, ?> job, WhereClause whereClause) {
    if (whereClause == null) {
      return true;
    }

    for (SimpleTerm term : whereClause.children()) {
      PName pname = term.property();
      String prop = pname.namespace + pname.local;
      if (prop.equals(AutomationConstants.AUTOMATION_NAMESPACE + "reportsOnAutomationPlan")
          && !uriMatches(getJobURI(job), term)) {
        return false;
      }
    }

    return true;
  }