Package com.atlassian.jira.permission
Class GlobalPermissionType
java.lang.Object
com.atlassian.jira.permission.GlobalPermissionType
Represents a global permission in JIRA.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.UseGlobalPermissionKey.BULK_CHANGEinstead.static final StringDeprecated.UseGlobalPermissionKey.CREATE_SHARED_OBJECTSinstead.Deprecated.UseGlobalPermissionKey.GLOBAL_PERMISSION_ID_TRANSLATIONinstead.static final StringDeprecated.static final StringDeprecated.UseGlobalPermissionKey.SYSTEM_ADMINinstead.static final StringDeprecated.UseGlobalPermissionKey.USEinstead.static final StringDeprecated.UseGlobalPermissionKey.USER_PICKERinstead. -
Constructor Summary
ConstructorsConstructorDescriptionGlobalPermissionType(Permissions.Permission permission, boolean anonymousAllowed) GlobalPermissionType(String key, String nameI18nKey, String descriptionI18nKey, boolean anonymousAllowed) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Deprecated.USE permissions will be changing significantly in JIRA 7.0 .boolean
-
Field Details
-
ADMINISTER
Deprecated.UseGlobalPermissionKey.ADMINISTERinstead. This was never public API. Since v6.2.5.- See Also:
-
SYSTEM_ADMIN
Deprecated.UseGlobalPermissionKey.SYSTEM_ADMINinstead. This was never public API. Since v6.2.5.- See Also:
-
USE
Deprecated.UseGlobalPermissionKey.USEinstead. This was never public API. Since v6.2.5.- See Also:
-
USER_PICKER
Deprecated.UseGlobalPermissionKey.USER_PICKERinstead. This was never public API. Since v6.2.5.- See Also:
-
CREATE_SHARED_OBJECTS
Deprecated.UseGlobalPermissionKey.CREATE_SHARED_OBJECTSinstead. This was never public API. Since v6.2.5.- See Also:
-
MANAGE_GROUP_FILTER_SUBSCRIPTIONS
Deprecated.UseGlobalPermissionKey.MANAGE_GROUP_FILTER_SUBSCRIPTIONSinstead. This was never public API. Since v6.2.5.- See Also:
-
BULK_CHANGE
Deprecated.UseGlobalPermissionKey.BULK_CHANGEinstead. This was never public API. Since v6.2.5.- See Also:
-
GLOBAL_PERMISSION_ID_TRANSLATION
@Internal public static com.google.common.collect.BiMap<Integer,String> GLOBAL_PERMISSION_ID_TRANSLATIONDeprecated.UseGlobalPermissionKey.GLOBAL_PERMISSION_ID_TRANSLATIONinstead. 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.
-
-
Constructor Details
-
GlobalPermissionType
-
GlobalPermissionType
-
-
Method Details
-
getUsePermissions
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.5Returns a Set of all the permissions that grant a user the permission to log into JIRA (i.e. 'Use' JIRA). This is a port ofPermissions.getUsePermissions()- Returns:
- A set containing all the permissions or an empty set otherwise
-
getKey
-
getGlobalPermissionKey
-
getNameI18nKey
-
getDescriptionI18nKey
-
isAnonymousAllowed
public boolean isAnonymousAllowed()
-
GlobalPermissionKey.ADMINISTERinstead.