Class Privileges.ManageGrants

All Implemented Interfaces:
Privilege
Enclosing class:
Privileges

public static class Privileges.ManageGrants extends Privileges.GenericPrivilege<Privileges.ManageGrants>
The privilege to grant or revoke privileges on securable objects. If bound on the metalake, we can grant or revoke the role for users or groups.

Unlike most privileges, this can be bound at any level of the object hierarchy — METALAKE, CATALOG, SCHEMA, TABLE, VIEW, TOPIC, FILESET, or MODEL. A grant at a parent level implicitly covers all descendants within it.

  • Method Details

    • allow

      public static Privileges.ManageGrants allow()
      Returns:
      The instance with allow condition of the privilege.
    • deny

      public static Privileges.ManageGrants deny()
      Returns:
      The instance with deny condition of the privilege.
    • canBindTo

      public boolean canBindTo(MetadataObject.Type type)
      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.