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 graphql_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_import_enabled = false;
private Boolean default_pretty_print = true;
@@ -395,7 +396,15 @@ public class AppProperties {
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;
}

View File

@@ -418,6 +418,10 @@ public class BaseJpaRestfulServer extends RestfulServer {
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.getModelConfig().setNormalizedQuantitySearchLevel(appProperties.getNormalized_quantity_search_level());
daoConfig.getModelConfig().setIndexOnContainedResources(appProperties.getEnable_index_contained_resource());