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

Commit de69fa5

Browse files
author
jenkins
committed
[GITFLOW]merging 'release-1.53.0' into 'master'
2 parents 8eb4454 + a3144da commit de69fa5

518 files changed

Lines changed: 18279 additions & 3481 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.

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
env:
7+
java: 11
8+
9+
on:
10+
push:
11+
branches: [ development, master ]
12+
pull_request:
13+
branches: [ development ]
14+
15+
jobs:
16+
test:
17+
name: mvn verify
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v2
23+
24+
- name: Set up JDK ${{ env.java }}
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: ${{ env.java }}
28+
29+
- name: Cache Maven packages
30+
# FIXME(@JonasCir) #3733 remove '**/*.pom' once serverlib pom is renamed
31+
uses: actions/cache@v2
32+
with:
33+
path: ~/.m2
34+
key: ${{ runner.os }}-java-${{ env.java }}-m2-${{ hashFiles('**/pom.xml', '**/*.pom') }}
35+
restore-keys: ${{ runner.os }}-java-${{ env.java }}-m2
36+
37+
- name: Run mvn verify
38+
# FIXME(@JonasCir) see https://github.com/hzi-braunschweig/SORMAS-Project/issues/3730#issuecomment-745165678
39+
working-directory: ./sormas-base
40+
run: mvn verify -B -ntp

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,18 @@ The GitHub project has been configured to **automatically** move issues that are
110110
The Development Team is responsible to keep the tickets up to date on this board and to assign the appropriate milestone in which the work is going to be released.
111111

112112

113+
### Managing dependencies
114+
115+
For managing Java libraries as dependencies, they are managed by Maven and listed in *sormas-base/pom.xml*. The purpose of a centralized management is to have an overview of the used libraries and adjust for new versions.
116+
117+
1. **Payara modules**: Provided by Payara in *{payara-home}/glassfish/modules* and used in that version by other libs.
118+
2. **Domain libs**: Provided in Payara domain under *{payara-domain}/lib* to be usable by deployed artifacts (ear, war). They have to be listed in *sormas-base/dependencies/serverlibs.pom*. Usually for helper libraries that several artifacts need.
119+
3. **Compile dependencies**: Bundled in respective artifacts who need the dependency explicitly. Usually for dependencies singularly needed in one artifact.
120+
4. **Test libraries**: Libraries used in automated tests in one or more modules.
121+
122+
Due to the separate build management tool Gradle for *sormas-app*, there exists a redundant listing of compile dependencies in *sormas-app/app/build.gradle*.
123+
124+
113125
### Eclipse Troubleshooting
114126

115127
Unfortunatley, when using eclipse together with the Payara Tools, there are a number of deployment problems that you might run into. Examples of these include:

DEVELOPMENT_ENVIRONMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- **Windows**: For testing and development environments we suggest to download and run the installer of the Java 11 **JDK** for 32 or 64 bit client systems (depending on your system).
2323

2424
## Eclipse
25-
- Install the latest Eclipse version
25+
- Install the latest Eclipse version, best fit is [Eclipse IDE for Enterprise Java Developers](https://www.eclipse.org/downloads/packages).
2626
- Set the default JRE of Eclipse to the installed Zulu Java SDK: [Assigning the default JRE for the workbench ](https://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-assign_default_jre.htm)
2727
- Clone the SORMAS-Open repository and import the projects to Eclipse
2828
- If you're using Eclipse to clone, choose "File -> Import -> Git -> Projects from Git" and continue until you're asked to create a new project from the cloned repository; click cancel instead and use "File -> Import -> Maven -> Existing Maven Projects" to import the separate projects into your workspace
@@ -51,7 +51,7 @@
5151
- Clone the SORMAS-Project repository and open the project in IntelliJ
5252
- make sure the under "File -> Project Structure -> Modules" all the modules (except the android app - this should not be added) are recognized, if not add the modules with +
5353
- Make sure under "File -> Settings -> Plugins" Glassfish & Ant integrations are enabled (look into the "Installed" tab)
54-
- Install the Vaadin Designer plugin
54+
- Install the Vaadin plugin (not the Vaadin Designer plugin!)
5555
- Make a copy of "build.properties.example" contained in "sormas-base", rename it to "build.properties" and set "glassfish.domain.root" to the location of the sormas domain located in the "glassfish/domains" folder inside your payara installation
5656
- Run "Maven install" on the sormas-base project
5757
- Add a Payara server to IntelliJ:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/>
88
</a>
99
<br/>
10-
<a href="https://github.com/hzi-braunschweig/SORMAS-Project/blob/development/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-GPL%20v3-blue"/></a> <a href="https://github.com/hzi-braunschweig/SORMAS-Project/releases/latest"><img alt="Latest Release" src="https://img.shields.io/github/v/release/hzi-braunschweig/SORMAS-Project"/></a> <img alt="Development Build Status" src="https://travis-ci.com/hzi-braunschweig/SORMAS-Project.svg?branch=development"/> <a href="https://gitter.im/SORMAS-Project"><img alt="Gitter" src="https://badges.gitter.im/SORMAS-Project/dev-support.svg"/></a>
10+
<a href="https://github.com/hzi-braunschweig/SORMAS-Project/blob/development/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-GPL%20v3-blue"/></a> <a href="https://github.com/hzi-braunschweig/SORMAS-Project/releases/latest"><img alt="Latest Release" src="https://img.shields.io/github/v/release/hzi-braunschweig/SORMAS-Project"/></a> <img alt="Development Build Status" src="https://github.com/hzi-braunschweig/SORMAS-Project/workflows/Java%20CI%20with%20Maven/badge.svg?branch=development"/> <a href="https://gitter.im/SORMAS-Project"><img alt="Gitter" src="https://badges.gitter.im/SORMAS-Project/dev-support.svg"/></a>
1111
</p>
1212
<br/>
1313

@@ -27,6 +27,8 @@ SORMAS officially supports and is tested on **Chromium-based browsers** (like Go
2727

2828
#### Is there a ReST API documentation?
2929
Yes! Please download the [latest release](https://github.com/hzi-braunschweig/SORMAS-Project/releases/latest) and copy the content of /deploy/openapi/sormas-rest.yaml to an editor that generates a visual API documentation (e.g. https://editor.swagger.io/).
30+
<br/>
31+
Runtime Swagger documentation of the External Visits Resource (used by external symptom journals such as CLIMEDO or PIA) is also available at ``<<host>>/sormas-rest/openapi.json`` or ``<<host>>/sormas-rest/openapi.yaml``
3032

3133
<p align="center"><img src="https://user-images.githubusercontent.com/23701005/74659600-ebb8fc00-5194-11ea-836b-a7ca9d682301.png"/></p>
3234

sormas-api/pom.xml

Lines changed: 6 additions & 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.52.1</version>
5+
<version>1.53.0</version>
66
<relativePath>../sormas-base</relativePath>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
@@ -67,6 +67,11 @@
6767
<artifactId>simmetrics-core</artifactId>
6868
</dependency>
6969

70+
<dependency>
71+
<groupId>org.jsoup</groupId>
72+
<artifactId>jsoup</artifactId>
73+
</dependency>
74+
7075
</dependencies>
7176

7277
</project>

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ public class AuthProvider {
3939

4040
private final boolean isUsernameCaseSensitive;
4141

42-
private final boolean isEmailRequired;
43-
4442
private final boolean isDefaultProvider;
4543

4644
private AuthProvider() {
4745
String configuredProvider = FacadeProvider.getConfigFacade().getAuthenticationProvider();
4846
isUsernameCaseSensitive = SORMAS.equalsIgnoreCase(configuredProvider);
49-
isEmailRequired = KEYCLOAK.equalsIgnoreCase(configuredProvider);
5047
isDefaultProvider = SORMAS.equalsIgnoreCase(configuredProvider);
5148
}
5249

@@ -68,13 +65,6 @@ public boolean isUsernameCaseSensitive() {
6865
return isUsernameCaseSensitive;
6966
}
7067

71-
/**
72-
* Authentication Provider requires emails to be required or optional.
73-
*/
74-
public boolean isEmailRequired() {
75-
return isEmailRequired;
76-
}
77-
7868
/**
7969
* Current Authentication Provider is the SORMAS default one.
8070
*/
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package de.symeda.sormas.api.campaign;
2+
3+
import de.symeda.sormas.api.IntegerRange;
4+
import de.symeda.sormas.api.i18n.I18nProperties;
5+
6+
/**
7+
* Not used yet
8+
*/
9+
public enum CampaignPhase {
10+
11+
PRE,
12+
INTRA,
13+
POST;
14+
15+
public String toString() {
16+
return I18nProperties.getEnumCaption(this);
17+
}
18+
}

sormas-api/src/main/java/de/symeda/sormas/api/campaign/data/CampaignFormDataCriteria.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,24 @@
1515

1616
package de.symeda.sormas.api.campaign.data;
1717

18+
import java.io.Serializable;
19+
import java.util.Date;
20+
1821
import de.symeda.sormas.api.BaseCriteria;
1922
import de.symeda.sormas.api.campaign.CampaignReferenceDto;
2023
import de.symeda.sormas.api.campaign.form.CampaignFormMetaReferenceDto;
2124
import de.symeda.sormas.api.region.CommunityReferenceDto;
2225
import de.symeda.sormas.api.region.DistrictReferenceDto;
2326
import de.symeda.sormas.api.region.RegionReferenceDto;
2427

25-
import java.io.Serializable;
26-
2728
public class CampaignFormDataCriteria extends BaseCriteria implements Serializable {
2829

2930
public static final String CAMPAIGN = "campaign";
3031
public static final String CAMPAIGN_FORM_META = "campaignFormMeta";
3132
public static final String REGION = "region";
3233
public static final String DISTRICT = "district";
3334
public static final String COMMUNITY = "community";
35+
public static final String FORM_DATE = "formDate";
3436

3537
private static final long serialVersionUID = 8124072093160133408L;
3638

@@ -39,6 +41,7 @@ public class CampaignFormDataCriteria extends BaseCriteria implements Serializab
3941
private RegionReferenceDto region;
4042
private DistrictReferenceDto district;
4143
private CommunityReferenceDto community;
44+
private Date formDate;
4245

4346
public CampaignReferenceDto getCampaign() {
4447
return campaign;
@@ -104,4 +107,17 @@ public CampaignFormDataCriteria community(CommunityReferenceDto community) {
104107
this.community = community;
105108
return this;
106109
}
110+
111+
public Date getFormDate() {
112+
return formDate;
113+
}
114+
115+
public void setFormDate(Date formDate) {
116+
this.formDate = formDate;
117+
}
118+
119+
public CampaignFormDataCriteria formDate(Date formDate) {
120+
this.formDate = formDate;
121+
return this;
122+
}
107123
}

sormas-api/src/main/java/de/symeda/sormas/api/campaign/data/CampaignFormDataDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public class CampaignFormDataDto extends EntityDto {
4545
public static final String REGION = "region";
4646
public static final String DISTRICT = "district";
4747
public static final String COMMUNITY = "community";
48+
public static final String CREATING_USER = "creatingUser";
4849

4950
private List<CampaignFormDataEntry> formValues;
5051
private CampaignReferenceDto campaign;
@@ -144,5 +145,4 @@ public void setCreatingUser(UserReferenceDto creatingUser) {
144145
this.creatingUser = creatingUser;
145146
}
146147

147-
148148
}

0 commit comments

Comments
 (0)