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

Commit 8a64ab6

Browse files
committed
Merge branch 'development' into 2537_import-template-information
2 parents 26aa444 + 8bc22bb commit 8a64ab6

197 files changed

Lines changed: 6253 additions & 1383 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ The project consists of the following modules:
4040
- **sormas-ear:** The ear needed to build the application
4141
- **sormas-rest:** The REST interface; see [`sormas-rest/README.md`](sormas-rest/README.md)
4242
- **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
4345

4446
## Server Management
4547

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public interface ConfigFacade {
9696

9797
String getSymptomJournalSecret();
9898

99+
String getPatientDiaryUrl();
100+
99101
void validateExternalUrls();
100102

101103
Sormas2SormasConfig getSormas2SormasConfig();

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/caze/CaseCriteria.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public class CaseCriteria extends BaseCriteria implements Cloneable {
4949
public static final String EXCLUDE_SHARED_CASES = "excludeSharedCases";
5050
public static final String WITHOUT_RESPONSIBLE_OFFICER = "withoutResponsibleOfficer";
5151
public static final String WITH_EXTENDED_QUARANTINE = "withExtendedQuarantine";
52+
public static final String WITH_REDUCED_QUARANTINE = "withReducedQuarantine";
5253
public static final String CREATION_DATE_FROM = "creationDateFrom";
5354
public static final String CREATION_DATE_TO = "creationDateTo";
5455
public static final String NAME_UUID_EPID_NUMBER_LIKE = "nameUuidEpidNumberLike";
@@ -88,6 +89,7 @@ public class CaseCriteria extends BaseCriteria implements Cloneable {
8889
private Boolean mustHaveCaseManagementData;
8990
private Boolean withoutResponsibleOfficer;
9091
private Boolean withExtendedQuarantine;
92+
private Boolean withReducedQuarantine;
9193
private Boolean deleted = Boolean.FALSE;
9294
private String nameUuidEpidNumberLike;
9395
private String reportingUserLike;
@@ -290,6 +292,14 @@ public void setWithExtendedQuarantine(Boolean withExtendedQuarantine) {
290292
this.withExtendedQuarantine = withExtendedQuarantine;
291293
}
292294

295+
public Boolean getWithReducedQuarantine() {
296+
return withReducedQuarantine;
297+
}
298+
299+
public void setWithReducedQuarantine(Boolean withReducedQuarantine) {
300+
this.withReducedQuarantine = withReducedQuarantine;
301+
}
302+
293303
public CaseClassification getCaseClassification() {
294304
return caseClassification;
295305
}

sormas-api/src/main/java/de/symeda/sormas/api/caze/CaseDataDto.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public class CaseDataDto extends PseudonymizableDto {
133133
public static final String QUARANTINE_HOME_SUPPLY_ENSURED = "quarantineHomeSupplyEnsured";
134134
public static final String QUARANTINE_HOME_SUPPLY_ENSURED_COMMENT = "quarantineHomeSupplyEnsuredComment";
135135
public static final String QUARANTINE_EXTENDED = "quarantineExtended";
136+
public static final String QUARANTINE_REDUCED = "quarantineReduced";
136137
public static final String QUARANTINE_OFFICIAL_ORDER_SENT = "quarantineOfficialOrderSent";
137138
public static final String QUARANTINE_OFFICIAL_ORDER_SENT_DATE = "quarantineOfficialOrderSentDate";
138139
public static final String REPORTING_TYPE = "reportingType";
@@ -372,6 +373,7 @@ public class CaseDataDto extends PseudonymizableDto {
372373
@SensitiveData
373374
private String quarantineHomeSupplyEnsuredComment;
374375
private boolean quarantineExtended;
376+
private boolean quarantineReduced;
375377
@HideForCountriesExcept(countries = {
376378
"de",
377379
"ch" })
@@ -1064,6 +1066,14 @@ public void setQuarantineExtended(boolean quarantineExtended) {
10641066
this.quarantineExtended = quarantineExtended;
10651067
}
10661068

1069+
public boolean isQuarantineReduced() {
1070+
return quarantineReduced;
1071+
}
1072+
1073+
public void setQuarantineReduced(boolean quarantineReduced) {
1074+
this.quarantineReduced = quarantineReduced;
1075+
}
1076+
10671077
public boolean isQuarantineOfficialOrderSent() {
10681078
return quarantineOfficialOrderSent;
10691079
}

0 commit comments

Comments
 (0)