added appProperties.getInline_resource_storage_below_size() (#420)

* added appProperties.getInline_resource_storage_below_size()

* indentations
This commit is contained in:
Patrick Werner
2022-09-03 20:04:59 +02:00
committed by GitHub
parent bdc621e535
commit c5e460dab0
3 changed files with 26 additions and 12 deletions

View File

@@ -45,6 +45,7 @@ public class AppProperties {
private Boolean filter_search_enabled = true; private Boolean filter_search_enabled = true;
private Boolean graphql_enabled = false; private Boolean graphql_enabled = false;
private Boolean binary_storage_enabled = false; private Boolean binary_storage_enabled = false;
private Integer inline_resource_storage_below_size = 0;
private Boolean bulk_export_enabled = false; private Boolean bulk_export_enabled = false;
private Boolean bulk_import_enabled = false; private Boolean bulk_import_enabled = false;
private Boolean default_pretty_print = true; private Boolean default_pretty_print = true;
@@ -395,7 +396,15 @@ public class AppProperties {
this.binary_storage_enabled = binary_storage_enabled; this.binary_storage_enabled = binary_storage_enabled;
} }
public Boolean getBulk_export_enabled() { public Integer getInline_resource_storage_below_size() {
return inline_resource_storage_below_size;
}
public void setInline_resource_storage_below_size(Integer inline_resource_storage_below_size) {
this.inline_resource_storage_below_size = inline_resource_storage_below_size;
}
public Boolean getBulk_export_enabled() {
return bulk_export_enabled; return bulk_export_enabled;
} }

View File

@@ -418,6 +418,10 @@ public class BaseJpaRestfulServer extends RestfulServer {
daoConfig.setLastNEnabled(true); daoConfig.setLastNEnabled(true);
} }
if(appProperties.getInline_resource_storage_below_size() != 0){
daoConfig.setInlineResourceTextBelowSize(appProperties.getInline_resource_storage_below_size());
}
daoConfig.setStoreResourceInHSearchIndex(appProperties.getStore_resource_in_lucene_index_enabled()); daoConfig.setStoreResourceInHSearchIndex(appProperties.getStore_resource_in_lucene_index_enabled());
daoConfig.getModelConfig().setNormalizedQuantitySearchLevel(appProperties.getNormalized_quantity_search_level()); daoConfig.getModelConfig().setNormalizedQuantitySearchLevel(appProperties.getNormalized_quantity_search_level());
daoConfig.getModelConfig().setIndexOnContainedResources(appProperties.getEnable_index_contained_resource()); daoConfig.getModelConfig().setIndexOnContainedResources(appProperties.getEnable_index_contained_resource());

View File

@@ -100,7 +100,7 @@ hapi:
bulk_import_enabled: false bulk_import_enabled: false
# enforce_referential_integrity_on_delete: false # enforce_referential_integrity_on_delete: false
# This is an experimental feature, and does not fully support _total and other FHIR features. # This is an experimental feature, and does not fully support _total and other FHIR features.
# enforce_referential_integrity_on_delete: false # enforce_referential_integrity_on_delete: false
# enforce_referential_integrity_on_write: false # enforce_referential_integrity_on_write: false
# etag_support_enabled: true # etag_support_enabled: true
# expunge_enabled: true # expunge_enabled: true
@@ -110,8 +110,8 @@ hapi:
# graphql_enabled: true # graphql_enabled: true
# narrative_enabled: true # narrative_enabled: true
# mdm_enabled: true # mdm_enabled: true
# local_base_urls: # local_base_urls:
# - https://hapi.fhir.org/baseR4 # - https://hapi.fhir.org/baseR4
mdm_enabled: false mdm_enabled: false
# partitioning: # partitioning:
# allow_references_across_partitions: false # allow_references_across_partitions: false
@@ -128,10 +128,10 @@ hapi:
search-coord-queue-capacity: 200 search-coord-queue-capacity: 200
# Threadpool size for BATCH'ed GETs in a bundle. # Threadpool size for BATCH'ed GETs in a bundle.
# bundle_batch_pool_size: 10 # bundle_batch_pool_size: 10
# bundle_batch_pool_max_size: 50 # bundle_batch_pool_max_size: 50
# logger: # logger:
# error_format: 'ERROR - ${requestVerb} ${requestUrl}' # error_format: 'ERROR - ${requestVerb} ${requestUrl}'
# format: >- # format: >-
# Path[${servletPath}] Source[${requestHeader.x-forwarded-for}] # Path[${servletPath}] Source[${requestHeader.x-forwarded-for}]
@@ -155,10 +155,11 @@ hapi:
server_address: "http://hapi.fhir.org/baseR4" server_address: "http://hapi.fhir.org/baseR4"
refuse_to_fetch_third_party_urls: false refuse_to_fetch_third_party_urls: false
fhir_version: R4 fhir_version: R4
# validation: # validation:
# requests_enabled: true # requests_enabled: true
# responses_enabled: true # responses_enabled: true
# binary_storage_enabled: true # binary_storage_enabled: true
inline_resource_storage_below_size: 4000
# bulk_export_enabled: true # bulk_export_enabled: true
# subscription: # subscription:
# resthook_enabled: true # resthook_enabled: true