Class SecurableObjectDTO
java.lang.Object
org.apache.gravitino.dto.authorization.SecurableObjectDTO
- All Implemented Interfaces:
SecurableObject
,MetadataObject
Data transfer object representing a securable object.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.gravitino.MetadataObject
MetadataObject.Type
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor for Jackson deserialization. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurableObjectDTO.Builder
builder()
name()
The name of the object.parent()
The parent full name of the object.The privileges of the securable object.void
setFullName
(String fullName) Sets the full name of the securable object.type()
The type of the object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.gravitino.MetadataObject
fullName
-
Constructor Details
-
SecurableObjectDTO
protected SecurableObjectDTO()Default constructor for Jackson deserialization.
-
-
Method Details
-
getFullName
- Returns:
- The full name of the securable object.
-
setFullName
Sets the full name of the securable object. Only used by Jackson deserializer.- Parameters:
fullName
- The full name of the metadata object.
-
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 interfaceMetadataObject
- Returns:
- The parent full name of the object.
-
name
Description copied from interface:MetadataObject
The name of the object.- Specified by:
name
in interfaceMetadataObject
- Returns:
- The name of the object.
-
type
Description copied from interface:MetadataObject
The type of the object.- Specified by:
type
in interfaceMetadataObject
- Returns:
- The type of the object.
-
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 interfaceSecurableObject
- Returns:
- The privileges of the securable object.
-
builder
- Returns:
- the builder for creating a new instance of SecurableObjectDTO.
-