feat: add support for logical urls

This commit is contained in:
Mohamed Marrouchi
2024-02-06 15:54:08 +01:00
parent d9e7e9c568
commit dab4219bb1
3 changed files with 15 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ public class AppProperties {
private Integer bundle_batch_pool_size = 20;
private Integer bundle_batch_pool_max_size = 100;
private final Set<String> local_base_urls = new HashSet<>();
private final Set<String> logical_urls = new HashSet<>();
private final List<String> custom_interceptor_classes = new ArrayList<>();
@@ -595,6 +596,10 @@ public Cors getCors() {
return local_base_urls;
}
public Set<String> getLogical_urls() {
return logical_urls;
}
public Boolean getIg_runtime_upload_enabled() {
return ig_runtime_upload_enabled;
}

View File

@@ -150,6 +150,7 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setFilterParameterEnabled(appProperties.getFilter_search_enabled());
jpaStorageSettings.setAdvancedHSearchIndexing(appProperties.getAdvanced_lucene_indexing());
jpaStorageSettings.setTreatBaseUrlsAsLocal(new HashSet<>(appProperties.getLocal_base_urls()));
jpaStorageSettings.setTreatReferencesAsLogical(new HashSet<>(appProperties.getLogical_urls()));
if (appProperties.getLastn_enabled()) {
jpaStorageSettings.setLastNEnabled(true);