public enum PermissionOption extends Enum<PermissionOption>
Enum Constant and Description |
---|
READ_ONLY |
READ_ONLY_LOCAL_GROUPS |
READ_WRITE |
Modifier and Type | Method and Description |
---|---|
static PermissionOption |
fromAllowedOperations(Set<OperationType> allowedOperations) |
Set<OperationType> |
getAllowedOperations() |
static PermissionOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissionOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionOption READ_ONLY
public static final PermissionOption READ_ONLY_LOCAL_GROUPS
public static final PermissionOption READ_WRITE
public static PermissionOption[] values()
for (PermissionOption c : PermissionOption.values()) System.out.println(c);
public static PermissionOption 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 Set<OperationType> getAllowedOperations()
public static PermissionOption fromAllowedOperations(Set<OperationType> allowedOperations)
Copyright © 2021 Atlassian. All rights reserved.