Update a few more pointcuts
This commit is contained in:
parent
de3d6cd36a
commit
3732698e01
|
@ -681,17 +681,24 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
|
||||||
myEntityManager.merge(theEntity);
|
myEntityManager.merge(theEntity);
|
||||||
|
|
||||||
// Interceptor call: STORAGE_PRECOMMIT_RESOURCE_UPDATED
|
// Interceptor call: STORAGE_PRECOMMIT_RESOURCE_UPDATED
|
||||||
// Interceptor call: STORAGE_PRESTORAGE_RESOURCE_UPDATED
|
|
||||||
IBaseResource newVersion = toResource(theEntity, false);
|
IBaseResource newVersion = toResource(theEntity, false);
|
||||||
HookParams params = new HookParams()
|
HookParams preStorageParams = new HookParams()
|
||||||
|
.add(IBaseResource.class, oldVersion)
|
||||||
|
.add(IBaseResource.class, newVersion)
|
||||||
|
.add(RequestDetails.class, theRequestDetails)
|
||||||
|
.addIfMatchesType(ServletRequestDetails.class, theRequestDetails)
|
||||||
|
.add(TransactionDetails.class, theTransactionDetails);
|
||||||
|
myInterceptorBroadcaster.callHooks(Pointcut.STORAGE_PRESTORAGE_RESOURCE_UPDATED, preStorageParams);
|
||||||
|
|
||||||
|
// Interceptor call: STORAGE_PRECOMMIT_RESOURCE_UPDATED
|
||||||
|
HookParams preCommitParams = new HookParams()
|
||||||
.add(IBaseResource.class, oldVersion)
|
.add(IBaseResource.class, oldVersion)
|
||||||
.add(IBaseResource.class, newVersion)
|
.add(IBaseResource.class, newVersion)
|
||||||
.add(RequestDetails.class, theRequestDetails)
|
.add(RequestDetails.class, theRequestDetails)
|
||||||
.addIfMatchesType(ServletRequestDetails.class, theRequestDetails)
|
.addIfMatchesType(ServletRequestDetails.class, theRequestDetails)
|
||||||
.add(TransactionDetails.class, theTransactionDetails)
|
.add(TransactionDetails.class, theTransactionDetails)
|
||||||
.add(Boolean.class, theTransactionDetails.isPointcutDeferred(Pointcut.STORAGE_PRECOMMIT_RESOURCE_UPDATED));
|
.add(Boolean.class, theTransactionDetails.isPointcutDeferred(Pointcut.STORAGE_PRECOMMIT_RESOURCE_UPDATED));
|
||||||
myInterceptorBroadcaster.callHooks(Pointcut.STORAGE_PRESTORAGE_RESOURCE_UPDATED, params);
|
myInterceptorBroadcaster.callHooks(Pointcut.STORAGE_PRECOMMIT_RESOURCE_UPDATED, preCommitParams);
|
||||||
myInterceptorBroadcaster.callHooks(Pointcut.STORAGE_PRECOMMIT_RESOURCE_UPDATED, params);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue