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
 Map<Integer,Permission> getAttachmentsPermissions()
           
 Map<Integer,Permission> getCommentsPermissions()
           
 Map<Integer,Permission> getIssuePermissions()
           
 String getPermissionDescription(int id)
          Gets the description for the permission
 String getPermissionName(Integer id)
          Get the name of the permission
 Map<Integer,Permission> getProjectPermissions()
           
 Map<Integer,Permission> getSchemePermissions()
          Get a map of the permissions that can be part of a permission scheme.
 Map<Integer,Permission> getTimeTrackingPermissions()
           
 Map<Integer,Permission> getVotersAndWatchersPermissions()
           
 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

getProjectPermissions

public Map<Integer,Permission> getProjectPermissions()
Returns:
Map of project related Permissions keyed by their ID

getIssuePermissions

public Map<Integer,Permission> getIssuePermissions()
Returns:
Map of issue related Permissions keyed by their ID

getVotersAndWatchersPermissions

public Map<Integer,Permission> getVotersAndWatchersPermissions()
Returns:
Map of voters/watchers related Permissions keyed by their ID

getCommentsPermissions

public Map<Integer,Permission> getCommentsPermissions()
Returns:
Map of comment related Permissions keyed by their ID

getAttachmentsPermissions

public Map<Integer,Permission> getAttachmentsPermissions()
Returns:
Map of attachment related Permissions keyed by their ID

getTimeTrackingPermissions

public Map<Integer,Permission> getTimeTrackingPermissions()
Returns:
Map of time tracking related Permissions keyed by their ID

getSchemePermissions

public Map<Integer,Permission> 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-2012 Atlassian. All Rights Reserved.