|
40 | 40 | import com.vaadin.v7.ui.ComboBox; |
41 | 41 | import com.vaadin.v7.ui.OptionGroup; |
42 | 42 |
|
43 | | -import de.symeda.sormas.api.CountryHelper; |
44 | 43 | import de.symeda.sormas.api.EntityRelevanceStatus; |
45 | 44 | import de.symeda.sormas.api.FacadeProvider; |
46 | | -import de.symeda.sormas.api.bagexport.BAGExportContactDto; |
47 | 45 | import de.symeda.sormas.api.caze.CaseDataDto; |
48 | 46 | import de.symeda.sormas.api.contact.ContactCriteria; |
49 | 47 | import de.symeda.sormas.api.contact.ContactDto; |
@@ -270,24 +268,24 @@ public ContactsView() { |
270 | 268 | Descriptions.descFollowUpExportButton); |
271 | 269 | } |
272 | 270 |
|
273 | | - if (FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_SWITZERLAND) |
274 | | - && UserProvider.getCurrent().hasUserRight(UserRight.BAG_EXPORT)) { |
275 | | - StreamResource bagExportResource = DownloadUtil.createCsvExportStreamResource( |
276 | | - BAGExportContactDto.class, |
277 | | - null, |
278 | | - (Integer start, Integer max) -> FacadeProvider.getBAGExportFacade().getContactExportList(start, max), |
279 | | - (propertyId, type) -> { |
280 | | - String caption = I18nProperties.findPrefixCaption(propertyId); |
281 | | - if (Date.class.isAssignableFrom(type)) { |
282 | | - caption += " (" + DateFormatHelper.getDateFormatPattern() + ")"; |
283 | | - } |
284 | | - return caption; |
285 | | - }, |
286 | | - createFileNameWithCurrentDate("sormas_BAG_contacts_", ".csv"), |
287 | | - null); |
288 | | - |
289 | | - addExportButton(bagExportResource, exportButton, exportLayout, VaadinIcons.FILE_TEXT, Captions.BAGExport, Strings.infoBAGExport); |
290 | | - } |
| 271 | +// if (FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_SWITZERLAND) |
| 272 | +// && UserProvider.getCurrent().hasUserRight(UserRight.BAG_EXPORT)) { |
| 273 | +// StreamResource bagExportResource = DownloadUtil.createCsvExportStreamResource( |
| 274 | +// BAGExportContactDto.class, |
| 275 | +// null, |
| 276 | +// (Integer start, Integer max) -> FacadeProvider.getBAGExportFacade().getContactExportList(start, max), |
| 277 | +// (propertyId, type) -> { |
| 278 | +// String caption = I18nProperties.findPrefixCaption(propertyId); |
| 279 | +// if (Date.class.isAssignableFrom(type)) { |
| 280 | +// caption += " (" + DateFormatHelper.getDateFormatPattern() + ")"; |
| 281 | +// } |
| 282 | +// return caption; |
| 283 | +// }, |
| 284 | +// createFileNameWithCurrentDate("sormas_BAG_contacts_", ".csv"), |
| 285 | +// null); |
| 286 | +// |
| 287 | +// addExportButton(bagExportResource, exportButton, exportLayout, VaadinIcons.FILE_TEXT, Captions.BAGExport, Strings.infoBAGExport); |
| 288 | +// } |
291 | 289 |
|
292 | 290 | // Warning if no filters have been selected |
293 | 291 | { |
|
0 commit comments