Enum Class Privilege.Name

java.lang.Object
java.lang.Enum<Privilege.Name>
org.apache.gravitino.authorization.Privilege.Name
All Implemented Interfaces:
Serializable, Comparable<Privilege.Name>, Constable
Enclosing interface:
Privilege

public static enum Privilege.Name extends Enum<Privilege.Name>
The name of this privilege.
  • Enum Constant Details

    • CREATE_CATALOG

      public static final Privilege.Name CREATE_CATALOG
      The privilege to create a catalog.
    • USE_CATALOG

      public static final Privilege.Name USE_CATALOG
      The privilege to use a catalog.
    • CREATE_SCHEMA

      public static final Privilege.Name CREATE_SCHEMA
      The privilege to create a schema.
    • USE_SCHEMA

      public static final Privilege.Name USE_SCHEMA
      the privilege to use a schema.
    • CREATE_TABLE

      public static final Privilege.Name CREATE_TABLE
      The privilege to create a table.
    • MODIFY_TABLE

      public static final Privilege.Name MODIFY_TABLE
      The privilege to write data to a table or modify the table schema.
    • SELECT_TABLE

      public static final Privilege.Name SELECT_TABLE
      The privilege to select data from a table.
    • CREATE_FILESET

      public static final Privilege.Name CREATE_FILESET
      The privilege to create a fileset.
    • WRITE_FILESET

      public static final Privilege.Name WRITE_FILESET
      The privilege to write a fileset.
    • READ_FILESET

      public static final Privilege.Name READ_FILESET
      The privilege to read a fileset.
    • CREATE_TOPIC

      public static final Privilege.Name CREATE_TOPIC
      The privilege to create a topic.
    • PRODUCE_TOPIC

      public static final Privilege.Name PRODUCE_TOPIC
      The privilege to produce to a topic.
    • CONSUME_TOPIC

      public static final Privilege.Name CONSUME_TOPIC
      The privilege to consume from a topic.
    • MANAGE_USERS

      public static final Privilege.Name MANAGE_USERS
      The privilege to manage users
    • MANAGE_GROUPS

      public static final Privilege.Name MANAGE_GROUPS
      The privilege to manage groups
    • CREATE_ROLE

      public static final Privilege.Name CREATE_ROLE
      The privilege to create a role
    • MANAGE_GRANTS

      public static final Privilege.Name MANAGE_GRANTS
      The privilege to grant or revoke a role for the user or the group.
    • REGISTER_MODEL

      public static final Privilege.Name REGISTER_MODEL
      The privilege to register a model
    • CREATE_MODEL

      @Deprecated public static final Privilege.Name CREATE_MODEL
      Deprecated.
      The privilege to create a model. This is deprecated. Please use REGISTER_MODEL.

      Note: This enum shares the same bit value (1L << 18) as REGISTER_MODEL for backward compatibility. This unconventional design allows legacy privilege names to be treated as equivalent to new privilege names without requiring runtime privilege translation in the authorization engine. However, this means:

      • The bit fields do not uniquely identify an enum value
      • Converting from bits to enum name is ambiguous
      • Both CREATE_MODEL and REGISTER_MODEL are functionally identical at the bit level
    • CREATE_MODEL_VERSION

      @Deprecated public static final Privilege.Name CREATE_MODEL_VERSION
      Deprecated.
      The privilege to create a model version. This is deprecated. Please use LINK_MODEL_VERSION.

      Note: This enum shares the same bit value (1L << 19) as LINK_MODEL_VERSION for backward compatibility. This unconventional design allows legacy privilege names to be treated as equivalent to new privilege names without requiring runtime privilege translation in the authorization engine. However, this means:

      • The bit fields do not uniquely identify an enum value
      • Converting from bits to enum name is ambiguous
      • Both CREATE_MODEL_VERSION and LINK_MODEL_VERSION are functionally identical at the bit level
    • USE_MODEL

      public static final Privilege.Name USE_MODEL
      The privilege to view the metadata of the model and download all the model versions
    • CREATE_TAG

      public static final Privilege.Name CREATE_TAG
      The privilege to create a tag
    • APPLY_TAG

      public static final Privilege.Name APPLY_TAG
      The privilege to apply a tag
    • CREATE_POLICY

      public static final Privilege.Name CREATE_POLICY
      The privilege to create a policy
    • APPLY_POLICY

      public static final Privilege.Name APPLY_POLICY
      The privilege to apply a policy
    • REGISTER_JOB_TEMPLATE

      public static final Privilege.Name REGISTER_JOB_TEMPLATE
      The privilege to register a job template
    • USE_JOB_TEMPLATE

      public static final Privilege.Name USE_JOB_TEMPLATE
      The privilege to use a job template
    • RUN_JOB

      public static final Privilege.Name RUN_JOB
      The privilege to run a job
  • Method Details

    • values

      public static Privilege.Name[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Privilege.Name valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLowBits

      public long getLowBits()
      Return the low bits of Name
      Returns:
      The low bits of Name
    • getHighBits

      public long getHighBits()
      Return the high bits of Name
      Returns:
      The high bits of Name