Enum Class Action
- All Implemented Interfaces:
Serializable,Comparable<Action>,Constable
Privilege action.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanSelf action does not require to be assigned explicitly.booleanSingleton privileges are applicable to only one object, like CLUSTER.static ActionReturns the enum constant of this class with the specified name.static Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ_CLUSTER_CONFIG
-
WRITE_CLUSTER_CONFIG
-
READ_NODE_CONFIG
-
WRITE_NODE_CONFIG
-
DEPLOY_UNIT
-
UNDEPLOY_UNIT
-
READ_UNIT
-
EXEC_JOB
-
GET_JOB_STATE
-
KILL_JOB
-
CHANGE_JOB_PRIORITY
-
KILL_TRANSACTION
-
GET_TRANSACTION_STATE
-
KILL_QUERY
-
GET_SQL_QUERY_STATE
-
ENABLE_METRICS
-
DISABLE_METRICS
-
LIST_METRICS
-
READ_METRICS
-
EDIT_USER
-
READ_USER
-
CREATE_USER
-
DROP_USER
-
CREATE_ROLE
-
READ_ROLE
-
DROP_ROLE
-
GRANT_ROLE
-
REVOKE_ROLE
-
GRANT_PRIVILEGE
-
REVOKE_PRIVILEGE
-
CREATE_DISTRIBUTION_ZONE
-
ALTER_DISTRIBUTION_ZONE
-
DROP_DISTRIBUTION_ZONE
-
RESET_DISTRIBUTION_STATE
-
RESTART_PARTITIONS
-
RESET_PARTITIONS
-
CREATE_SCHEMA
-
DROP_SCHEMA
-
READ_SCHEMA
-
CREATE_TABLE
-
SELECT_FROM_TABLE
-
ALTER_TABLE
-
DROP_TABLE
-
INSERT_INTO_TABLE
-
UPDATE_TABLE
-
DELETE_FROM_TABLE
-
CREATE_VIEW
-
SELECT_FROM_VIEW
-
ALTER_VIEW
-
DROP_VIEW
-
CREATE_INDEX
-
DROP_INDEX
-
USE_INDEX
-
CREATE_SNAPSHOT
-
RESTORE_SNAPSHOT
-
DELETE_SNAPSHOT
-
CHECK_SNAPSHOT
-
RESTORE_PITR
-
CHECK_PITR
-
CREATE_SEQUENCE
-
ALTER_SEQUENCE
-
USE_SEQUENCE
-
DROP_SEQUENCE
-
REVOKE_TOKEN
-
ROLLING_UPGRADE
-
MANAGE_CDC
-
-
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
-
applicableObjectType
-
singleton
public boolean singleton()Singleton privileges are applicable to only one object, like CLUSTER. For example, CREATE_USER privilege is singleton, because it is a cluster-wide privilege. but CREATE_TABLE is not, because it is applicable to a subset of tables. So, there can be more than one CREATE_TABLE privilege. -
allowSelfAction
public boolean allowSelfAction()Self action does not require to be assigned explicitly. It means that actions that are applied for the user that is running some operation (read user) will be allowed by default. In other words, user can read itself.
-