public enum Permission extends Enum<Permission> implements Serializable
Java class for Permission. A string value indicating the set of actions that can be performed on a resource as specified in an access policy. The set of permissions include the ability to read a resource (*read*), modify a resource (*write*), and to change the set of access control policies for a resource (*changePermission*). Permission levels are cumulative, in that write permission implicitly grants read access, and changePermission permission implicitly grants write access (and therefore read as well). If a subject is granted multiple permissions, the highest level of access applies.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="Permission">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="read"/>
<enumeration value="write"/>
<enumeration value="changePermission"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CHANGE_PERMISSION |
READ |
WRITE |
| Modifier and Type | Method and Description |
|---|---|
static Permission |
convert(String value) |
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
String |
xmlValue() |
public static final Permission READ
public static final Permission WRITE
public static final Permission CHANGE_PERMISSION
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String xmlValue()
public static Permission convert(String value)
Copyright © 2018. All Rights Reserved.