com.atlassian.jira.permission
Class GlobalPermissionType

java.lang.Object
  extended by com.atlassian.jira.permission.GlobalPermissionType

@ExperimentalApi
public final class GlobalPermissionType
extends Object

Represents a global permission in JIRA.


Field Summary
static String ADMINISTER
          Deprecated. Use GlobalPermissionKey.ADMINISTER instead. This was never public API. Since v6.2.5.
static String BULK_CHANGE
          Deprecated. Use GlobalPermissionKey.BULK_CHANGE instead. This was never public API. Since v6.2.5.
static String CREATE_SHARED_OBJECTS
          Deprecated. Use GlobalPermissionKey.CREATE_SHARED_OBJECTS instead. This was never public API. Since v6.2.5.
static com.google.common.collect.BiMap<Integer,String> GLOBAL_PERMISSION_ID_TRANSLATION
          Deprecated. Use GlobalPermissionKey.GLOBAL_PERMISSION_ID_TRANSLATION instead. This was never public API. Since v6.2.5.
static String MANAGE_GROUP_FILTER_SUBSCRIPTIONS
          Deprecated. Use GlobalPermissionKey.MANAGE_GROUP_FILTER_SUBSCRIPTIONS instead. This was never public API. Since v6.2.5.
static String SYSTEM_ADMIN
          Deprecated. Use GlobalPermissionKey.SYSTEM_ADMIN instead. This was never public API. Since v6.2.5.
static String USE
          Deprecated. Use GlobalPermissionKey.USE instead. This was never public API. Since v6.2.5.
static String USER_PICKER
          Deprecated. Use GlobalPermissionKey.USER_PICKER instead. This was never public API. Since v6.2.5.
 
Constructor Summary
GlobalPermissionType(Permissions.Permission permission, boolean anonymousAllowed)
           
GlobalPermissionType(String key, String nameI18nKey, String descriptionI18nKey, boolean anonymousAllowed)
           
 
Method Summary
 String getDescriptionI18nKey()
           
 GlobalPermissionKey getGlobalPermissionKey()
           
 String getKey()
           
 String getNameI18nKey()
           
static Set<String> 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.5
 boolean isAnonymousAllowed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMINISTER

@Internal
public static final String ADMINISTER
Deprecated. Use GlobalPermissionKey.ADMINISTER instead. This was never public API. Since v6.2.5.
See Also:
Constant Field Values

SYSTEM_ADMIN

@Internal
public static final String SYSTEM_ADMIN
Deprecated. Use GlobalPermissionKey.SYSTEM_ADMIN instead. This was never public API. Since v6.2.5.
See Also:
Constant Field Values

USE

@Internal
public static final String USE
Deprecated. Use GlobalPermissionKey.USE instead. This was never public API. Since v6.2.5.
See Also:
Constant Field Values

USER_PICKER

@Internal
public static final String USER_PICKER
Deprecated. Use GlobalPermissionKey.USER_PICKER instead. This was never public API. Since v6.2.5.
See Also:
Constant Field Values

CREATE_SHARED_OBJECTS

@Internal
public static final String CREATE_SHARED_OBJECTS
Deprecated. Use GlobalPermissionKey.CREATE_SHARED_OBJECTS instead. This was never public API. Since v6.2.5.
See Also:
Constant Field Values

MANAGE_GROUP_FILTER_SUBSCRIPTIONS

@Internal
public static final String MANAGE_GROUP_FILTER_SUBSCRIPTIONS
Deprecated. Use GlobalPermissionKey.MANAGE_GROUP_FILTER_SUBSCRIPTIONS instead. This was never public API. Since v6.2.5.
See Also:
Constant Field Values

BULK_CHANGE

@Internal
public static final String BULK_CHANGE
Deprecated. Use GlobalPermissionKey.BULK_CHANGE instead. This was never public API. Since v6.2.5.
See Also:
Constant Field Values

GLOBAL_PERMISSION_ID_TRANSLATION

@Internal
public static com.google.common.collect.BiMap<Integer,String> GLOBAL_PERMISSION_ID_TRANSLATION
Deprecated. Use GlobalPermissionKey.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.

Constructor Detail

GlobalPermissionType

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

GlobalPermissionType

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

getUsePermissions

@Internal
public static Set<String> 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.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 Permissions.getUsePermissions()

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

getKey

public String getKey()

getGlobalPermissionKey

public GlobalPermissionKey getGlobalPermissionKey()

getNameI18nKey

public String getNameI18nKey()

getDescriptionI18nKey

public String getDescriptionI18nKey()

isAnonymousAllowed

public boolean isAnonymousAllowed()


Copyright © 2002-2014 Atlassian. All Rights Reserved.