Search in sources :

Example 1 with ReportFormat

use of org.opennms.api.reporting.ReportFormat in project opennms by OpenNMS.

the class DefaultReportStoreService method getFormatMap.

/**
 * <p>getFormatMap</p>
 *
 * @return a {@link java.util.Map} object.
 */
@Override
public Map<String, Object> getFormatMap() {
    final HashMap<String, Object> formatMap = new HashMap<String, Object>();
    for (final BasicReportDefinition report : m_globalReportRepository.getAllReports()) {
        final List<ReportFormat> formats = m_reportServiceLocator.getReportService(report.getReportService()).getFormats(report.getId());
        formatMap.put(report.getId(), formats);
    }
    return formatMap;
}
Also used : HashMap(java.util.HashMap) ReportFormat(org.opennms.api.reporting.ReportFormat) BasicReportDefinition(org.opennms.features.reporting.model.basicreport.BasicReportDefinition)

Aggregations

HashMap (java.util.HashMap)1 ReportFormat (org.opennms.api.reporting.ReportFormat)1 BasicReportDefinition (org.opennms.features.reporting.model.basicreport.BasicReportDefinition)1