/** * Returns the ordered list of report IDs to render. * * @return the ordered list of report IDs to render. */ public List<ExternalReport> getReports() { return getReports(getReportIds()); }
/** * Registers a report with the given identifier and strategy. * <p> * Note that no report will be registered, if the factory of this instance is * not set. * </p> * * @param reportId the identifier of the report to register. * @param strategy the link constructor strategy to use. * @return <code>true</code> if the report has been created and registered, * <code>false</code> otherwise. */ public boolean registerReport(final ReportId reportId, final LinkConstructorStrategy strategy) { return registerReport(true, reportId, strategy); }
/** * Returns the list of reports with the given IDs. * * @param reportIds the IDs of the requested reports. * @return the list of reports, which may be empty, but is never * <code>null</code>. */ public List<ExternalReport> getReports(final List<ReportId> reportIds) { final List<ExternalReport> reports = new ArrayList<ExternalReport>(reportIds.size()); for (final ReportId reportId : reportIds) { reports.add(get(reportId)); } return reports; }