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

Commit 11f1e85

Browse files
author
jenkins
committed
[GITFLOW]merging 'release-1.44.0' into 'master'
2 parents c824be9 + 382fd20 commit 11f1e85

482 files changed

Lines changed: 16546 additions & 10621 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.

ADDING_LICENSE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ the Free Software Foundation, either version 3 of the License, or
1414
1515
This program is distributed in the hope that it will be useful,
1616
but WITHOUT ANY WARRANTY; without even the implied warranty of
17-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1818
GNU General Public License for more details.
1919
2020
You should have received a copy of the GNU General Public License
21-
along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
along with this program. If not, see <https://www.gnu.org/licenses/>.
2222
```
2323

2424
## Eclipse
@@ -27,9 +27,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
2727
- Make sure to select "Replace all existing copyright comments with this copyright template" and especially "Skip over XML files" (to make sure that headers don't get added to e.g. build files)
2828
- Whenever you create a new source file: Right click on the file and select "Fix Copyrights"
2929

30-
## Android Studio
30+
## Android Studio/IntelliJ
3131
- Open File > Settings > Editor > Copyright > Copyright Profiles
3232
- Create a new profile and paste the license header from above into the Copyright text area
33-
- Right click on the "app" project and select "Update Copyright...", select "Custom Scope" and in the dropdown, select "Project Source Files"
34-
- Click "Ok" and wait until the copyright has been added to all files
33+
- Head back to the general Copyright settings and select the new copyright profile as the "Default project copyright"
34+
- (Optional: If the year has changed, right click on all projects containing manual code and select "Update Copyright...", select "Custom Scope" and in the dropdown, select "Project Source Files"; Click "Ok" and wait until the copyright has been added to/changed for all files)
3535
- Android Studio automatically adds the copyright to newly created files afterwards

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ The SORMAS sprint board is segmented into the following categories:
8686
* **Backlog:** Issues that have been selected to be done in the current sprint, but for which work has not yet started.
8787
* **In Progress:** Issues that have been assigned to a contributor and for which work has started.
8888
* **Waiting:** Issues for which work has started and that have been put on hold, e.g. because action or feedback by an external contributor is required.
89-
* **Review:** Issues that have been resolved, but not been reviewed by another contributor yet.
90-
* **Done:** Issues that have been resolved, reviewed and satisfy the Definition of Done.
89+
* **Review:** Issues that have been resolved, but not been reviewed by another contributor yet. The ticket status is usually **Open**, but **Closed** is also allowed if no code change or merge is needed.
90+
* **Done:** Issues that have been resolved, reviewed and satisfy the Definition of Done. The ticket status is supposed to be **Closed**.
9191

9292
The general workflow is that whenever a contributor starts working on an issue, they **assign** themselves to it and manually **move the issue** from **Backlog** to **In Progress**.
9393

94-
The GitHub project has been configured to **automatically** move issues that are closed to **Review** and issues that are reopened back to **In Progress**.
94+
The GitHub project has been configured to **automatically** move issues that are closed to **Done** and issues that are reopened back to **In Progress**.
9595

9696
### Eclipse Troubleshooting
9797

SERVER_DEV_SETUP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Download and install Ant, it can be done from [Ant site](https://ant.apache.org/
2525

2626
### Postgres Database
2727

28-
See [Installing Postgresql](SERVER_SETUP.md#java-8)
28+
See [Installing Postgresql](SERVER_SETUP.md#postgres-database)
2929

3030
Alternatively you can use the Docker image available in [SORMAS-Docker](https://github.com/hzi-braunschweig/SORMAS-Docker) repository.
3131

sormas-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<parent>
33
<groupId>de.symeda.sormas</groupId>
44
<artifactId>sormas-base</artifactId>
5-
<version>1.43.2</version>
5+
<version>1.44.0</version>
66
<relativePath>../sormas-base</relativePath>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>

sormas-api/src/main/java/de/symeda/sormas/api/ConfigFacade.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
*******************************************************************************/
1818
package de.symeda.sormas.api;
1919

20-
import javax.ejb.Remote;
21-
2220
import de.symeda.sormas.api.region.GeoLatLon;
2321

22+
import javax.ejb.Remote;
23+
2424
@Remote
2525
public interface ConfigFacade {
2626

@@ -62,6 +62,14 @@ public interface ConfigFacade {
6262

6363
boolean isDevMode();
6464

65+
boolean isCustomBranding();
66+
67+
String getCustomBrandingName();
68+
69+
String getCustomBrandingLogoPath();
70+
71+
String getSormasInstanceName();
72+
6573
double getNameSimilarityThreshold();
6674

6775
int getInfrastructureSyncThreshold();

sormas-api/src/main/java/de/symeda/sormas/api/FacadeProvider.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import javax.naming.NamingException;
2222

2323
import de.symeda.sormas.api.campaign.CampaignFacade;
24+
import de.symeda.sormas.api.campaign.data.CampaignFormDataFacade;
25+
import de.symeda.sormas.api.campaign.form.CampaignFormFacade;
2426
import de.symeda.sormas.api.caze.CaseFacade;
2527
import de.symeda.sormas.api.caze.CaseStatisticsFacade;
2628
import de.symeda.sormas.api.caze.classification.CaseClassificationFacade;
@@ -260,6 +262,14 @@ public static CampaignFacade getCampaignFacade() {
260262
return get().lookupEjbRemote(CampaignFacade.class);
261263
}
262264

265+
public static CampaignFormFacade getCampaignFormFacade() {
266+
return get().lookupEjbRemote(CampaignFormFacade.class);
267+
}
268+
269+
public static CampaignFormDataFacade getCampaignFormDataFacade() {
270+
return get().lookupEjbRemote(CampaignFormDataFacade.class);
271+
}
272+
263273
public static AreaFacade getAreaFacade() {
264274
return get().lookupEjbRemote(AreaFacade.class);
265275
}

sormas-api/src/main/java/de/symeda/sormas/api/campaign/CampaignFacade.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
package de.symeda.sormas.api.campaign;
22

3-
import java.util.List;
3+
import de.symeda.sormas.api.utils.SortProperty;
44

55
import javax.ejb.Remote;
6-
7-
import de.symeda.sormas.api.utils.SortProperty;
6+
import java.util.List;
87

98
@Remote
109
public interface CampaignFacade {
1110

1211
List<CampaignIndexDto> getIndexList(CampaignCriteria campaignCriteria, Integer first, Integer max, List<SortProperty> sortProperties);
1312

13+
List<CampaignReferenceDto> getAllCampaignsAsReference();
14+
1415
long count(CampaignCriteria campaignCriteria);
1516

1617
CampaignDto saveCampaign(CampaignDto dto);
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* ******************************************************************************
3+
* * SORMAS® - Surveillance Outbreak Response Management & Analysis System
4+
* * Copyright © 2016-2020 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
5+
* *
6+
* * This program is free software: you can redistribute it and/or modify
7+
* * it under the terms of the GNU General Public License as published by
8+
* * the Free Software Foundation, either version 3 of the License, or
9+
* * (at your option) any later version.
10+
* *
11+
* * This program is distributed in the hope that it will be useful,
12+
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* * GNU General Public License for more details.
15+
* *
16+
* * You should have received a copy of the GNU General Public License
17+
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
* ******************************************************************************
19+
*/
20+
21+
package de.symeda.sormas.api.campaign;
22+
23+
import de.symeda.sormas.api.ReferenceDto;
24+
25+
public class CampaignReferenceDto extends ReferenceDto {
26+
27+
public CampaignReferenceDto() {
28+
}
29+
30+
public CampaignReferenceDto(String uuid) {
31+
setUuid(uuid);
32+
}
33+
34+
public CampaignReferenceDto(String uuid, String caption) {
35+
setUuid(uuid);
36+
setCaption(caption);
37+
}
38+
}
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
/*
2+
* ******************************************************************************
3+
* * SORMAS® - Surveillance Outbreak Response Management & Analysis System
4+
* * Copyright © 2016-2020 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
5+
* *
6+
* * This program is free software: you can redistribute it and/or modify
7+
* * it under the terms of the GNU General Public License as published by
8+
* * the Free Software Foundation, either version 3 of the License, or
9+
* * (at your option) any later version.
10+
* *
11+
* * This program is distributed in the hope that it will be useful,
12+
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* * GNU General Public License for more details.
15+
* *
16+
* * You should have received a copy of the GNU General Public License
17+
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
* ******************************************************************************
19+
*/
20+
21+
package de.symeda.sormas.api.campaign.data;
22+
23+
import de.symeda.sormas.api.EntityDto;
24+
import de.symeda.sormas.api.campaign.CampaignReferenceDto;
25+
import de.symeda.sormas.api.campaign.form.CampaignFormReferenceDto;
26+
import de.symeda.sormas.api.region.CommunityReferenceDto;
27+
import de.symeda.sormas.api.region.DistrictReferenceDto;
28+
import de.symeda.sormas.api.region.RegionReferenceDto;
29+
import de.symeda.sormas.api.utils.DataHelper;
30+
31+
import java.util.List;
32+
33+
public class CampaignFormDataDto extends EntityDto {
34+
35+
private static final long serialVersionUID = -8087195060395038093L;
36+
37+
public static final String I18N_PREFIX = "campaignformdata";
38+
39+
public static final String CAMPAIGN = "campaign";
40+
public static final String REGION = "region";
41+
public static final String DISTRICT = "district";
42+
public static final String COMMUNITY = "community";
43+
44+
private List<CampaignFormValue> formValues;
45+
private CampaignReferenceDto campaign;
46+
private CampaignFormReferenceDto campaignForm;
47+
private RegionReferenceDto region;
48+
private DistrictReferenceDto district;
49+
private CommunityReferenceDto community;
50+
51+
public static CampaignFormDataDto build(
52+
CampaignReferenceDto campaign,
53+
CampaignFormReferenceDto campaignForm,
54+
RegionReferenceDto region,
55+
DistrictReferenceDto district,
56+
CommunityReferenceDto community) {
57+
CampaignFormDataDto campaignFormData = new CampaignFormDataDto();
58+
campaignFormData.setUuid(DataHelper.createUuid());
59+
campaignFormData.setCampaign(campaign);
60+
campaignFormData.setCampaignForm(campaignForm);
61+
campaignFormData.setRegion(region);
62+
campaignFormData.setDistrict(district);
63+
campaignFormData.setCommunity(community);
64+
return campaignFormData;
65+
}
66+
67+
public List<CampaignFormValue> getFormValues() {
68+
return formValues;
69+
}
70+
71+
public void setFormValues(List<CampaignFormValue> formValues) {
72+
this.formValues = formValues;
73+
}
74+
75+
public CampaignFormReferenceDto getCampaignForm() {
76+
return campaignForm;
77+
}
78+
79+
public void setCampaignForm(CampaignFormReferenceDto campaignForm) {
80+
this.campaignForm = campaignForm;
81+
}
82+
83+
public CampaignReferenceDto getCampaign() {
84+
return campaign;
85+
}
86+
87+
public void setCampaign(CampaignReferenceDto campaign) {
88+
this.campaign = campaign;
89+
}
90+
91+
public RegionReferenceDto getRegion() {
92+
return region;
93+
}
94+
95+
public void setRegion(RegionReferenceDto region) {
96+
this.region = region;
97+
}
98+
99+
public DistrictReferenceDto getDistrict() {
100+
return district;
101+
}
102+
103+
public void setDistrict(DistrictReferenceDto district) {
104+
this.district = district;
105+
}
106+
107+
public CommunityReferenceDto getCommunity() {
108+
return community;
109+
}
110+
111+
public void setCommunity(CommunityReferenceDto community) {
112+
this.community = community;
113+
}
114+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* ******************************************************************************
3+
* * SORMAS® - Surveillance Outbreak Response Management & Analysis System
4+
* * Copyright © 2016-2020 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
5+
* *
6+
* * This program is free software: you can redistribute it and/or modify
7+
* * it under the terms of the GNU General Public License as published by
8+
* * the Free Software Foundation, either version 3 of the License, or
9+
* * (at your option) any later version.
10+
* *
11+
* * This program is distributed in the hope that it will be useful,
12+
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* * GNU General Public License for more details.
15+
* *
16+
* * You should have received a copy of the GNU General Public License
17+
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
* ******************************************************************************
19+
*/
20+
21+
package de.symeda.sormas.api.campaign.data;
22+
23+
import javax.ejb.Remote;
24+
import java.util.List;
25+
26+
@Remote
27+
public interface CampaignFormDataFacade {
28+
29+
CampaignFormDataDto saveCampaignFormData(CampaignFormDataDto dto);
30+
31+
List<CampaignFormDataDto> getByUuids(List<String> uuids);
32+
33+
CampaignFormDataDto getCampaignFormDataByUuid(String campaignFormDataUuid);
34+
35+
void deleteCampaignFormData(String campaignFormDataUuid);
36+
37+
boolean isArchived(String campaignFormDataUuid);
38+
39+
boolean exists(String uuid);
40+
41+
CampaignFormDataReferenceDto getReferenceByUuid(String uuid);
42+
}

0 commit comments

Comments
 (0)