public enum Vote extends Enum<Vote>
Votes are used in the gadget system to determine whether a user is allowed to perform certain actions, such
as seeing a gadget in the gadget browser or being allowed to render a gadget on their dashboard.| Enum Constant and Description |
|---|
ALLOW
The user is allowed to perform the requested action.
|
DENY
The user is forbidden to perform the requested action.
|
PASS
The implementation has no opinion on whether the user may perform the requested action.
|
| Modifier and Type | Method and Description |
|---|---|
static Vote |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Vote[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Vote ALLOW
public static final Vote DENY
public static final Vote PASS
public static Vote[] values()
for (Vote c : Vote.values()) System.out.println(c);
public static Vote 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 nullCopyright © 2024 Atlassian. All rights reserved.