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

    other.accept(merger);
    return old;
  }
Exemplo 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();
  }
Exemplo n.º 3
0
  public ProblemReport rebuildFrontEndReport(ProblemReport report) {
    m_problemReportAggregation.refreshRule();
    report.accept(m_problemReportAggregation);

    return m_problemReportAggregation.getReport();
  }