Class RuleBuilder
- java.lang.Object
-
- ca.uhn.fhir.rest.server.interceptor.auth.RuleBuilder
-
- All Implemented Interfaces:
IAuthRuleBuilder
public class RuleBuilder extends Object implements IAuthRuleBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRuleBuilder.ITenantApplicabilityChecker
-
Constructor Summary
Constructors Constructor Description RuleBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAuthRuleBuilderRuleallow()Start a new rule to allow a given operationIAuthRuleBuilderRuleallow(String theRuleName)Start a new rule to allow a given operationIAuthRuleBuilderRuleOpClassifierFinishedallowAll()This rule allows any invocation to proceed.IAuthRuleBuilderRuleOpClassifierFinishedallowAll(String theRuleName)This rule allows any invocation to proceed.List<IAuthRule>build()Build the rule listIAuthRuleBuilderRuledeny()Start a new rule to deny a given operationIAuthRuleBuilderRuledeny(String theRuleName)Start a new rule to deny a given operationIAuthRuleBuilderRuleOpClassifierFinisheddenyAll()This rule allows any invocation to proceed.IAuthRuleBuilderRuleOpClassifierFinisheddenyAll(String theRuleName)This rule allows any invocation to proceed.
-
-
-
Constructor Detail
-
RuleBuilder
public RuleBuilder()
-
-
Method Detail
-
allow
public IAuthRuleBuilderRule allow()
Description copied from interface:IAuthRuleBuilderStart a new rule to allow a given operation- Specified by:
allowin interfaceIAuthRuleBuilder
-
allow
public IAuthRuleBuilderRule allow(String theRuleName)
Description copied from interface:IAuthRuleBuilderStart a new rule to allow a given operation- Specified by:
allowin interfaceIAuthRuleBuilder- Parameters:
theRuleName- The name of this rule. The rule name is used for logging and error messages, and could be shown to the client, but has no semantic meaning within HAPI FHIR.
-
allowAll
public IAuthRuleBuilderRuleOpClassifierFinished allowAll()
Description copied from interface:IAuthRuleBuilderThis rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsIAuthRuleBuilder.deny()rules in order to specify a blacklist chain.This call completes the rule and adds the rule to the chain.
- Specified by:
allowAllin interfaceIAuthRuleBuilder
-
allowAll
public IAuthRuleBuilderRuleOpClassifierFinished allowAll(String theRuleName)
Description copied from interface:IAuthRuleBuilderThis rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsIAuthRuleBuilder.deny()rules in order to specify a blacklist chain.This call completes the rule and adds the rule to the chain.
- Specified by:
allowAllin interfaceIAuthRuleBuilder- Parameters:
theRuleName- The name of this rule. The rule name is used for logging and error messages, and could be shown to the client, but has no semantic meaning within HAPI FHIR.
-
build
public List<IAuthRule> build()
Description copied from interface:IAuthRuleBuilderBuild the rule list- Specified by:
buildin interfaceIAuthRuleBuilder
-
deny
public IAuthRuleBuilderRule deny()
Description copied from interface:IAuthRuleBuilderStart a new rule to deny a given operation- Specified by:
denyin interfaceIAuthRuleBuilder
-
deny
public IAuthRuleBuilderRule deny(String theRuleName)
Description copied from interface:IAuthRuleBuilderStart a new rule to deny a given operation- Specified by:
denyin interfaceIAuthRuleBuilder- Parameters:
theRuleName- The name of this rule. The rule name is used for logging and error messages, and could be shown to the client, but has no semantic meaning within HAPI FHIR.
-
denyAll
public IAuthRuleBuilderRuleOpClassifierFinished denyAll()
Description copied from interface:IAuthRuleBuilderThis rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsIAuthRuleBuilder.allow()rules in order to specify a whitelist chain.This call completes the rule and adds the rule to the chain.
- Specified by:
denyAllin interfaceIAuthRuleBuilder
-
denyAll
public IAuthRuleBuilderRuleOpClassifierFinished denyAll(String theRuleName)
Description copied from interface:IAuthRuleBuilderThis rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsIAuthRuleBuilder.allow()rules in order to specify a whitelist chain.This call completes the rule and adds the rule to the chain.
- Specified by:
denyAllin interfaceIAuthRuleBuilder- Parameters:
theRuleName- The name of this rule. The rule name is used for logging and error messages, and could be shown to the client, but has no semantic meaning within HAPI FHIR.
-
-