Class RoleDTO
java.lang.Object
org.apache.gravitino.dto.authorization.RoleDTO
Represents a Role Data Transfer Object (DTO).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
RoleDTO.Builder<S extends RoleDTO.Builder>
Builder class for constructing a RoleDTO instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RoleDTO.Builder
builder()
Creates a new Builder for constructing a Role DTO.name()
The name of the role.The properties of the role.The resource represents a special kind of entity with a unique identifier.
-
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
Description copied from interface:Role
The name of the role. -
properties
The properties of the role. Note, this method will return null if the properties are not set.- Specified by:
properties
in interfaceRole
- Returns:
- The properties of the role.
-
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 interfaceRole
- Returns:
- The securable object of the role.
-
auditInfo
-
builder
Creates a new Builder for constructing a Role DTO.- Returns:
- A new Builder instance.
-