public enum UserPermission extends Enum<UserPermission>
| Modifier and Type | Method and Description |
|---|---|
static Set<UserPermission> |
allPermissions()
Gets all the permissions.
|
static UserPermission |
fromId(int id)
Gets a permission by its id.
|
int |
getId() |
static UserPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserPermission ADMIN
public static final UserPermission SYS_ADMIN
public static UserPermission[] values()
for (UserPermission c : UserPermission.values()) System.out.println(c);
public static UserPermission 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 int getId()
public static Set<UserPermission> allPermissions()
@Nullable public static UserPermission fromId(int id)
id - id of the permissionnull if no permission matches the idCopyright © 2019 Atlassian. All rights reserved.