Class RuleEvaluator
- java.lang.Object
-
- org.openmetadata.service.security.policyevaluator.RuleEvaluator
-
public class RuleEvaluator extends Object
Note that the methods in the class become available for SpEL expressions for authoring expressions such as "noOwner()" or "!noOwner()"
-
-
Constructor Summary
Constructors Constructor Description RuleEvaluator()RuleEvaluator(org.openmetadata.service.security.policyevaluator.SubjectContext.PolicyContext policyContext, SubjectContext subjectContext, ResourceContextInterface resourceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasAnyRole(String... roles)booleaninAnyTeam(String... teams)booleanisOwner()booleanmatchAllTags(String... tagFQNs)booleanmatchAnyTag(String... tagFQNs)booleanmatchTeam()booleannoOwner()
-
-
-
Constructor Detail
-
RuleEvaluator
public RuleEvaluator()
-
RuleEvaluator
public RuleEvaluator(org.openmetadata.service.security.policyevaluator.SubjectContext.PolicyContext policyContext, SubjectContext subjectContext, ResourceContextInterface resourceContext)
-
-
Method Detail
-
noOwner
public boolean noOwner()
-
isOwner
public boolean isOwner()
-
matchAllTags
public boolean matchAllTags(String... tagFQNs)
-
matchAnyTag
public boolean matchAnyTag(String... tagFQNs)
-
matchTeam
public boolean matchTeam()
-
inAnyTeam
public boolean inAnyTeam(String... teams)
-
hasAnyRole
public boolean hasAnyRole(String... roles)
-
-