java.lang.Object
org.apache.gravitino.dto.authorization.RoleDTO
All Implemented Interfaces:
Auditable, Role

public class RoleDTO extends Object implements Role
Represents a Role Data Transfer Object (DTO).
  • Constructor Details

    • RoleDTO

      protected RoleDTO()
      Default constructor for Jackson deserialization.
    • RoleDTO

      protected RoleDTO(String name, Map<String,String> properties, SecurableObjectDTO[] securableObjects, AuditDTO audit)
      Creates a new instance of RoleDTO.
      Parameters:
      name - The name of the Role DTO.
      properties - The properties of the Role DTO.
      securableObjects - The securable objects of the Role DTO.
      audit - The audit information of the Role DTO.
  • Method Details

    • name

      public String name()
      Description copied from interface: Role
      The name of the role.
      Specified by:
      name in interface Role
      Returns:
      The name of the Role DTO.
    • properties

      public Map<String,String> properties()
      The properties of the role. Note, this method will return null if the properties are not set.
      Specified by:
      properties in interface Role
      Returns:
      The properties of the role.
    • securableObjects

      public List<SecurableObject> securableObjects()
      The resource represents a special kind of entity with a unique identifier. All resources are organized by tree structure. For example: If the resource is a table, the identifier may be `catalog1.schema1.table1`.
      Specified by:
      securableObjects in interface Role
      Returns:
      The securable object of the role.
    • auditInfo

      public Audit auditInfo()
      Specified by:
      auditInfo in interface Auditable
      Returns:
      The audit information of the Role DTO.
    • builder

      public static RoleDTO.Builder builder()
      Creates a new Builder for constructing a Role DTO.
      Returns:
      A new Builder instance.