com.atlassian.jira.security
Class Permissions

java.lang.Object
  extended bycom.atlassian.jira.security.Permissions

public final class Permissions
extends java.lang.Object


Field Summary
static int ADMINISTER
          Permission to administer JIRA
static int ASSIGN_ISSUE
          Permission to assign issues to other users.
static int ASSIGNABLE_USER
          Permission to be assigned issues.
static int BROWSE
          Permission to browse projects and issues.
static int CLOSE_ISSUE
          Permission to close issues.
static int COMMENT_ISSUE
          Permission to comment on issues
static int CREATE_ATTACHMENT
          Permission to create attachments.
static int CREATE_ISSUE
          Permission to create issues.
static int CREATE_SHARED_FILTER
          Permission to created shared filters
static int DELETE_ISSUE
          Permission to delete issues and comments.
static int EDIT_ISSUE
          Permission to edit issues.
static int LINK_ISSUE
          Permission to link issues together and create linked issues.
static int MANAGE_GROUP_FILTER_SUBSCRIPTIONS
          Permission to manage group filter subscriptions
static int MAX_PERMISSION
           
static int MOVE_ISSUE
          Permission to move issues between projects
static int PROJECT_ADMIN
          Permission to administer a Project
static int RESOLVE_ISSUE
          Permission to resolve issues.
static int SCHEDULE_ISSUE
           
static int SET_ISSUE_SECURITY
           
static int USE
          Permission to use JIRA
static int USER_PICKER
           
static int VIEW_VERSION_CONTOL
           
static int WORK_ISSUE
          Permission to log work done on an issue.
 
Constructor Summary
Permissions()
           
 
Method Summary
static java.lang.String getDescription(int permType)
          Get the description of a permission.
static int getType(java.lang.String permName)
          Given a string approximation, try to guess the type If permName is null then -1 is returned If the permName is not recongnised then -1 is returned
static boolean isGlobalPermission(int permType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMINISTER

public static final int ADMINISTER
Permission to administer JIRA

See Also:
Constant Field Values

USE

public static final int USE
Permission to use JIRA

See Also:
Constant Field Values

PROJECT_ADMIN

public static final int PROJECT_ADMIN
Permission to administer a Project

See Also:
Constant Field Values

BROWSE

public static final int BROWSE
Permission to browse projects and issues. This includes filtering using the Issue Navigator.

See Also:
Constant Field Values

CREATE_ISSUE

public static final int CREATE_ISSUE
Permission to create issues.

See Also:
Constant Field Values

EDIT_ISSUE

public static final int EDIT_ISSUE
Permission to edit issues. This includes managing attachments and adding them.

See Also:
Constant Field Values

ASSIGN_ISSUE

public static final int ASSIGN_ISSUE
Permission to assign issues to other users.

See Also:
Constant Field Values

RESOLVE_ISSUE

public static final int RESOLVE_ISSUE
Permission to resolve issues.

See Also:
Constant Field Values

COMMENT_ISSUE

public static final int COMMENT_ISSUE
Permission to comment on issues

See Also:
Constant Field Values

DELETE_ISSUE

public static final int DELETE_ISSUE
Permission to delete issues and comments.

See Also:
Constant Field Values

ASSIGNABLE_USER

public static final int ASSIGNABLE_USER
Permission to be assigned issues.

See Also:
Constant Field Values

CLOSE_ISSUE

public static final int CLOSE_ISSUE
Permission to close issues.

See Also:
Constant Field Values

CREATE_ATTACHMENT

public static final int CREATE_ATTACHMENT
Permission to create attachments.

See Also:
Constant Field Values

WORK_ISSUE

public static final int WORK_ISSUE
Permission to log work done on an issue.

See Also:
Constant Field Values

LINK_ISSUE

public static final int LINK_ISSUE
Permission to link issues together and create linked issues.

See Also:
Constant Field Values

CREATE_SHARED_FILTER

public static final int CREATE_SHARED_FILTER
Permission to created shared filters

See Also:
Constant Field Values

MANAGE_GROUP_FILTER_SUBSCRIPTIONS

public static final int MANAGE_GROUP_FILTER_SUBSCRIPTIONS
Permission to manage group filter subscriptions

See Also:
Constant Field Values

MOVE_ISSUE

public static final int MOVE_ISSUE
Permission to move issues between projects

See Also:
Constant Field Values

SET_ISSUE_SECURITY

public static final int SET_ISSUE_SECURITY
See Also:
Constant Field Values

USER_PICKER

public static final int USER_PICKER
See Also:
Constant Field Values

SCHEDULE_ISSUE

public static final int SCHEDULE_ISSUE
See Also:
Constant Field Values

VIEW_VERSION_CONTOL

public static final int VIEW_VERSION_CONTOL
See Also:
Constant Field Values

MAX_PERMISSION

public static final int MAX_PERMISSION
See Also:
Constant Field Values
Constructor Detail

Permissions

public Permissions()
Method Detail

getType

public static int getType(java.lang.String permName)
Given a string approximation, try to guess the type If permName is null then -1 is returned If the permName is not recongnised then -1 is returned


getDescription

public static java.lang.String getDescription(int permType)
Get the description of a permission.


isGlobalPermission

public static boolean isGlobalPermission(int permType)