com.atlassian.jira.permission
Class SchemePermissions

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

getProjectPermissions

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

getIssuePermissions

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

getVotersAndWatchersPermissions

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

getCommentsPermissions

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

getAttachmentsPermissions

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

getTimeTrackingPermissions

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

getSchemePermissions

public java.util.Map<java.lang.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(java.lang.Integer id)
Checks to see if the permission exists

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

getPermissionName

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.