Class SubscriptionRulesInterceptor

java.lang.Object
ca.uhn.fhir.jpa.subscription.util.SubscriptionRulesInterceptor

This interceptor enforces various rules on Subscriptions, preventing them from being registered if they don't meet the configured requirements.
Since:
8.2.0
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • addAllowedCriteriaPattern

      public void addAllowedCriteriaPattern(@Nonnull String theAllowedCriteriaPattern)
      Specifies a regular expression pattern which any Subscription (or SubscriptionTopic on R5+) must match. If more than one pattern is supplied, the pattern must match at least one pattern to be accepted, but does not need to match all of them.
    • setValidateRestHookEndpointIsReachable

      public void setValidateRestHookEndpointIsReachable(boolean theValidateRestHookEndpointIsReachable)
      If true, Subscriptions with a type of "rest-hook" will be tested to ensure that the endpoint is accessible. If it is not, the subscription will be blocked.
    • validateCreate

      public void validateCreate(org.hl7.fhir.instance.model.api.IBaseResource theResource)
    • validateUpdate

      public void validateUpdate(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theResource)