use of org.opennms.features.reporting.repository.ReportRepository in project opennms by OpenNMS.
the class DefaultDatabaseReportListService method getAllOnline.
/**
* <p>
* getAll Reports from all Repositories
* </p>
*
* @return a {@link java.util.List} object.
*/
@Deprecated
@Override
public List<DatabaseReportDescription> getAllOnline() {
List<DatabaseReportDescription> onlineReports = new ArrayList<>();
for (ReportRepository m_repo : m_globalReportRepository.getRepositoryList()) {
for (BasicReportDefinition report : m_repo.getOnlineReports()) {
DatabaseReportDescription summary = new DatabaseReportDescription();
summary.setRepositoryId(m_repo.getRepositoryId());
summary.setId(report.getId());
summary.setDisplayName(report.getDisplayName());
summary.setDescription(report.getDescription());
summary.setIsOnline(report.getOnline());
summary.setAllowAccess(report.getAllowAccess());
onlineReports.add(summary);
}
}
return onlineReports;
}
Aggregations