Class MetadataJasperPdfExportHooker

java.lang.Object
net.datenwerke.rs.incubator.service.exportmetadata.hookers.MetadataJasperPdfExportHooker
All Implemented Interfaces:
Hook, JasperExportHook

public class MetadataJasperPdfExportHooker extends Object implements JasperExportHook
This is a ExportCallback used to set information metadata in supported file formats. Currently the only supported one is PDF.
  • Constructor Details

    • MetadataJasperPdfExportHooker

      public MetadataJasperPdfExportHooker(ExportMetadataService exportMetadataService)
  • Method Details

    • beforeExport

      public void beforeExport(String type, JRExporter exporter, JasperReport report, User user)
      Sets the three configurable metadata fields for PDF files.
      Specified by:
      beforeExport in interface JasperExportHook
      Parameters:
      type - The type of the exporter.
      exporter - The JRExporter to operate on.
    • getFormats

      public Collection<String> getFormats()
      Description copied from interface: JasperExportHook
      Provides a list of supported export formats.
      Specified by:
      getFormats in interface JasperExportHook
      Returns:
      A string array with each element holding one supported export format.
    • afterExport

      public void afterExport(String type, JRExporter exporter, JasperReport report, CompiledRSJasperReport compiledReport, User user)
      Nothing to do after an export.
      Specified by:
      afterExport in interface JasperExportHook
      Parameters:
      type - The type of the exporter.
      exporter - The JRExporter to operate on.