From 41ba07a5e5fcdbcee05b23f4d58c3c1d115b2052 Mon Sep 17 00:00:00 2001 From: Ibrohim Kholilul Islam Date: Fri, 17 Jun 2022 18:15:58 +0000 Subject: [PATCH] add BinaryAccessProvider to BaseJpaRestfulServer --- .../java/ca/uhn/fhir/jpa/starter/BaseJpaRestfulServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/BaseJpaRestfulServer.java b/src/main/java/ca/uhn/fhir/jpa/starter/BaseJpaRestfulServer.java index c7ec35b..0043609 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/BaseJpaRestfulServer.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/BaseJpaRestfulServer.java @@ -11,6 +11,7 @@ import ca.uhn.fhir.jpa.api.config.DaoConfig; import ca.uhn.fhir.jpa.api.dao.DaoRegistry; import ca.uhn.fhir.jpa.api.dao.IFhirSystemDao; import ca.uhn.fhir.jpa.binary.interceptor.BinaryStorageInterceptor; +import ca.uhn.fhir.jpa.binary.provider.BinaryAccessProvider; import ca.uhn.fhir.jpa.bulk.export.provider.BulkDataExportProvider; import ca.uhn.fhir.jpa.graphql.GraphQLProvider; import ca.uhn.fhir.jpa.interceptor.CascadingDeleteInterceptor; @@ -86,6 +87,8 @@ public class BaseJpaRestfulServer extends RestfulServer { @Autowired BinaryStorageInterceptor binaryStorageInterceptor; @Autowired + Optional binaryAccessProvider; + @Autowired IPackageInstallerSvc packageInstallerSvc; @Autowired AppProperties appProperties; @@ -318,6 +321,7 @@ public class BaseJpaRestfulServer extends RestfulServer { // Binary Storage if (appProperties.getBinary_storage_enabled()) { + registerProvider(binaryAccessProvider.get()); getInterceptorService().registerInterceptor(binaryStorageInterceptor); }