Class SecurableObjectDTO

java.lang.Object
org.apache.gravitino.dto.authorization.SecurableObjectDTO
All Implemented Interfaces:
SecurableObject, MetadataObject

public class SecurableObjectDTO extends Object implements SecurableObject
Data transfer object representing a securable object.
  • Constructor Details

    • SecurableObjectDTO

      protected SecurableObjectDTO()
      Default constructor for Jackson deserialization.
  • Method Details

    • getFullName

      public String getFullName()
      Returns:
      The full name of the securable object.
    • setFullName

      public void setFullName(String fullName)
      Sets the full name of the securable object. Only used by Jackson deserializer.
      Parameters:
      fullName - The full name of the metadata object.
    • parent

      @Nullable public String parent()
      Description copied from interface: MetadataObject
      The parent full name of the object. If the object doesn't have parent, this method will return null.
      Specified by:
      parent in interface MetadataObject
      Returns:
      The parent full name of the object.
    • name

      public String name()
      Description copied from interface: MetadataObject
      The name of the object.
      Specified by:
      name in interface MetadataObject
      Returns:
      The name of the object.
    • type

      public MetadataObject.Type type()
      Description copied from interface: MetadataObject
      The type of the object.
      Specified by:
      type in interface MetadataObject
      Returns:
      The type of the object.
    • privileges

      public List<Privilege> privileges()
      Description copied from interface: SecurableObject
      The privileges of the securable object. For example: If the securable object is a table, the privileges could be `READ TABLE`, `WRITE TABLE`, etc. If a schema has the privilege of `LOAD TABLE`. It means the role can load all tables of the schema.
      Specified by:
      privileges in interface SecurableObject
      Returns:
      The privileges of the securable object.
    • builder

      public static SecurableObjectDTO.Builder builder()
      Returns:
      the builder for creating a new instance of SecurableObjectDTO.