Interface PolicyContent

All Known Subinterfaces:
PolicyContentDTO
All Known Implementing Classes:
PolicyContentDTO.CustomContentDTO, PolicyContents.CustomContent

public interface PolicyContent
The interface of the content of the policy.
  • Method Details

    • supportedObjectTypes

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

      Map<String,String> properties()
      Returns:
      The additional properties of the policy.
    • rules

      default Map<String,Object> rules()
      A convenience method to get all rules in the policy content.
      Returns:
      A map of rule names to their corresponding rule objects.
    • validate

      default void validate() throws IllegalArgumentException
      Validates the policy content.
      Throws:
      IllegalArgumentException - if the content is invalid.