Class DefaultJasperReportCacheService

java.lang.Object
de.hybris.platform.cockpit.reports.impl.DefaultJasperReportCacheService
All Implemented Interfaces:
JasperReportCacheService

public class DefaultJasperReportCacheService extends Object implements JasperReportCacheService
Default implementation for JasperReportCacheService
  • Constructor Details

    • DefaultJasperReportCacheService

      public DefaultJasperReportCacheService()
  • Method Details

    • getCompiledReport

      public net.sf.jasperreports.engine.JasperReport getCompiledReport(JasperWidgetPreferencesModel widget)
      Returns cached report. If no report is in the cache, the implementing class must create one, add it to the cache and return it.
      Specified by:
      getCompiledReport in interface JasperReportCacheService
      Parameters:
      widget - for which report is cached.
    • remove

      public boolean remove(JasperWidgetPreferencesModel widget)
      Removes widget from cache.
      Specified by:
      remove in interface JasperReportCacheService
      Parameters:
      widget - to be removed from cache
      Returns:
      true if widget has been removed, false otherwise
    • getImageForJasperWidgetPreferences

      public org.zkoss.image.AImage getImageForJasperWidgetPreferences(JasperWidgetPreferencesModel widget) throws JasperWidgetException
      Returns cached image for widget. If no image is in the cache, the implementing class must create one, add it to the cache and return it.
      Specified by:
      getImageForJasperWidgetPreferences in interface JasperReportCacheService
      Parameters:
      widget - for which image is cached
      Throws:
      JasperWidgetException - when problem with export report to image occurred
    • update

      public boolean update(JasperWidgetPreferencesModel widget)
      Updates cached report for specific widget.
      Specified by:
      update in interface JasperReportCacheService
      Parameters:
      widget - to be updated
    • invalidateAll

      public void invalidateAll()
      Clears cache
      Specified by:
      invalidateAll in interface JasperReportCacheService
    • setJasperMediaService

      public void setJasperMediaService(JasperMediaService jasperMediaService)
      Parameters:
      jasperMediaService - the jasperMediaService to set
    • setJasperReportCompileService

      public void setJasperReportCompileService(JasperReportCompileService jasperReportCompileService)
      Parameters:
      jasperReportCompileService - the jasperReportCompileService to set
    • setJasperReportFillService

      public void setJasperReportFillService(JasperReportFillService jasperReportFillService)
      Parameters:
      jasperReportFillService - the jasperReportFillService to set
    • setJasperReportExportService

      public void setJasperReportExportService(JasperReportExportService jasperReportExportService)
      Parameters:
      jasperReportExportService - the jasperReportExportService to set