Class RuleBuilder
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.auth.RuleBuilder
- All Implemented Interfaces:
IAuthRuleBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallow()
Start a new rule to allow a given operationStart a new rule to allow a given operationallowAll()
This rule allows any invocation to proceed.This rule allows any invocation to proceed.build()
Build the rule listdeny()
Start a new rule to deny a given operationStart a new rule to deny a given operationdenyAll()
This rule allows any invocation to proceed.This rule allows any invocation to proceed.
-
Constructor Details
-
RuleBuilder
public RuleBuilder()
-
-
Method Details
-
allow
Description copied from interface:IAuthRuleBuilder
Start a new rule to allow a given operation- Specified by:
allow
in interfaceIAuthRuleBuilder
-
allow
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
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
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
Description copied from interface:IAuthRuleBuilder
Build the rule list- Specified by:
build
in interfaceIAuthRuleBuilder
-
deny
Description copied from interface:IAuthRuleBuilder
Start a new rule to deny a given operation- Specified by:
deny
in interfaceIAuthRuleBuilder
-
deny
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
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
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.
-