public static enum Policy.BuiltinCapabilities extends Enum<Policy.BuiltinCapabilities> implements Policy.Capability
Enum Constant and Description |
---|
CREATE
Allows creating data at the given path.
|
DELETE
Allows deleting the data at the given path.
|
DENY
Disallows access.
|
LIST
Allows listing values at the given path.
|
READ
Allows reading the data at the given path.
|
SUDO
Allows access to paths that are root-protected.
|
UPDATE
Allows change the data at the given path.
|
WRITE
|
Modifier and Type | Method and Description |
---|---|
static Policy.Capability |
find(String value)
Find a
Policy.Capability by its name. |
static Policy.BuiltinCapabilities |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Policy.BuiltinCapabilities[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final Policy.BuiltinCapabilities CREATE
public static final Policy.BuiltinCapabilities READ
public static final Policy.BuiltinCapabilities UPDATE
public static final Policy.BuiltinCapabilities WRITE
public static final Policy.BuiltinCapabilities DELETE
public static final Policy.BuiltinCapabilities LIST
public static final Policy.BuiltinCapabilities SUDO
public static final Policy.BuiltinCapabilities DENY
SUDO
.public static Policy.BuiltinCapabilities[] values()
for (Policy.BuiltinCapabilities c : Policy.BuiltinCapabilities.values()) System.out.println(c);
public static Policy.BuiltinCapabilities 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 null@Nullable public static Policy.Capability find(String value)
Policy.Capability
by its name. The name is compared case-insensitive.value
- must not be null.Policy.Capability
or null, if not found.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.