Esempio n. 1
0
  @Override
  public ProblemReport mergeReport(ProblemReport old, ProblemReport other) {
    ProblemReportMerger merger = new ProblemReportMerger(old);

    other.accept(merger);
    return old;
  }
Esempio n. 2
0
  @Override
  protected ProblemReport merge(
      ModelRequest request, List<ModelResponse<ProblemReport>> responses) {
    if (responses.size() == 0) {
      return null;
    }
    ProblemReportMerger merger = new ProblemReportMerger(new ProblemReport(request.getDomain()));

    for (ModelResponse<ProblemReport> response : responses) {
      if (response != null) {
        ProblemReport model = response.getModel();

        if (model != null) {
          model.accept(merger);
        }
      }
    }

    return merger.getProblemReport();
  }
Esempio n. 3
0
  public ProblemReport rebuildFrontEndReport(ProblemReport report) {
    m_problemReportAggregation.refreshRule();
    report.accept(m_problemReportAggregation);

    return m_problemReportAggregation.getReport();
  }