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

Commit 4a96bd9

Browse files
Merge branch 'development' into feature-2746-Person_address_refinement_Part_2
2 parents 99152fa + a08bcce commit 4a96bd9

54 files changed

Lines changed: 2348 additions & 549 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.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ deploy
2323
/sormas-app/java_pid21052.hprof
2424
bin
2525
/sormas-base/setup/setup.log
26+
/sormas-cargoserver/.env
27+
/sormas-cargoserver/custom.env
28+
/sormas-cargoserver/custom.properties

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ language: java
22
jdk:
33
- openjdk8 # FIXME remove after transition period (#2617)
44
- openjdk11
5-
before_install: cd sormas-base
6-
install: mvn test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
5+
before_install:
6+
- cd sormas-base
7+
install: skip
8+
script:
9+
- mvn install -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn

DEVELOPMENT_ENVIRONMENT.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# SORMAS Development Environment
33

44
## Server
5-
- Install [your local server](SERVER_SETUP.md).
5+
- Install [your local server](SERVER_SETUP.md)
6+
- Or install your local development server using [maven cargo](sormas-cargoserver/README.md)
67
- Alternatively [SERVER_DEV_SETUP.md](SERVER_DEV_SETUP.md) could be used (at this time not recommended)
78

89
## Git

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ Please [create a new issue](https://github.com/hzi-braunschweig/SORMAS-Project/i
2525
#### Which Browsers and Android Versions Are Supported?
2626
SORMAS officially supports and is tested on **Chromium-based browsers** (like Google Chrome) and **Mozilla Firefox**, and all Android versions starting from **Android 7.0** (Nougat). In principle, SORMAS should be usable with all web browsers that are supported by Vaadin 8 (Chrome, Firefox, Safari, Edge, Internet Explorer 11; see https://vaadin.com/faq).
2727

28+
#### Is there a ReST API documentation?
29+
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+
2831
<p align="center"><img src="https://user-images.githubusercontent.com/23701005/74659600-ebb8fc00-5194-11ea-836b-a7ca9d682301.png"/></p>
2932

3033
## Project Structure
@@ -37,6 +40,8 @@ The project consists of the following modules:
3740
- **sormas-ear:** The ear needed to build the application
3841
- **sormas-rest:** The REST interface; see [`sormas-rest/README.md`](sormas-rest/README.md)
3942
- **sormas-ui:** The web application
43+
- **sormas-base/dependencies:** dependencies to be deployed with the payara server
44+
- **sormas-cargoserver:** setup for a local dev server using maven-cargo
4045

4146
## Server Management
4247

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

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

3+
import de.symeda.sormas.api.campaign.diagram.CampaignDashboardElement;
34
import de.symeda.sormas.api.utils.SortProperty;
45

56
import javax.ejb.Remote;
@@ -12,16 +13,19 @@ public interface CampaignFacade {
1213

1314
List<CampaignReferenceDto> getAllCampaignsAsReference();
1415

16+
CampaignReferenceDto getLastStartedCampaign();
17+
1518
long count(CampaignCriteria campaignCriteria);
1619

1720
CampaignDto saveCampaign(CampaignDto dto);
1821

1922
CampaignDto getByUuid(String uuid);
2023

24+
List<CampaignDashboardElement> getCampaignDashboardElements(String campaignUuid);
25+
2126
boolean isArchived(String uuid);
2227

2328
void deleteCampaign(String uuid);
2429

2530
void archiveOrDearchiveCampaign(String campaignUuid, boolean archive);
26-
2731
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
package de.symeda.sormas.api.campaign.diagram;
2+
3+
import java.io.Serializable;
4+
5+
public class CampaignDashboardElement implements Serializable {
6+
7+
private String diagramId;
8+
private String tabId;
9+
private Integer order;
10+
private Integer width;
11+
private Integer height;
12+
13+
public CampaignDashboardElement() {
14+
}
15+
16+
public CampaignDashboardElement(String diagramId, String tabId, Integer order, Integer width, Integer height) {
17+
this.diagramId = diagramId;
18+
this.tabId = tabId;
19+
this.order = order;
20+
this.width = width;
21+
this.height = height;
22+
}
23+
24+
public String getDiagramId() {
25+
return diagramId;
26+
}
27+
28+
public void setDiagramId(String diagramId) {
29+
this.diagramId = diagramId;
30+
}
31+
32+
public String getTabId() {
33+
return tabId;
34+
}
35+
36+
public void setTabId(String tabId) {
37+
this.tabId = tabId;
38+
}
39+
40+
public Integer getOrder() {
41+
return order;
42+
}
43+
44+
public void setOrder(Integer order) {
45+
this.order = order;
46+
}
47+
48+
public Integer getWidth() {
49+
return width;
50+
}
51+
52+
public void setWidth(Integer width) {
53+
this.width = width;
54+
}
55+
56+
public Integer getHeight() {
57+
return height;
58+
}
59+
60+
public void setHeight(Integer height) {
61+
this.height = height;
62+
}
63+
}

sormas-api/src/main/java/de/symeda/sormas/api/event/EventDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public class EventDto extends PseudonymizableDto {
3636

3737
public static final String EVENT_STATUS = "eventStatus";
3838
public static final String EVENT_PERSONS = "eventPersons";
39+
public static final String PARTICIPANTS_COUNT = "participantCount";
3940
public static final String EVENT_ACTIONS = "eventActions";
4041
public static final String EXTERNAL_ID = "externalId";
4142
public static final String EVENT_DESC = "eventDesc";

sormas-api/src/main/java/de/symeda/sormas/api/event/EventExportDto.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class EventExportDto implements Serializable {
2929
private String uuid;
3030
private String externalId;
3131
private EventStatus eventStatus;
32+
private int participantsCount;
3233
private Disease disease;
3334
private String diseaseDetails;
3435
private Date startDate;
@@ -58,6 +59,7 @@ public EventExportDto(
5859
String uuid,
5960
String externalId,
6061
EventStatus eventStatus,
62+
int participantsCount,
6163
Disease disease,
6264
String diseaseDetails,
6365
Date startDate,
@@ -88,6 +90,7 @@ public EventExportDto(
8890
this.uuid = uuid;
8991
this.externalId = externalId;
9092
this.eventStatus = eventStatus;
93+
this.participantsCount = participantsCount;
9194
this.disease = disease;
9295
this.diseaseDetails = diseaseDetails;
9396
this.startDate = startDate;
@@ -306,6 +309,15 @@ public void setReportDateTime(Date reportDateTime) {
306309
this.reportDateTime = reportDateTime;
307310
}
308311

312+
@Order(25)
313+
public int getParticipantsCount() {
314+
return participantsCount;
315+
}
316+
317+
public void setParticipantsCount(int participantsCount) {
318+
this.participantsCount = participantsCount;
319+
}
320+
309321
public EventJurisdictionDto getJurisdiction() {
310322
return jurisdiction;
311323
}

sormas-api/src/main/java/de/symeda/sormas/api/event/EventIndexDto.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class EventIndexDto implements WithJurisdiction<EventJurisdictionDto>, Se
3232

3333
public static final String UUID = "uuid";
3434
public static final String EVENT_STATUS = "eventStatus";
35+
public static final String PARTICIPANT_COUNT = "participantCount";
3536
public static final String DISEASE = "disease";
3637
public static final String DISEASE_DETAILS = "diseaseDetails";
3738
public static final String START_DATE = "startDate";
@@ -46,6 +47,7 @@ public class EventIndexDto implements WithJurisdiction<EventJurisdictionDto>, Se
4647

4748
private String uuid;
4849
private EventStatus eventStatus;
50+
private int participantCount;
4951
private Disease disease;
5052
private String diseaseDetails;
5153
private Date startDate;
@@ -64,6 +66,7 @@ public class EventIndexDto implements WithJurisdiction<EventJurisdictionDto>, Se
6466
public EventIndexDto(
6567
String uuid,
6668
EventStatus eventStatus,
69+
Integer participantCount,
6770
Disease disease,
6871
String diseaseDetails,
6972
Date startDate,
@@ -105,6 +108,7 @@ public EventIndexDto(
105108
this.srcMediaName = srcMediaName;
106109
this.reportDateTime = reportDateTime;
107110
this.jurisdiction = new EventJurisdictionDto(reportingUserUuid, surveillanceOfficerUuid, regionUuid, districtUuid, communityUuid);
111+
this.participantCount = participantCount;
108112
}
109113

110114
public String getUuid() {
@@ -223,6 +227,14 @@ public void setReportDateTime(Date reportDateTime) {
223227
this.reportDateTime = reportDateTime;
224228
}
225229

230+
public int getParticipantCount() {
231+
return participantCount;
232+
}
233+
234+
public void setParticipantCount(int participantCount) {
235+
this.participantCount = participantCount;
236+
}
237+
226238
public EventReferenceDto toReference() {
227239
return new EventReferenceDto(getUuid(), getDisease(), getDiseaseDetails(), getEventStatus(), getStartDate());
228240
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ public interface Captions {
753753
String Event_multiDayEvent = "Event.multiDayEvent";
754754
String Event_nosocomial = "Event.nosocomial";
755755
String Event_numberOfPendingTasks = "Event.numberOfPendingTasks";
756+
String Event_participantCount = "Event.participantCount";
756757
String Event_reportDateTime = "Event.reportDateTime";
757758
String Event_reportingUser = "Event.reportingUser";
758759
String Event_srcEmail = "Event.srcEmail";

0 commit comments

Comments
 (0)