Interface IAuthRuleBuilder
-
- All Known Implementing Classes:
RuleBuilder
public interface IAuthRuleBuilder
Used byAuthorizationInterceptorin order to allow user code to define authorization rules.- See Also:
AuthorizationInterceptor
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
allow
IAuthRuleBuilderRule allow()
Start a new rule to allow a given operation
-
allow
IAuthRuleBuilderRule allow(String theRuleName)
Start a new rule to allow a given operation- 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
IAuthRuleBuilderRuleOpClassifierFinished allowAll()
This rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsdeny()rules in order to specify a blacklist chain.This call completes the rule and adds the rule to the chain.
-
allowAll
IAuthRuleBuilderRuleOpClassifierFinished allowAll(String theRuleName)
This rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsdeny()rules in order to specify a blacklist chain.This call completes the rule and adds the rule to the chain.
- 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.
-
deny
IAuthRuleBuilderRule deny()
Start a new rule to deny a given operation
-
deny
IAuthRuleBuilderRule deny(String theRuleName)
Start a new rule to deny a given operation- 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
IAuthRuleBuilderRuleOpClassifierFinished denyAll()
This rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsallow()rules in order to specify a whitelist chain.This call completes the rule and adds the rule to the chain.
-
denyAll
IAuthRuleBuilderRuleOpClassifierFinished denyAll(String theRuleName)
This rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsallow()rules in order to specify a whitelist chain.This call completes the rule and adds the rule to the chain.
- 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.
-
-