Class RuleEvaluator
java.lang.Object
org.openmetadata.service.security.policyevaluator.RuleEvaluator
Note that the methods in the class become available for SpEL expressions for authoring expressions such as
"noOwner()" or "!noOwner()"
-
Constructor Summary
ConstructorsConstructorDescriptionRuleEvaluator(org.openmetadata.service.security.policyevaluator.SubjectContext.PolicyContext policyContext, SubjectContext subjectContext, ResourceContextInterface resourceContext) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasAnyRole(String... roles) booleanbooleanisOwner()booleanmatchAllTags(String... tagFQNs) booleanmatchAnyTag(String... tagFQNs) booleanbooleannoOwner()
-
Constructor Details
-
RuleEvaluator
public RuleEvaluator() -
RuleEvaluator
public RuleEvaluator(org.openmetadata.service.security.policyevaluator.SubjectContext.PolicyContext policyContext, SubjectContext subjectContext, ResourceContextInterface resourceContext)
-
-
Method Details
-
noOwner
public boolean noOwner() -
isOwner
public boolean isOwner() -
matchAllTags
-
matchAnyTag
-
matchTeam
public boolean matchTeam() -
inAnyTeam
-
hasAnyRole
-