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

Commit f93757c

Browse files
committed
Merge branch 'development' into 2644-populationDataInCampaignDiagrams
2 parents 8a7a8b4 + 01b85c2 commit f93757c

249 files changed

Lines changed: 8390 additions & 4857 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sormas-api/src/main/java/de/symeda/sormas/api/bagexport/BAGExportCaseDto.java

Lines changed: 230 additions & 159 deletions
Large diffs are not rendered by default.

sormas-api/src/main/java/de/symeda/sormas/api/bagexport/BAGExportContactDto.java

Lines changed: 140 additions & 170 deletions
Large diffs are not rendered by default.

sormas-api/src/main/java/de/symeda/sormas/api/i18n/Captions.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,9 @@ public interface Captions {
560560
String Country_externalId = "Country.externalId";
561561
String Country_isoCode = "Country.isoCode";
562562
String Country_unoCode = "Country.unoCode";
563+
String countryActiveCountries = "countryActiveCountries";
564+
String countryAllCountries = "countryAllCountries";
565+
String countryArchivedCountries = "countryArchivedCountries";
563566
String creationDate = "creationDate";
564567
String dashboardAlive = "dashboardAlive";
565568
String dashboardApplyCustomFilter = "dashboardApplyCustomFilter";
@@ -1372,6 +1375,7 @@ public interface Captions {
13721375
String SormasToSormasOptions_pseudonymizeSensitiveData = "SormasToSormasOptions.pseudonymizeSensitiveData";
13731376
String SormasToSormasOptions_withAssociatedContacts = "SormasToSormasOptions.withAssociatedContacts";
13741377
String SormasToSormasOptions_withSamples = "SormasToSormasOptions.withSamples";
1378+
String sormasToSormasReturn = "sormasToSormasReturn";
13751379
String sormasToSormasSentFrom = "sormasToSormasSentFrom";
13761380
String sormasToSormasShare = "sormasToSormasShare";
13771381
String sormasToSormasSharedBy = "sormasToSormasSharedBy";

sormas-api/src/main/java/de/symeda/sormas/api/i18n/Strings.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ public interface Strings {
416416
String headingSetOutbreakStatus = "headingSetOutbreakStatus";
417417
String headingSignsAndSymptoms = "headingSignsAndSymptoms";
418418
String headingSomeEventsNotDeleted = "headingSomeEventsNotDeleted";
419-
String headingSourceContacts = "headingSourceContacts";
420419
String headingStoppedFollowUp = "headingStoppedFollowUp";
421420
String headingTasksDeleted = "headingTasksDeleted";
422421
String headingTemplateNotAvailable = "headingTemplateNotAvailable";

sormas-api/src/main/java/de/symeda/sormas/api/i18n/Validations.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public interface Validations {
9999
String sormasToSormasContactCaseNotExists = "sormasToSormasContactCaseNotExists";
100100
String sormasToSormasContactExists = "sormasToSormasContactExists";
101101
String sormasToSormasOrganizationIdMissing = "sormasToSormasOrganizationIdMissing";
102+
String sormasToSormasReturnCaseNotExists = "sormasToSormasReturnCaseNotExists";
103+
String sormasToSormasReturnContactNotExists = "sormasToSormasReturnContactNotExists";
102104
String sormasToSormasSampleExists = "sormasToSormasSampleExists";
103105
String sormasToSormasSenderNameMissing = "sormasToSormasSenderNameMissing";
104106
String sormasToSormasShareInfoMissing = "sormasToSormasShareInfoMissing";

sormas-api/src/main/java/de/symeda/sormas/api/region/CountryDto.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import de.symeda.sormas.api.EntityDto;
66
import de.symeda.sormas.api.utils.DataHelper;
77

8+
import java.util.Date;
9+
810
public class CountryDto extends EntityDto {
911

1012
private static final long serialVersionUID = 8309822957203823162L;
@@ -23,6 +25,27 @@ public class CountryDto extends EntityDto {
2325
private String unoCode;
2426
private boolean archived;
2527

28+
public CountryDto(Date creationDate,
29+
Date changeDate,
30+
String uuid,
31+
boolean archived,
32+
String defaultName,
33+
String externalId,
34+
String isoCode,
35+
String unoCode) {
36+
37+
super(creationDate, changeDate, uuid);
38+
this.archived = archived;
39+
this.defaultName = defaultName;
40+
this.externalId = externalId;
41+
this.isoCode = isoCode;
42+
this.unoCode = unoCode;
43+
}
44+
45+
public CountryDto() {
46+
super();
47+
}
48+
2649
public String getDefaultName() {
2750
return defaultName;
2851
}

sormas-api/src/main/java/de/symeda/sormas/api/region/CountryFacade.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package de.symeda.sormas.api.region;
22

3+
import java.util.Date;
34
import java.util.List;
45

56
import javax.ejb.Remote;
@@ -22,4 +23,10 @@ public interface CountryFacade {
2223
void archive(String countryUuid);
2324

2425
void dearchive(String countryUuid);
26+
27+
List<CountryDto> getAllAfter(Date date);
28+
29+
List<CountryDto> getByUuids(List<String> uuids);
30+
31+
List<String> getAllUuids();
2532
}

sormas-api/src/main/java/de/symeda/sormas/api/sormastosormas/SormasToSormasFacade.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ public interface SormasToSormasFacade {
3030

3131
void shareContacts(List<String> contactUuids, SormasToSormasOptionsDto options) throws SormasToSormasException;
3232

33+
void returnCase(String caseUuid, SormasToSormasOptionsDto options) throws SormasToSormasException;
34+
35+
void returnContact(String contactUuid, SormasToSormasOptionsDto options) throws SormasToSormasException;
36+
37+
void saveReturnedCase(SormasToSormasEncryptedDataDto sharedCase) throws SormasToSormasException, SormasToSormasValidationException;
38+
39+
void saveReturnedContact(SormasToSormasEncryptedDataDto sharedContact) throws SormasToSormasException, SormasToSormasValidationException;
40+
3341
List<ServerAccessDataReferenceDto> getAvailableOrganizations();
3442

3543
ServerAccessDataReferenceDto getOrganizationRef(String id);
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* SORMAS® - Surveillance Outbreak Response Management & Analysis System
3+
* Copyright © 2016-2020 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
14+
*/
15+
16+
package de.symeda.sormas.api.sormastosormas;
17+
18+
import javax.ejb.Remote;
19+
20+
@Remote
21+
public interface SormasToSormasOriginInfoFacade {
22+
}

sormas-api/src/main/resources/captions.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,10 @@ PrescriptionExport.caseUuid=Case ID
13321332
PrescriptionExport.caseName=Case name
13331333

13341334
# Country
1335+
countryActiveCountries=Active countries
1336+
countryArchivedCountries=Archived countries
1337+
countryAllCountries=All countries
1338+
13351339
Country.archived=Archived
13361340
Country.externalId=External ID
13371341
Country.defaultName=Default name
@@ -1935,6 +1939,7 @@ sormasToSormasDialogTitle=Share with health department
19351939
sormasToSormasErrorDialogTitle=Error while sharing with another health department
19361940
sormasToSormasListTitle=Share
19371941
sormasToSormasShare=Share
1942+
sormasToSormasReturn=Return
19381943
sormasToSormasCaseNotShared=This case is not shared
19391944
sormasToSormasContactNotShared=This contact is not shared
19401945
sormasToSormasSharedWith=Shared with

0 commit comments

Comments
 (0)