Search in sources :

Example 1 with EventDownloadUtil

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;
}
Also used : ExportPropertyMetaInfo(de.symeda.sormas.api.importexport.ExportPropertyMetaInfo) ExportConfigurationDto(de.symeda.sormas.api.importexport.ExportConfigurationDto) EventDownloadUtil(de.symeda.sormas.ui.utils.EventDownloadUtil)

Aggregations

ExportConfigurationDto (de.symeda.sormas.api.importexport.ExportConfigurationDto)1 ExportPropertyMetaInfo (de.symeda.sormas.api.importexport.ExportPropertyMetaInfo)1 EventDownloadUtil (de.symeda.sormas.ui.utils.EventDownloadUtil)1