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

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    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 a ResourceModifiedMessage, persist it and arrange for its delivery to the subscription pipeline after the resource was committed.
    protected void
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 a ResourceModifiedMessage, 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

      protected void processResourceModifiedMessage(ResourceModifiedMessage theResourceModifiedMessage)
    • 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

      public void setFhirContext(ca.uhn.fhir.context.FhirContext theCtx)