@Deprecated public class

SchemePermissions

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

This class is deprecated.
Use PermissionManager.

Class Overview

This class gets a list of all the permissions that can be part of a permission scheme. We want those permissions to be explicitly ordered as that influences the UI. Hence the manual initialization of specific maps.

TODO: delete this class (see SOFT-80)

Summary

Public Constructors
SchemePermissions()
Public Methods
Map<IntegerPermission> getAttachmentsPermissions()
Map<IntegerPermission> getCommentsPermissions()
Map<IntegerPermission> getIssuePermissions()
String getPermissionDescription(int id)
Gets the description for the permission
String getPermissionName(Integer id)
Get the name of the permission
Map<IntegerPermission> getProjectPermissions()
Map<IntegerPermission> getSchemePermissions()
Get a map of the permissions that can be part of a permission scheme.
Map<IntegerPermission> getTimeTrackingPermissions()
Map<IntegerPermission> getVotersAndWatchersPermissions()
boolean schemePermissionExists(Integer id)
Checks to see if the permission exists
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SchemePermissions ()

Public Methods

public Map<IntegerPermission> getAttachmentsPermissions ()

Returns
  • Map of attachment related Permissions keyed by their ID

public Map<IntegerPermission> getCommentsPermissions ()

Returns
  • Map of comment related Permissions keyed by their ID

public Map<IntegerPermission> getIssuePermissions ()

Returns
  • Map of issue related Permissions keyed by their ID

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

public String getPermissionName (Integer id)

Get the name of the permission

Parameters
id The permission Id
Returns
  • The name of the permission

public Map<IntegerPermission> getProjectPermissions ()

Returns
  • Map of project related Permissions keyed by their ID

public Map<IntegerPermission> 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

public Map<IntegerPermission> getTimeTrackingPermissions ()

Returns
  • Map of time tracking related Permissions keyed by their ID

public Map<IntegerPermission> getVotersAndWatchersPermissions ()

Returns
  • Map of voters/watchers related Permissions keyed by their ID

public boolean schemePermissionExists (Integer id)

Checks to see if the permission exists

Parameters
id The permission Id
Returns
  • True / False