
Class RuleBuilder
- java.lang.Object
-
- ca.uhn.fhir.rest.server.interceptor.auth.RuleBuilder
-
- All Implemented Interfaces:
IAuthRuleBuilder
public class RuleBuilder extends Object implements IAuthRuleBuilder
-
-
Constructor Summary
Constructors Constructor Description RuleBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAuthRuleBuilderRule
allow()
Start a new rule to allow a given operationIAuthRuleBuilderRule
allow(String theRuleName)
Start a new rule to allow a given operationIAuthRuleBuilderRuleOpClassifierFinished
allowAll()
This rule allows any invocation to proceed.IAuthRuleBuilderRuleOpClassifierFinished
allowAll(String theRuleName)
This rule allows any invocation to proceed.List<IAuthRule>
build()
Build the rule listIAuthRuleBuilderRule
deny()
Start a new rule to deny a given operationIAuthRuleBuilderRule
deny(String theRuleName)
Start a new rule to deny a given operationIAuthRuleBuilderRuleOpClassifierFinished
denyAll()
This rule allows any invocation to proceed.IAuthRuleBuilderRuleOpClassifierFinished
denyAll(String theRuleName)
This rule allows any invocation to proceed.
-
-
-
Constructor Detail
-
RuleBuilder
public RuleBuilder()
-
-
Method Detail
-
allow
public IAuthRuleBuilderRule allow()
Description copied from interface:IAuthRuleBuilder
Start a new rule to allow a given operation- Specified by:
allow
in interfaceIAuthRuleBuilder
-
allow
public IAuthRuleBuilderRule allow(String theRuleName)
Description copied from interface:IAuthRuleBuilder
Start a new rule to allow a given operation- Specified by:
allow
in 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:IAuthRuleBuilder
This 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:
allowAll
in interfaceIAuthRuleBuilder
-
allowAll
public IAuthRuleBuilderRuleOpClassifierFinished allowAll(String theRuleName)
Description copied from interface:IAuthRuleBuilder
This 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:
allowAll
in 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:IAuthRuleBuilder
Build the rule list- Specified by:
build
in interfaceIAuthRuleBuilder
-
deny
public IAuthRuleBuilderRule deny()
Description copied from interface:IAuthRuleBuilder
Start a new rule to deny a given operation- Specified by:
deny
in interfaceIAuthRuleBuilder
-
deny
public IAuthRuleBuilderRule deny(String theRuleName)
Description copied from interface:IAuthRuleBuilder
Start a new rule to deny a given operation- Specified by:
deny
in 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:IAuthRuleBuilder
This 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:
denyAll
in interfaceIAuthRuleBuilder
-
denyAll
public IAuthRuleBuilderRuleOpClassifierFinished denyAll(String theRuleName)
Description copied from interface:IAuthRuleBuilder
This 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:
denyAll
in 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.
-
-