use of com.haulmont.cuba.web.filestorage.WebExportDisplay in project cuba by cuba-platform.
the class DomainProvider method run.
@Override
public void run() {
DomainDescriptionService service = AppBeans.get(DomainDescriptionService.NAME);
String description = service.getDomainDescription();
ExportDisplay exportDisplay = AppBeans.get(ExportDisplay.class);
((WebExportDisplay) exportDisplay).setNewWindow(true);
exportDisplay.show(new ByteArrayDataProvider(description.getBytes(StandardCharsets.UTF_8)), "domain-description.html", ExportFormat.HTML);
}
Aggregations