Enum TableAccessControlRule.TablePrivilege
- java.lang.Object
-
- java.lang.Enum<TableAccessControlRule.TablePrivilege>
-
- io.prestosql.plugin.base.security.TableAccessControlRule.TablePrivilege
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TableAccessControlRule.TablePrivilege>
- Enclosing class:
- TableAccessControlRule
public static enum TableAccessControlRule.TablePrivilege extends java.lang.Enum<TableAccessControlRule.TablePrivilege>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETEGRANT_SELECTINSERTOWNERSHIPSELECT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TableAccessControlRule.TablePrivilegevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TableAccessControlRule.TablePrivilege[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELECT
public static final TableAccessControlRule.TablePrivilege SELECT
-
INSERT
public static final TableAccessControlRule.TablePrivilege INSERT
-
DELETE
public static final TableAccessControlRule.TablePrivilege DELETE
-
OWNERSHIP
public static final TableAccessControlRule.TablePrivilege OWNERSHIP
-
GRANT_SELECT
public static final TableAccessControlRule.TablePrivilege GRANT_SELECT
-
-
Method Detail
-
values
public static TableAccessControlRule.TablePrivilege[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TableAccessControlRule.TablePrivilege c : TableAccessControlRule.TablePrivilege.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TableAccessControlRule.TablePrivilege valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-