@ExperimentalApi public final class

GlobalPermissionType

extends Object
java.lang.Object
   ↳ com.atlassian.jira.permission.GlobalPermissionType

@ExperimentalApi

This class is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Represents a global permission in JIRA.

Summary

Constants
String ADMINISTER This constant is deprecated. Use ADMINISTER instead. This was never public API. Since v6.2.5.
String BULK_CHANGE This constant is deprecated. Use BULK_CHANGE instead. This was never public API. Since v6.2.5.
String CREATE_SHARED_OBJECTS This constant is deprecated. Use CREATE_SHARED_OBJECTS instead. This was never public API. Since v6.2.5.
String MANAGE_GROUP_FILTER_SUBSCRIPTIONS This constant is deprecated. Use MANAGE_GROUP_FILTER_SUBSCRIPTIONS instead. This was never public API. Since v6.2.5.
String SYSTEM_ADMIN This constant is deprecated. Use SYSTEM_ADMIN instead. This was never public API. Since v6.2.5.
String USE This constant is deprecated. Use USE instead. This was never public API. Since v6.2.5.
String USER_PICKER This constant is deprecated. Use USER_PICKER instead. This was never public API. Since v6.2.5.
Fields
public static BiMap<IntegerString> GLOBAL_PERMISSION_ID_TRANSLATION This field is deprecated. Use GLOBAL_PERMISSION_ID_TRANSLATION instead. This was never public API. Since v6.2.5.
Public Constructors
@Internal GlobalPermissionType(String key, String nameI18nKey, String descriptionI18nKey, boolean anonymousAllowed)
@Internal GlobalPermissionType(Permissions.Permission permission, boolean anonymousAllowed)
Public Methods
String getDescriptionI18nKey()
GlobalPermissionKey getGlobalPermissionKey()
String getKey()
String getNameI18nKey()
@Internal static Set<String> getUsePermissions()
This method is deprecated. USE permissions will be changing significantly in JIRA 7.0 . If you are using this method, then you will need to watch out for announcements in 7.0 Developer upgrade guide. Since v6.2.5
boolean isAnonymousAllowed()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ADMINISTER

This constant is deprecated.
Use ADMINISTER instead. This was never public API. Since v6.2.5.

Constant Value: "ADMINISTER"

public static final String BULK_CHANGE

This constant is deprecated.
Use BULK_CHANGE instead. This was never public API. Since v6.2.5.

Constant Value: "BULK_CHANGE"

public static final String CREATE_SHARED_OBJECTS

This constant is deprecated.
Use CREATE_SHARED_OBJECTS instead. This was never public API. Since v6.2.5.

Constant Value: "CREATE_SHARED_OBJECTS"

public static final String MANAGE_GROUP_FILTER_SUBSCRIPTIONS

This constant is deprecated.
Use MANAGE_GROUP_FILTER_SUBSCRIPTIONS instead. This was never public API. Since v6.2.5.

Constant Value: "MANAGE_GROUP_FILTER_SUBSCRIPTIONS"

public static final String SYSTEM_ADMIN

This constant is deprecated.
Use SYSTEM_ADMIN instead. This was never public API. Since v6.2.5.

Constant Value: "SYSTEM_ADMIN"

public static final String USE

This constant is deprecated.
Use USE instead. This was never public API. Since v6.2.5.

Constant Value: "USE"

public static final String USER_PICKER

This constant is deprecated.
Use USER_PICKER instead. This was never public API. Since v6.2.5.

Constant Value: "USER_PICKER"

Fields

public static BiMap<IntegerString> GLOBAL_PERMISSION_ID_TRANSLATION

This field is deprecated.
Use GLOBAL_PERMISSION_ID_TRANSLATION instead. This was never public API. Since v6.2.5.

This map is used to map the old Integer/Long based ID to a String based key. Once all existing code has been refactored to use the keys directly, this method won't be needed any more.

Public Constructors

@Internal public GlobalPermissionType (String key, String nameI18nKey, String descriptionI18nKey, boolean anonymousAllowed)

@Internal

This constructor is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

@Internal public GlobalPermissionType (Permissions.Permission permission, boolean anonymousAllowed)

@Internal

This constructor is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Public Methods

public String getDescriptionI18nKey ()

public GlobalPermissionKey getGlobalPermissionKey ()

public String getKey ()

public String getNameI18nKey ()

@Internal public static Set<String> getUsePermissions ()

@Internal

This method is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

This method is deprecated.
USE permissions will be changing significantly in JIRA 7.0 . If you are using this method, then you will need to watch out for announcements in 7.0 Developer upgrade guide. Since v6.2.5

Returns a Set of all the permissions that grant a user the permission to log into JIRA (i.e. 'Use' JIRA). This is a port of getUsePermissions()

Returns
  • A set containing all the permissions or an empty set otherwise

public boolean isAnonymousAllowed ()