Class DefaultJasperReportsRefreshService
java.lang.Object
de.hybris.platform.cockpit.reports.impl.DefaultJasperReportsRefreshService
- All Implemented Interfaces:
JasperReportsRefreshService
public class DefaultJasperReportsRefreshService
extends Object
implements JasperReportsRefreshService
Default implementation of
JasperReportsRefreshService-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRefresh all available reports.voidsetJasperReportsCacheService(JasperReportCacheService jasperReportsCacheService) voidstartRefreshing(WidgetPreferencesModel widget, RefreshTimeOption refreshOption) Start automatic refresh of the widget.voidstopRefreshing(WidgetPreferencesModel widget) Stop automatic refreshing of the widget
-
Constructor Details
-
DefaultJasperReportsRefreshService
public DefaultJasperReportsRefreshService()
-
-
Method Details
-
startRefreshing
Description copied from interface:JasperReportsRefreshServiceStart automatic refresh of the widget. This method should be called each time the refresh requirements have changed and when a widget is loaded in the system. Initially, the method does not have to be called, because default refresh rate is set to NEVER. Two consecutive calls are allowed.- Specified by:
startRefreshingin interfaceJasperReportsRefreshService
-
stopRefreshing
Description copied from interface:JasperReportsRefreshServiceStop automatic refreshing of the widget- Specified by:
stopRefreshingin interfaceJasperReportsRefreshService
-
onRefresh
public boolean onRefresh()Description copied from interface:JasperReportsRefreshServiceRefresh all available reports. Returns true if page update is required- Specified by:
onRefreshin interfaceJasperReportsRefreshService
-
setJasperReportsCacheService
- Parameters:
jasperReportsCacheService- the jasperReportsCacheService to set
-