@PublicApi public enum JiraPermissionHolderType extends Enum<JiraPermissionHolderType> implements PermissionHolderType
Enum Constant and Description |
---|
ANYONE
Anyone, including anonymous users.
|
APPLICATION_ROLE
Application Role.
|
ASSIGNEE
Issue assignee.
|
ASSIGNEE_WITH_ASSIGNABLE_PERMISSION
This type can be used only with
ProjectPermissions.BROWSE_PROJECTS permission to
show only projects where the user has the assignable permission and issues within that where they are the assignee. |
GROUP
Group.
|
GROUP_CUSTOM_FIELD
Group selected in the group custom field specified by the parameter.
|
PROJECT_LEAD
Project lead.
|
PROJECT_ROLE
Project role.
|
REPORTER
Issue reporter.
|
REPORTER_WITH_CREATE_PERMISSION
This type can be used only with
ProjectPermissions.BROWSE_PROJECTS permission to
show only projects where the user has create permission and issues within that where they are the reporter. |
USER
Specific user.
|
USER_CUSTOM_FIELD
User selected in the user custom field specified by the parameter.
|
Modifier and Type | Method and Description |
---|---|
static io.atlassian.fugue.Option<JiraPermissionHolderType> |
fromKey(String key,
String parameter)
Given a type key and an optional parameter tries to resolve the type.
|
String |
getKey()
Key as stored in the database.
|
boolean |
requiresParameter()
Whether the type requires additional argument (e.g.
|
static JiraPermissionHolderType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JiraPermissionHolderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JiraPermissionHolderType GROUP
public static final JiraPermissionHolderType ANYONE
public static final JiraPermissionHolderType USER
public static final JiraPermissionHolderType PROJECT_ROLE
public static final JiraPermissionHolderType REPORTER
public static final JiraPermissionHolderType PROJECT_LEAD
public static final JiraPermissionHolderType ASSIGNEE
public static final JiraPermissionHolderType USER_CUSTOM_FIELD
public static final JiraPermissionHolderType GROUP_CUSTOM_FIELD
public static final JiraPermissionHolderType REPORTER_WITH_CREATE_PERMISSION
ProjectPermissions.BROWSE_PROJECTS
permission to
show only projects where the user has create permission and issues within that where they are the reporter.
Note: This holder type is optional and it's not normally available.
public static final JiraPermissionHolderType ASSIGNEE_WITH_ASSIGNABLE_PERMISSION
ProjectPermissions.BROWSE_PROJECTS
permission to
show only projects where the user has the assignable permission and issues within that where they are the assignee.
Note: This holder type is optional and it's not normally available.
public static final JiraPermissionHolderType APPLICATION_ROLE
public static JiraPermissionHolderType[] values()
for (JiraPermissionHolderType c : JiraPermissionHolderType.values()) System.out.println(c);
public static JiraPermissionHolderType 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 getKey()
getKey
in interface PermissionHolderType
public boolean requiresParameter()
requiresParameter
in interface PermissionHolderType
public static io.atlassian.fugue.Option<JiraPermissionHolderType> fromKey(String key, @Nullable String parameter)
key
- type keyparameter
- parameter. The value doesn't really matter, rather whether it's provided or not.none
otherwiseCopyright © 2002-2024 Atlassian. All Rights Reserved.