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

Commit 7a76e7d

Browse files
SORMAS-Foundation#2671 Config for SurvNet gateway
1 parent f845f46 commit 7a76e7d

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

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
@@ -106,5 +106,7 @@ public interface ConfigFacade {
106106

107107
SormasToSormasConfig getSormasToSormasConfig();
108108

109+
String getSurvnetGatewayUrl();
110+
109111
String getAuthenticationProvider();
110112
}

sormas-backend/src/main/java/de/symeda/sormas/backend/common/ConfigFacadeEjb.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ public class ConfigFacadeEjb implements ConfigFacade {
107107

108108
private static final String SORMAS_TO_SORMAS_USER_PASSWORD = "sormasToSormasUserPassword";
109109

110+
private static final String SURVNET_GATEWAY_URL = "survnet.url";
111+
110112
private final Logger logger = LoggerFactory.getLogger(getClass());
111113

112114
@Resource(lookup = "sormas/Properties")
@@ -397,6 +399,11 @@ public String getSormasToSormasUserPassword() {
397399
return getProperty(SORMAS_TO_SORMAS_USER_PASSWORD, null);
398400
}
399401

402+
@Override
403+
public String getSurvnetGatewayUrl() {
404+
return getProperty(SURVNET_GATEWAY_URL, null);
405+
}
406+
400407
@Override
401408
public void validateExternalUrls() {
402409

sormas-base/setup/sormas.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ app.url=
7373
#sormas2sormas.truststoreName=
7474
#sormas2sormas.truststorePass=
7575

76+
# URL of the SurvNet Gateway; enables the feature
77+
#survnet.url=http://localhost:8080/survnet/rest/admin
78+
7679
# Determines whether the system automatically classifies cases based on a number of rules per disease.
7780
# default: true
7881
#feature.automaticcaseclassification=true

0 commit comments

Comments
 (0)