Expose setting, add docs

This commit is contained in:
Tadgh
2024-09-25 15:34:56 -04:00
parent e2d2ea7726
commit a12e30c7d2
3 changed files with 26 additions and 3 deletions

View File

@@ -104,6 +104,8 @@ public class AppProperties {
private final List<String> custom_provider_classes = new ArrayList<>();
private List<Integer> search_prefetch_thresholds = new ArrayList<>();
public List<String> getCustomInterceptorClasses() {
return custom_interceptor_classes;
@@ -643,7 +645,16 @@ public Cors getCors() {
this.language_search_parameter_enabled = language_search_parameter_enabled;
}
public static class Cors {
public List<Integer> getSearch_prefetch_thresholds() {
return this.search_prefetch_thresholds;
}
public void setSearch_prefetch_thresholds(List<Integer> thePrefetchThresholds) {
this.search_prefetch_thresholds = thePrefetchThresholds;
}
public static class Cors {
private Boolean allow_Credentials = true;
private List<String> allowed_origin = List.of("*");

View File

@@ -150,6 +150,7 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setExpungeEnabled(appProperties.getExpunge_enabled());
jpaStorageSettings.setLanguageSearchParameterEnabled(appProperties.getLanguage_search_parameter_enabled());
jpaStorageSettings.setSearchPreFetchThresholds(appProperties.getSearch_prefetch_thresholds());
Integer maxFetchSize = appProperties.getMax_page_size();
jpaStorageSettings.setFetchSizeDefaultMaximum(maxFetchSize);