Class RuleImplConditional
- java.lang.Object
-
- ca.uhn.fhir.rest.server.interceptor.auth.RuleImplConditional
-
- All Implemented Interfaces:
IAuthRule
public class RuleImplConditional extends Object implements IAuthRule
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTester(IAuthRuleTester theTester)voidaddTesters(List<IAuthRuleTester> theTesters)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 messagesRuleBuilder.ITenantApplicabilityCheckergetTenantApplicabilityChecker()List<IAuthRuleTester>getTesters()booleanisOtherTenant(RequestDetails theRequestDetails)voidsetTenantApplicabilityChecker(RuleBuilder.ITenantApplicabilityChecker theTenantApplicabilityChecker)
-
-
-
Method Detail
-
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:IAuthRuleApplies the rule and returns a policy decision, ornullif the rule does not apply- Specified by:
applyRulein interfaceIAuthRule- 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
-
addTester
public void addTester(IAuthRuleTester theTester)
-
addTesters
public void addTesters(List<IAuthRuleTester> theTesters)
-
getName
public String getName()
Description copied from interface:IAuthRuleReturns a name for this rule, to be used in logs and error messages
-
getTenantApplicabilityChecker
public RuleBuilder.ITenantApplicabilityChecker getTenantApplicabilityChecker()
-
setTenantApplicabilityChecker
public final void setTenantApplicabilityChecker(RuleBuilder.ITenantApplicabilityChecker theTenantApplicabilityChecker)
-
getTesters
public List<IAuthRuleTester> getTesters()
-
isOtherTenant
public boolean isOtherTenant(RequestDetails theRequestDetails)
-
-