Class GroupDTO

java.lang.Object
org.apache.gravitino.dto.authorization.GroupDTO
All Implemented Interfaces:
Auditable, Group

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

    • GroupDTO

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

      protected GroupDTO(String name, List<String> roles, AuditDTO audit)
      Creates a new instance of GroupDTO.
      Parameters:
      name - The name of the Group DTO.
      roles - The roles of the Group DTO.
      audit - The audit information of the Group DTO.
  • Method Details

    • name

      public String name()
      Description copied from interface: Group
      The name of the group.
      Specified by:
      name in interface Group
      Returns:
      The name of the Group DTO.
    • roles

      public List<String> roles()
      The roles of the group. A group can have multiple roles. Every role binds several privileges.
      Specified by:
      roles in interface Group
      Returns:
      The roles of the group.
    • auditInfo

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

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