Class RuleImplConditional
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.auth.RuleImplConditional
- All Implemented Interfaces:
IAuthRule
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTester
(IAuthRuleTester theTester) void
addTesters
(List<IAuthRuleTester> theTesters) 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) Applies the rule and returns a policy decision, ornull
if the rule does not applygetName()
Returns a name for this rule, to be used in logs and error messagesprotected boolean
isResourceAccess
(ca.uhn.fhir.interceptor.api.Pointcut thePointcut) toString()
-
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, ornull
if the rule does not apply- Specified by:
applyRule
in interfaceIAuthRule
- Parameters:
theOperation
- The operation typetheRequestDetails
- The requesttheInputResource
- The resource being input by the client, ornull
theInputResourceId
- TODOtheOutputResource
- The resource being returned by the server, ornull
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 interceptorthePointcut
- The pointcut hook that triggered this call- Returns:
- Returns a policy decision, or
null
if the rule does not apply
-
addTester
-
addTesters
-
getName
Description copied from interface:IAuthRule
Returns a name for this rule, to be used in logs and error messages -
getTesters
-
isResourceAccess
protected boolean isResourceAccess(ca.uhn.fhir.interceptor.api.Pointcut thePointcut) -
toString
-