Class RestrictAllTablesPolicyEnforcer

java.lang.Object
org.apache.druid.query.policy.RestrictAllTablesPolicyEnforcer
All Implemented Interfaces:
PolicyEnforcer

public class RestrictAllTablesPolicyEnforcer extends Object implements PolicyEnforcer
All tables must be restricted by a policy.
  • Constructor Details

    • RestrictAllTablesPolicyEnforcer

      public RestrictAllTablesPolicyEnforcer(@Nullable List<String> allowedPolicies)
  • Method Details

    • validate

      public boolean validate(Policy policy)
      Description copied from interface: PolicyEnforcer
      Returns true if the policy complies with the policy enforcer.
      Specified by:
      validate in interface PolicyEnforcer
    • getAllowedPolicies

      public com.google.common.collect.ImmutableList<String> getAllowedPolicies()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object