Class PrivilegeDTO
java.lang.Object
org.apache.gravitino.dto.authorization.PrivilegeDTO
- All Implemented Interfaces:
Privilege
Data transfer object representing a privilege.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.gravitino.authorization.Privilege
Privilege.Condition, Privilege.Name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor for Jackson deserialization.protected
PrivilegeDTO
(Privilege.Name name, Privilege.Condition condition) Creates a new instance of PrivilegeDTO. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivilegeDTO.Builder
builder()
boolean
canBindTo
(MetadataObject.Type type) If the privilege can bind to a securable object, then this method will return true, otherwise false.name()
-
Constructor Details
-
PrivilegeDTO
protected PrivilegeDTO()Default constructor for Jackson deserialization. -
PrivilegeDTO
Creates a new instance of PrivilegeDTO.- Parameters:
name
- The name of the Privilege DTO.condition
- The condition of the Privilege DTO.
-
-
Method Details
-
name
-
simpleString
- Specified by:
simpleString
in interfacePrivilege
- Returns:
- A readable string representation for the privilege.
-
condition
-
canBindTo
Description copied from interface:Privilege
If the privilege can bind to a securable object, then this method will return true, otherwise false. -
builder
- Returns:
- the builder for creating a new instance of PrivilegeDTO.
-