Class PolicyContents

java.lang.Object
org.apache.gravitino.policy.PolicyContents

public class PolicyContents extends Object
Utility class for creating instances of PolicyContent.
  • Method Details

    • custom

      public static PolicyContent custom(Map<String,Object> rules, Set<MetadataObject.Type> supportedObjectTypes, Map<String,String> properties)
      Creates a custom policy content with the given rules and properties.
      Parameters:
      rules - The custom rules of the policy.
      supportedObjectTypes - The set of metadata object types that the policy can be applied to.
      properties - The additional properties of the policy.
      Returns:
      A new instance of PolicyContent with the specified rules and properties.