Class FhirQueryRuleTester

java.lang.Object
ca.uhn.fhir.rest.server.interceptor.auth.FhirQueryRuleTester
All Implemented Interfaces:
IAuthRuleTester

public class FhirQueryRuleTester extends Object implements IAuthRuleTester
Tester that a resource matches a provided query filter.
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(IAuthRuleTester.RuleTestRequest theRuleTestRequest)
      Description copied from interface: IAuthRuleTester
      User supplied logic called just before the parent rule renders a verdict on the operation or input resource. Returning true will allow the verdict continue. Returning false will block the verdict and cause the rule to abstain (i.e. return null).

      THIS IS AN EXPERIMENTAL API! Feedback is welcome, and this API may change.

      Specified by:
      matches in interface IAuthRuleTester
      Parameters:
      theRuleTestRequest - The details of the operation or an INPUT resource to evaluate
      Returns:
      true if the verdict should continue
    • matchesOutput

      public boolean matchesOutput(IAuthRuleTester.RuleTestRequest theRuleTestRequest)
      Description copied from interface: IAuthRuleTester
      User supplied logic called just before the parent rule renders a verdict on an output resource. Returning true will allow the verdict continue. Returning false will block the verdict and cause the rule to abstain (i.e. return null).

      THIS IS AN EXPERIMENTAL API! Feedback is welcome, and this API may change.

      Specified by:
      matchesOutput in interface IAuthRuleTester
      Parameters:
      theRuleTestRequest - The details of the operation or an INPUT resource to evaluate
      Returns:
      true if the verdict should continue
    • toString

      public String toString()
      Overrides:
      toString in class Object