com.atlassian.jira.permission
Class SchemePermissions

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

public class SchemePermissions
extends Object

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


Constructor Summary
SchemePermissions()
           
 
Method Summary
 String getPermissionDescription(int id)
          Gets the description for the permission
 String getPermissionName(Integer id)
          Get the name of the permission
 Map getSchemePermissions()
          Get a map of the permissions that can be part of a permission scheme.
 boolean schemePermissionExists(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 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 boolean schemePermissionExists(Integer id)
Checks to see if the permission exists

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

getPermissionName

public String getPermissionName(Integer id)
Get the name of the permission

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

getPermissionDescription

public 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


Copyright © 2002-2007 Atlassian. All Rights Reserved.