mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-18 02:45:07 +00:00
Make preDelete consistent with postCreate
This commit is contained in:
parent
5589990eb5
commit
7ea7bd45cf
@ -192,7 +192,7 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
|
|||||||
|
|
||||||
validateOkToDelete(deleteConflicts, entity);
|
validateOkToDelete(deleteConflicts, entity);
|
||||||
|
|
||||||
preDelete(resourceToDelete);
|
preDelete(resourceToDelete, entity);
|
||||||
|
|
||||||
// Notify interceptors
|
// Notify interceptors
|
||||||
if (theRequestDetails != null) {
|
if (theRequestDetails != null) {
|
||||||
@ -722,7 +722,8 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
|
|||||||
* Subclasses may override to provide behaviour. Invoked within a delete
|
* Subclasses may override to provide behaviour. Invoked within a delete
|
||||||
* transaction with the resource that is about to be deleted.
|
* transaction with the resource that is about to be deleted.
|
||||||
*/
|
*/
|
||||||
protected void preDelete(T theResourceToDelete) {
|
@SuppressWarnings("unused")
|
||||||
|
protected void preDelete(T theResourceToDelete, ResourceTable theEntityToDelete) {
|
||||||
// nothing by default
|
// nothing by default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,8 +98,8 @@ public class FhirResourceDaoSearchParameterDstu3 extends FhirResourceDaoDstu3<Se
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void preDelete(SearchParameter theResourceToDelete) {
|
protected void preDelete(SearchParameter theResourceToDelete, ResourceTable theEntityToDelete) {
|
||||||
super.preDelete(theResourceToDelete);
|
super.preDelete(theResourceToDelete, theEntityToDelete);
|
||||||
markAffectedResources(theResourceToDelete);
|
markAffectedResources(theResourceToDelete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user