Skip to content

Commit

Permalink
fix: re-add endpoint thast was lost during merges
Browse files Browse the repository at this point in the history
OCD-2037
  • Loading branch information
tmy1313 committed Jan 2, 2025
1 parent afdb6b5 commit d569b6a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import gov.healthit.chpl.report.listing.UniqueListingCount;
import gov.healthit.chpl.report.product.ProductByAcb;
import gov.healthit.chpl.report.product.UniqueProductCount;
import gov.healthit.chpl.report.servicebaseurllistreport.UrlUptimeMonitorEx;
import gov.healthit.chpl.report.surveillance.CapCounts;
import gov.healthit.chpl.report.surveillance.NonconformityCounts;
import gov.healthit.chpl.report.surveillance.SurveillanceActivityCounts;
Expand Down Expand Up @@ -407,4 +408,13 @@ public ReportDataController(ReportDataManager reportDataManager, DeveloperSearch
return reportDataManager.getDirectReviewCounts();
}

@Operation(summary = "Retrieves the data used to generate the Service Base Url List report.",
description = "Retrieves the data used to generate the Service Base Url List report.",
security = {
@SecurityRequirement(name = SwaggerSecurityRequirement.API_KEY)
})
@RequestMapping(value = "/service-base-url-list", method = RequestMethod.GET, produces = "application/json; charset=utf-8")
public @ResponseBody List<UrlUptimeMonitorEx> getUrlUptimeMonitors() {
return reportDataManager.getUrlUptimeMonitors();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import gov.healthit.chpl.report.product.ProductByAcb;
import gov.healthit.chpl.report.product.ProductReportsService;
import gov.healthit.chpl.report.product.UniqueProductCount;
import gov.healthit.chpl.report.servicebaseurllistreport.ServiceBaseUrlListReportService;
import gov.healthit.chpl.report.servicebaseurllistreport.UrlUptimeMonitorEx;
import gov.healthit.chpl.report.surveillance.CapCounts;
import gov.healthit.chpl.report.surveillance.NonconformityCounts;
import gov.healthit.chpl.report.surveillance.SurveillanceActivityCounts;
Expand All @@ -41,18 +43,26 @@ public class ReportDataManager {
private DirectReviewReportsService directReviewReportsService;
private ReportMetadataDAO reportMetadataDAO;
private CriteriaAttributeReportService criteriaAttributeReportService;
private ServiceBaseUrlListReportService serviceBaseUrlListReportService;

@Autowired
public ReportDataManager(CriteriaMigrationReportService criteriaMigrationReportService, DeveloperReportsService developerReportsService,
SurveillanceReportsService surveillanceReportsService, ProductReportsService productReportsService, ListingReportsService listingReportsService,
DirectReviewReportsService directReviewReportsService, ReportMetadataDAO reportMetadataDAO, CriteriaAttributeReportService criteriaAttributeReportService) {
public ReportDataManager(CriteriaMigrationReportService criteriaMigrationReportService,
DeveloperReportsService developerReportsService,
SurveillanceReportsService surveillanceReportsService,
ProductReportsService productReportsService,
ListingReportsService listingReportsService,
DirectReviewReportsService directReviewReportsService,
ReportMetadataDAO reportMetadataDAO,
CriteriaAttributeReportService criteriaAttributeReportService,
ServiceBaseUrlListReportService serviceBaseUrlListReportService) {
this.criteriaMigrationReportService = criteriaMigrationReportService;
this.developerReportsService = developerReportsService;
this.surveillanceReportsService = surveillanceReportsService;
this.productReportsService = productReportsService;
this.listingReportsService = listingReportsService;
this.reportMetadataDAO = reportMetadataDAO;
this.criteriaAttributeReportService = criteriaAttributeReportService;
this.serviceBaseUrlListReportService = serviceBaseUrlListReportService;
}

public List<ReportMetadata> getReportMetadataByReportGroup(String reportGroup) {
Expand Down Expand Up @@ -234,4 +244,10 @@ public DirectReviewCounts getDirectReviewCounts() {
public CriteriaAttributeReportService getCriteriaAttributeAttributeService() {
return criteriaAttributeReportService;
}

@Synchronized("lock")
public List<UrlUptimeMonitorEx> getUrlUptimeMonitors() {
return serviceBaseUrlListReportService.getUrlUptimeMonitors();
}

}

0 comments on commit d569b6a

Please sign in to comment.