Start branch for 4.0.0 release
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -11,7 +11,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||||
<artifactId>hapi-fhir</artifactId>
|
<artifactId>hapi-fhir</artifactId>
|
||||||
<version>3.8.0</version>
|
<version>4.0.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>ca.uhn.hapi.fhir.demo</groupId>
|
<groupId>ca.uhn.hapi.fhir.demo</groupId>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ public class HapiProperties {
|
|||||||
static final String DEFAULT_PRETTY_PRINT = "default_pretty_print";
|
static final String DEFAULT_PRETTY_PRINT = "default_pretty_print";
|
||||||
static final String ETAG_SUPPORT = "etag_support";
|
static final String ETAG_SUPPORT = "etag_support";
|
||||||
static final String FHIR_VERSION = "fhir_version";
|
static final String FHIR_VERSION = "fhir_version";
|
||||||
|
static final String ALLOW_CASCADING_DELETES = "allow_cascading_deletes";
|
||||||
static final String HAPI_PROPERTIES = "hapi.properties";
|
static final String HAPI_PROPERTIES = "hapi.properties";
|
||||||
static final String LOGGER_ERROR_FORMAT = "logger.error_format";
|
static final String LOGGER_ERROR_FORMAT = "logger.error_format";
|
||||||
static final String LOGGER_FORMAT = "logger.format";
|
static final String LOGGER_FORMAT = "logger.format";
|
||||||
@@ -239,6 +240,10 @@ public class HapiProperties {
|
|||||||
return HapiProperties.getBooleanProperty(ALLOW_MULTIPLE_DELETE, false);
|
return HapiProperties.getBooleanProperty(ALLOW_MULTIPLE_DELETE, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Boolean getAllowCascadingDeletes() {
|
||||||
|
return HapiProperties.getBooleanProperty(ALLOW_CASCADING_DELETES, false);
|
||||||
|
}
|
||||||
|
|
||||||
public static Boolean getAllowExternalReferences() {
|
public static Boolean getAllowExternalReferences() {
|
||||||
return HapiProperties.getBooleanProperty(ALLOW_EXTERNAL_REFERENCES, false);
|
return HapiProperties.getBooleanProperty(ALLOW_EXTERNAL_REFERENCES, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,12 @@ package ca.uhn.fhir.jpa.starter;
|
|||||||
|
|
||||||
import ca.uhn.fhir.context.FhirContext;
|
import ca.uhn.fhir.context.FhirContext;
|
||||||
import ca.uhn.fhir.context.FhirVersionEnum;
|
import ca.uhn.fhir.context.FhirVersionEnum;
|
||||||
|
import ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster;
|
||||||
import ca.uhn.fhir.interceptor.api.IInterceptorService;
|
import ca.uhn.fhir.interceptor.api.IInterceptorService;
|
||||||
import ca.uhn.fhir.jpa.dao.DaoConfig;
|
import ca.uhn.fhir.jpa.dao.DaoConfig;
|
||||||
|
import ca.uhn.fhir.jpa.dao.DaoRegistry;
|
||||||
import ca.uhn.fhir.jpa.dao.IFhirSystemDao;
|
import ca.uhn.fhir.jpa.dao.IFhirSystemDao;
|
||||||
|
import ca.uhn.fhir.jpa.interceptor.CascadingDeleteInterceptor;
|
||||||
import ca.uhn.fhir.jpa.provider.JpaConformanceProviderDstu2;
|
import ca.uhn.fhir.jpa.provider.JpaConformanceProviderDstu2;
|
||||||
import ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu2;
|
import ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu2;
|
||||||
import ca.uhn.fhir.jpa.provider.SubscriptionTriggeringProvider;
|
import ca.uhn.fhir.jpa.provider.SubscriptionTriggeringProvider;
|
||||||
@@ -218,6 +221,14 @@ public class JpaRestfulServer extends RestfulServer {
|
|||||||
interceptorService.registerInterceptor(new SubscriptionDebugLogInterceptor());
|
interceptorService.registerInterceptor(new SubscriptionDebugLogInterceptor());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cascading deletes
|
||||||
|
DaoRegistry daoRegistry = appCtx.getBean(DaoRegistry.class);
|
||||||
|
IInterceptorBroadcaster interceptorBroadcaster = appCtx.getBean(IInterceptorBroadcaster.class);
|
||||||
|
if (HapiProperties.getAllowCascadingDeletes()) {
|
||||||
|
CascadingDeleteInterceptor cascadingDeleteInterceptor = new CascadingDeleteInterceptor(daoRegistry, interceptorBroadcaster);
|
||||||
|
getInterceptorService().registerInterceptor(cascadingDeleteInterceptor);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ allow_override_default_search_params=true
|
|||||||
allow_contains_searches=true
|
allow_contains_searches=true
|
||||||
allow_multiple_delete=true
|
allow_multiple_delete=true
|
||||||
allow_external_references=true
|
allow_external_references=true
|
||||||
|
allow_cascading_deletes=true
|
||||||
allow_placeholder_references=true
|
allow_placeholder_references=true
|
||||||
expunge_enabled=true
|
expunge_enabled=true
|
||||||
persistence_unit_name=HAPI_PU
|
persistence_unit_name=HAPI_PU
|
||||||
|
|||||||
Reference in New Issue
Block a user