Interface Privilege

All Known Implementing Classes:
PrivilegeDTO, Privileges.ConsumeTopic, Privileges.CreateCatalog, Privileges.CreateFileset, Privileges.CreateModel, Privileges.CreateModelVersion, Privileges.CreateRole, Privileges.CreateSchema, Privileges.CreateTable, Privileges.CreateTopic, Privileges.GenericPrivilege, Privileges.ManageGrants, Privileges.ManageGroups, Privileges.ManageUsers, Privileges.ModifyTable, Privileges.ProduceTopic, Privileges.ReadFileset, Privileges.SelectTable, Privileges.UseCatalog, Privileges.UseModel, Privileges.UseSchema, Privileges.WriteFileset

@Unstable public interface Privilege
The interface of a privilege. The privilege represents the ability to execute kinds of operations for kinds of entities
  • Method Details

    • name

      Returns:
      The generic name of the privilege.
    • simpleString

      String simpleString()
      Returns:
      A readable string representation for the privilege.
    • condition

      Privilege.Condition condition()
      Returns:
      The condition of the privilege. `ALLOW` means that you are allowed to use the privilege, `DENY` means that you are denied to use the privilege
    • canBindTo

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