Class Privileges.CreateTable
java.lang.Object
org.apache.gravitino.authorization.Privileges.GenericPrivilege<Privileges.CreateTable>
org.apache.gravitino.authorization.Privileges.CreateTable
- All Implemented Interfaces:
Privilege
- Enclosing class:
- Privileges
public static class Privileges.CreateTable
extends Privileges.GenericPrivilege<Privileges.CreateTable>
The privilege to create a table.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.authorization.Privilege
Privilege.Condition, Privilege.Name
-
Method Summary
Modifier and TypeMethodDescriptionstatic Privileges.CreateTable
allow()
boolean
canBindTo
(MetadataObject.Type type) If the privilege can bind to a securable object, then this method will return true, otherwise false.static Privileges.CreateTable
deny()
Methods inherited from class org.apache.gravitino.authorization.Privileges.GenericPrivilege
condition, equals, hashCode, name, simpleString
-
Method Details
-
allow
- Returns:
- The instance with allow condition of the privilege.
-
deny
- Returns:
- The instance with deny condition of the privilege.
-
canBindTo
Description copied from interface:Privilege
If the privilege can bind to a securable object, then this method will return true, otherwise false.- Parameters:
type
- The securable object type.- Returns:
- It will return true if the privilege can bind to a securable object, otherwise false.
-