mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-17 02:15:22 +00:00
don't call SUBSCRIPTION_BEFORE_PERSISTED_RESOURCE_CHECKED and SUBSCRIPTION_AFTER_PERSISTED_RESOURCE_CHECKED for DELETE operations (since we don't currently match subscriptions for DELETE operations)
This commit is contained in:
parent
c2de9c5434
commit
68171ba950
@ -72,6 +72,17 @@ public class SubscriptionMatchingSubscriber implements MessageHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void matchActiveSubscriptionsAndDeliver(ResourceModifiedMessage theMsg) {
|
public void matchActiveSubscriptionsAndDeliver(ResourceModifiedMessage theMsg) {
|
||||||
|
switch (theMsg.getOperationType()) {
|
||||||
|
case CREATE:
|
||||||
|
case UPDATE:
|
||||||
|
case MANUALLY_TRIGGERED:
|
||||||
|
break;
|
||||||
|
case DELETE:
|
||||||
|
default:
|
||||||
|
ourLog.trace("Not processing modified message for {}", theMsg.getOperationType());
|
||||||
|
// ignore anything else
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Interceptor call: SUBSCRIPTION_BEFORE_PERSISTED_RESOURCE_CHECKED
|
// Interceptor call: SUBSCRIPTION_BEFORE_PERSISTED_RESOURCE_CHECKED
|
||||||
if (!myInterceptorBroadcaster.callHooks(Pointcut.SUBSCRIPTION_BEFORE_PERSISTED_RESOURCE_CHECKED, theMsg)) {
|
if (!myInterceptorBroadcaster.callHooks(Pointcut.SUBSCRIPTION_BEFORE_PERSISTED_RESOURCE_CHECKED, theMsg)) {
|
||||||
@ -87,18 +98,6 @@ public class SubscriptionMatchingSubscriber implements MessageHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void doMatchActiveSubscriptionsAndDeliver(ResourceModifiedMessage theMsg) {
|
private void doMatchActiveSubscriptionsAndDeliver(ResourceModifiedMessage theMsg) {
|
||||||
switch (theMsg.getOperationType()) {
|
|
||||||
case CREATE:
|
|
||||||
case UPDATE:
|
|
||||||
case MANUALLY_TRIGGERED:
|
|
||||||
break;
|
|
||||||
case DELETE:
|
|
||||||
default:
|
|
||||||
ourLog.trace("Not processing modified message for {}", theMsg.getOperationType());
|
|
||||||
// ignore anything else
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
IIdType resourceId = theMsg.getId(myFhirContext);
|
IIdType resourceId = theMsg.getId(myFhirContext);
|
||||||
|
|
||||||
Collection<ActiveSubscription> subscriptions = mySubscriptionRegistry.getAll();
|
Collection<ActiveSubscription> subscriptions = mySubscriptionRegistry.getAll();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user