Package io.prestosql.server.security
Enum ResourceSecurity.AccessType
- java.lang.Object
-
- java.lang.Enum<ResourceSecurity.AccessType>
-
- io.prestosql.server.security.ResourceSecurity.AccessType
-
- All Implemented Interfaces:
Serializable
,Comparable<ResourceSecurity.AccessType>
- Enclosing class:
- ResourceSecurity
public static enum ResourceSecurity.AccessType extends Enum<ResourceSecurity.AccessType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATED_USER
INTERNAL_ONLY
MANAGEMENT_READ
MANAGEMENT_WRITE
PUBLIC
WEB_UI
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceSecurity.AccessType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResourceSecurity.AccessType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final ResourceSecurity.AccessType PUBLIC
-
WEB_UI
public static final ResourceSecurity.AccessType WEB_UI
-
AUTHENTICATED_USER
public static final ResourceSecurity.AccessType AUTHENTICATED_USER
-
MANAGEMENT_READ
public static final ResourceSecurity.AccessType MANAGEMENT_READ
-
MANAGEMENT_WRITE
public static final ResourceSecurity.AccessType MANAGEMENT_WRITE
-
INTERNAL_ONLY
public static final ResourceSecurity.AccessType INTERNAL_ONLY
-
-
Method Detail
-
values
public static ResourceSecurity.AccessType[] 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 (ResourceSecurity.AccessType c : ResourceSecurity.AccessType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceSecurity.AccessType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-