use of de.symeda.sormas.ui.utils.EventDownloadUtil in project SORMAS-Project by hzi-braunschweig.
the class EventsView method buildDetailedExportConfiguration.
private ExportConfigurationDto buildDetailedExportConfiguration() {
ExportConfigurationDto config = ExportConfigurationDto.build(UserProvider.getCurrent().getUserReference(), null);
boolean eventGroupFeatureEnabled = FacadeProvider.getFeatureConfigurationFacade().isFeatureEnabled(FeatureType.EVENT_GROUPS);
config.setProperties(ImportExportUtils.getEventExportProperties(EventDownloadUtil::getPropertyCaption, eventGroupFeatureEnabled, FacadeProvider.getConfigFacade().getCountryLocale()).stream().map(ExportPropertyMetaInfo::getPropertyId).collect(Collectors.toSet()));
return config;
}
Aggregations