Search in sources :

Example 1 with Report

use of org.opennms.netmgt.config.reporting.Report in project opennms by OpenNMS.

the class OpennmsReportsTest method getReports.

private static OpennmsReports getReports() {
    OpennmsReports reports = new OpennmsReports();
    Report report = new Report();
    report.setType("pdf");
    report.setId("my-report");
    report.setLogo("ulf");
    reports.addReport(report);
    Parameters parms = new Parameters();
    report.setParameters(parms);
    StringParm sp = new StringParm();
    sp.setDisplayName("key");
    sp.setInputType("freeText");
    sp.setName("k");
    sp.setDefault("v");
    parms.addStringParm(sp);
    return reports;
}
Also used : Parameters(org.opennms.netmgt.config.reporting.Parameters) Report(org.opennms.netmgt.config.reporting.Report) OpennmsReports(org.opennms.netmgt.config.reporting.OpennmsReports)

Aggregations

OpennmsReports (org.opennms.netmgt.config.reporting.OpennmsReports)1 Parameters (org.opennms.netmgt.config.reporting.Parameters)1 Report (org.opennms.netmgt.config.reporting.Report)1