Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit e751079

Browse files
lgallgal
authored andcommitted
SORMAS-Foundation#2975 hide BAG contact export as it's not yet finalized
1 parent 3392227 commit e751079

1 file changed

Lines changed: 18 additions & 20 deletions

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactsView.java

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@
4040
import com.vaadin.v7.ui.ComboBox;
4141
import com.vaadin.v7.ui.OptionGroup;
4242

43-
import de.symeda.sormas.api.CountryHelper;
4443
import de.symeda.sormas.api.EntityRelevanceStatus;
4544
import de.symeda.sormas.api.FacadeProvider;
46-
import de.symeda.sormas.api.bagexport.BAGExportContactDto;
4745
import de.symeda.sormas.api.caze.CaseDataDto;
4846
import de.symeda.sormas.api.contact.ContactCriteria;
4947
import de.symeda.sormas.api.contact.ContactDto;
@@ -270,24 +268,24 @@ public ContactsView() {
270268
Descriptions.descFollowUpExportButton);
271269
}
272270

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+
// }
291289

292290
// Warning if no filters have been selected
293291
{

0 commit comments

Comments
 (0)