public final class

GlobalPermissionKey

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

Class Overview

An identifier for a Global Permission. You can use the pre-defined constants for the well-known system global permissions eg:

GlobalPermissionKey.ADMINISTER
or create a new GlobalPermissionKey with the static initializer eg:
GlobalPermissionKey.of("foo")

Summary

Fields
public static final GlobalPermissionKey ADMINISTER
public static final GlobalPermissionKey BULK_CHANGE
public static final GlobalPermissionKey CREATE_SHARED_OBJECTS
public static final BiMap<IntegerGlobalPermissionKey> GLOBAL_PERMISSION_ID_TRANSLATION This map is used to map the old Integer/Long based ID to a String based key.
public static final GlobalPermissionKey MANAGE_GROUP_FILTER_SUBSCRIPTIONS
public static final GlobalPermissionKey SYSTEM_ADMIN
public static final GlobalPermissionKey USE
public static final GlobalPermissionKey USER_PICKER
Public Methods
boolean equals(Object o)
@Nonnull String getKey()
int hashCode()
@Nonnull static GlobalPermissionKey of(String key)
Static initializer to construct a GlobalPermissionKey from a given String key.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final GlobalPermissionKey ADMINISTER

public static final GlobalPermissionKey BULK_CHANGE

public static final GlobalPermissionKey CREATE_SHARED_OBJECTS

public static final BiMap<IntegerGlobalPermissionKey> GLOBAL_PERMISSION_ID_TRANSLATION

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 static final GlobalPermissionKey MANAGE_GROUP_FILTER_SUBSCRIPTIONS

public static final GlobalPermissionKey SYSTEM_ADMIN

public static final GlobalPermissionKey USE

public static final GlobalPermissionKey USER_PICKER

Public Methods

public boolean equals (Object o)

@Nonnull public String getKey ()

public int hashCode ()

@Nonnull public static GlobalPermissionKey of (String key)

Static initializer to construct a GlobalPermissionKey from a given String key.

public String toString ()