Class RuleBulkExportImpl

java.lang.Object
ca.uhn.fhir.rest.server.interceptor.auth.RuleBulkExportImpl
All Implemented Interfaces:
IAuthRule

public class RuleBulkExportImpl extends Object
  • Method Details

    • applyRule

      public AuthorizationInterceptor.Verdict applyRule(ca.uhn.fhir.rest.api.RestOperationTypeEnum theOperation, RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseResource theInputResource, org.hl7.fhir.instance.model.api.IIdType theInputResourceId, org.hl7.fhir.instance.model.api.IBaseResource theOutputResource, IRuleApplier theRuleApplier, Set<AuthorizationFlagsEnum> theFlags, ca.uhn.fhir.interceptor.api.Pointcut thePointcut)
      Description copied from interface: IAuthRule
      Applies the rule and returns a policy decision, or null if the rule does not apply
      Parameters:
      theOperation - The operation type
      theRequestDetails - The request
      theInputResource - The resource being input by the client, or null
      theInputResourceId - TODO
      theOutputResource - The resource being returned by the server, or null
      theRuleApplier - The rule applying module (this can be used by rules to apply the rule set to nested objects in the request, such as nested requests in a transaction)
      theFlags - The flags configured in the authorization interceptor
      thePointcut - The pointcut hook that triggered this call
      Returns:
      Returns a policy decision, or null if the rule does not apply
    • setAppliesToGroupExportOnGroup

      public void setAppliesToGroupExportOnGroup(String theGroupId)
    • setAppliesToPatientExportOnGroup

      public void setAppliesToPatientExportOnGroup(String theGroupId)
    • setAppliesToSystem

      public void setAppliesToSystem()
    • setResourceTypes

      public void setResourceTypes(Collection<String> theResourceTypes)
    • setAppliesToAny

      public void setAppliesToAny()
    • addTester

      public void addTester(IAuthRuleTester theTester)
    • addTesters

      public void addTesters(List<IAuthRuleTester> theTesters)
    • getName

      public String getName()
      Description copied from interface: IAuthRule
      Returns a name for this rule, to be used in logs and error messages
      Specified by:
      getName in interface IAuthRule
    • getTesters

      public List<IAuthRuleTester> getTesters()
    • isResourceAccess

      protected boolean isResourceAccess(ca.uhn.fhir.interceptor.api.Pointcut thePointcut)