com.atlassian.jira.permission
Class SchemePermissions

java.lang.Object
  extended bycom.atlassian.jira.permission.SchemePermissions

public class SchemePermissions
extends java.lang.Object

This class gets a list of all the permissions that can be part of a permission scheme


Constructor Summary
SchemePermissions()
           
 
Method Summary
static java.lang.String getPermissionDescription(int id)
          Gets the description for the permission
static java.lang.String getPermissionName(java.lang.Integer id)
          Get the name of the permission
static java.util.Map getSchemePermissions()
          Get a map of the permissions that can be part of a permission scheme.
static boolean schemePermissionExists(java.lang.Integer id)
          Checks to see if the permission exists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemePermissions

public SchemePermissions()
Method Detail

getSchemePermissions

public static java.util.Map getSchemePermissions()
Get a map of the permissions that can be part of a permission scheme. This map contains the permission id and the permission name

Returns:
Map containing the permissions

schemePermissionExists

public static boolean schemePermissionExists(java.lang.Integer id)
Checks to see if the permission exists

Parameters:
id - The permission Id
Returns:
True / False

getPermissionName

public static java.lang.String getPermissionName(java.lang.Integer id)
Get the name of the permission

Parameters:
id - The permission Id
Returns:
The name of the permission

getPermissionDescription

public static java.lang.String getPermissionDescription(int id)
Gets the description for the permission

Parameters:
id - Id of the permission that you want to get the description for
Returns:
String containing the description