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
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for Jackson deserialization. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurableObjectDTO.Builderbuilder()name()The name of the object.parent()The parent full name of the object.The privileges of the securable object.voidsetFullName(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, waitMethods 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:MetadataObjectThe parent full name of the object. If the object doesn't have parent, this method will return null.- Specified by:
parentin interfaceMetadataObject- Returns:
- The parent full name of the object.
-
name
Description copied from interface:MetadataObjectThe name of the object.- Specified by:
namein interfaceMetadataObject- Returns:
- The name of the object.
-
type
Description copied from interface:MetadataObjectThe type of the object.- Specified by:
typein interfaceMetadataObject- Returns:
- The type of the object.
-
privileges
Description copied from interface:SecurableObjectThe 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:
privilegesin interfaceSecurableObject- Returns:
- The privileges of the securable object.
-
builder
- Returns:
- the builder for creating a new instance of SecurableObjectDTO.
-