Interface IAuthRule
-
- All Known Implementing Classes:
RuleImplConditional
public interface IAuthRule
Note: At this time, this interface is considered internal API to HAPI FHIR, and is subject to change without warning. Create your own implementations at your own risk. If you have use cases that are not met by the current implementation, please consider raising them on the HAPI FHIR Google Group.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorizationInterceptor.VerdictapplyRule(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, ornullif the rule does not applyStringgetName()Returns a name for this rule, to be used in logs and error messages
-
-
-
Method Detail
-
applyRule
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)
Applies the rule and returns a policy decision, ornullif the rule does not apply- Parameters:
theOperation- The operation typetheRequestDetails- The requesttheInputResource- The resource being input by the client, ornulltheInputResourceId- TODOtheOutputResource- The resource being returned by the server, ornulltheRuleApplier- 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
nullif the rule does not apply
-
-