
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionRulesInterceptor
(ca.uhn.fhir.context.FhirContext theFhirContext, SubscriptionSettings theSubscriptionSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllowedCriteriaPattern
(String theAllowedCriteriaPattern) Specifies a regular expression pattern which any Subscription (or SubscriptionTopic on R5+) must match.void
setValidateRestHookEndpointIsReachable
(boolean theValidateRestHookEndpointIsReachable) If true, Subscriptions with a type of "rest-hook" will be tested to ensure that the endpoint is accessible.void
validateCreate
(org.hl7.fhir.instance.model.api.IBaseResource theResource) void
validateUpdate
(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theResource)
-
Field Details
-
CRITERIA_WITH_AT_LEAST_ONE_PARAM
- See Also:
-
-
Constructor Details
-
SubscriptionRulesInterceptor
public SubscriptionRulesInterceptor(@Nonnull ca.uhn.fhir.context.FhirContext theFhirContext, @Nonnull SubscriptionSettings theSubscriptionSettings)
-
-
Method Details
-
addAllowedCriteriaPattern
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
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
-
validateUpdate
public void validateUpdate(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theResource)
-