public class RuleImplConditional extends Object implements IAuthRule
| Modifier and Type | Method and Description |
|---|---|
void |
addTester(IAuthRuleTester theTester) |
void |
addTesters(List<IAuthRuleTester> theTesters) |
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)
Applies the rule and returns a policy decision, or
null if the rule does not apply |
String |
getName()
Returns a name for this rule, to be used in logs and error messages
|
RuleBuilder.ITenantApplicabilityChecker |
getTenantApplicabilityChecker() |
List<IAuthRuleTester> |
getTesters() |
boolean |
isOtherTenant(RequestDetails theRequestDetails) |
void |
setTenantApplicabilityChecker(RuleBuilder.ITenantApplicabilityChecker theTenantApplicabilityChecker) |
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)
IAuthRulenull if the rule does not applyapplyRule in interface IAuthRuletheOperation - The operation typetheRequestDetails - The requesttheInputResource - The resource being input by the client, or nulltheInputResourceId - TODOtheOutputResource - The resource being returned by the server, or nulltheRuleApplier - 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)null if the rule does not applypublic void addTester(IAuthRuleTester theTester)
public void addTesters(List<IAuthRuleTester> theTesters)
public String getName()
IAuthRulepublic RuleBuilder.ITenantApplicabilityChecker getTenantApplicabilityChecker()
public final void setTenantApplicabilityChecker(RuleBuilder.ITenantApplicabilityChecker theTenantApplicabilityChecker)
public List<IAuthRuleTester> getTesters()
public boolean isOtherTenant(RequestDetails theRequestDetails)
Copyright © 2014–2019 University Health Network. All rights reserved.