Interface ReportExporterService


  • @ProviderType
    public interface ReportExporterService
    This plugin can export a report generated by the ReportGeneratorService service. The exported report can be serialized into a specific format and optionally be transformed by a template engine.

    The service can be extended by implementing the ReportSerializerPlugin and the ReportTransformerPlugin interfaces respectively to support additional serialization format and additional template engine.

    • Method Detail

      • getAvailableReportsOf

        java.util.List<java.lang.String> getAvailableReportsOf​(java.lang.Object source)
        Parameters:
        source - the targeted source object to report, may be null
        Returns:
        the list of report destination file paths which can be extracted, never null
      • exportReportsOf

        java.util.Map<java.lang.String,​Resource> exportReportsOf​(java.lang.Object source)
        Export the reports of the specified source object.
        Parameters:
        source - the source object to report, may be null
        Returns:
        a map whose key are the user defined destination file path and value are the resulting report resource, never null