Enum Class Privilege.Name
- All Implemented Interfaces:
Serializable,Comparable<Privilege.Name>,Constable
- Enclosing interface:
- Privilege
The name of this privilege.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe privilege to apply a policyThe privilege to apply a tagThe privilege to consume from a topic.The privilege to create a catalog.The privilege to create a fileset.Deprecated.Deprecated.The privilege to create a policyThe privilege to create a roleThe privilege to create a schema.The privilege to create a table.The privilege to create a tagThe privilege to create a topic.The privilege to link a model versionThe privilege to grant or revoke a role for the user or the group.The privilege to manage groupsThe privilege to manage usersThe privilege to write data to a table or modify the table schema.The privilege to produce to a topic.The privilege to read a fileset.The privilege to register a job templateThe privilege to register a modelThe privilege to run a jobThe privilege to select data from a table.The privilege to use a catalog.The privilege to use a job templateThe privilege to view the metadata of the model and download all the model versionsthe privilege to use a schema.The privilege to write a fileset. -
Method Summary
Modifier and TypeMethodDescriptionlongReturn the high bits of NamelongReturn the low bits of Namestatic Privilege.NameReturns the enum constant of this class with the specified name.static Privilege.Name[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE_CATALOG
The privilege to create a catalog. -
USE_CATALOG
The privilege to use a catalog. -
CREATE_SCHEMA
The privilege to create a schema. -
USE_SCHEMA
the privilege to use a schema. -
CREATE_TABLE
The privilege to create a table. -
MODIFY_TABLE
The privilege to write data to a table or modify the table schema. -
SELECT_TABLE
The privilege to select data from a table. -
CREATE_FILESET
The privilege to create a fileset. -
WRITE_FILESET
The privilege to write a fileset. -
READ_FILESET
The privilege to read a fileset. -
CREATE_TOPIC
The privilege to create a topic. -
PRODUCE_TOPIC
The privilege to produce to a topic. -
CONSUME_TOPIC
The privilege to consume from a topic. -
MANAGE_USERS
The privilege to manage users -
MANAGE_GROUPS
The privilege to manage groups -
CREATE_ROLE
The privilege to create a role -
MANAGE_GRANTS
The privilege to grant or revoke a role for the user or the group. -
REGISTER_MODEL
The privilege to register a model -
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
-
LINK_MODEL_VERSION
The privilege to link a model version -
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
The privilege to view the metadata of the model and download all the model versions -
CREATE_TAG
The privilege to create a tag -
APPLY_TAG
The privilege to apply a tag -
CREATE_POLICY
The privilege to create a policy -
APPLY_POLICY
The privilege to apply a policy -
REGISTER_JOB_TEMPLATE
The privilege to register a job template -
USE_JOB_TEMPLATE
The privilege to use a job template -
RUN_JOB
The privilege to run a job
-
-
Method Details
-
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
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 nameNullPointerException- 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
-