Class PolicyContentDTO.CustomContentDTO

java.lang.Object
org.apache.gravitino.dto.policy.PolicyContentDTO.CustomContentDTO
All Implemented Interfaces:
PolicyContentDTO, PolicyContent
Enclosing interface:
PolicyContentDTO

public static class PolicyContentDTO.CustomContentDTO extends Object implements PolicyContentDTO
Represents a custom policy content DTO.
  • Method Details

    • customRules

      public Map<String,Object> customRules()
      Returns the custom rules defined in this policy content.
      Returns:
      a map of custom rules where the key is the rule name and the value is the rule value.
    • supportedObjectTypes

      public Set<MetadataObject.Type> supportedObjectTypes()
      Specified by:
      supportedObjectTypes in interface PolicyContent
      Returns:
      the set of metadata object types that the policy can be applied to
    • properties

      public Map<String,String> properties()
      Specified by:
      properties in interface PolicyContent
      Returns:
      The additional properties of the policy.