Class SubscriptionMatcherInterceptor
java.lang.Object
ca.uhn.fhir.jpa.subscription.submit.interceptor.SubscriptionMatcherInterceptor
- Direct Known Subclasses:
SynchronousSubscriptionMatcherInterceptor
This interceptor is responsible for submitting operations on resources to the subscription pipeline.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceModifiedMessage
createResourceModifiedMessage
(org.hl7.fhir.instance.model.api.IBaseResource theNewResource, ca.uhn.fhir.rest.server.messaging.BaseResourceMessage.OperationTypeEnum theOperationType, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) protected void
processResourceModifiedEvent
(org.hl7.fhir.instance.model.api.IBaseResource theNewResource, ca.uhn.fhir.rest.server.messaging.BaseResourceMessage.OperationTypeEnum theOperationType, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) This is an internal API - Use with caution! This method will create aResourceModifiedMessage
, persist it and arrange for its delivery to the subscription pipeline after the resource was committed.protected void
processResourceModifiedMessage
(ResourceModifiedMessage theResourceModifiedMessage) void
resourceCreated
(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) void
resourceDeleted
(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) void
resourceUpdated
(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) void
setFhirContext
(ca.uhn.fhir.context.FhirContext theCtx)
-
Constructor Details
-
SubscriptionMatcherInterceptor
public SubscriptionMatcherInterceptor()Constructor
-
-
Method Details
-
resourceCreated
public void resourceCreated(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) -
resourceDeleted
public void resourceDeleted(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) -
resourceUpdated
public void resourceUpdated(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) -
processResourceModifiedEvent
protected void processResourceModifiedEvent(org.hl7.fhir.instance.model.api.IBaseResource theNewResource, ca.uhn.fhir.rest.server.messaging.BaseResourceMessage.OperationTypeEnum theOperationType, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) This is an internal API - Use with caution! This method will create aResourceModifiedMessage
, persist it and arrange for its delivery to the subscription pipeline after the resource was committed. The message is persisted to provide asynchronous submission in the event where submission would fail. -
processResourceModifiedMessage
-
createResourceModifiedMessage
protected ResourceModifiedMessage createResourceModifiedMessage(org.hl7.fhir.instance.model.api.IBaseResource theNewResource, ca.uhn.fhir.rest.server.messaging.BaseResourceMessage.OperationTypeEnum theOperationType, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) -
setFhirContext
-