com.atlassian.jira.permission
Enum Permission

java.lang.Object
  extended by java.lang.Enum<Permission>
      extended by com.atlassian.jira.permission.Permission
All Implemented Interfaces:
Serializable, Comparable<Permission>

public enum Permission
extends Enum<Permission>

Since v6.2. TODO: We want to separate the "Global Permissions" from the "Project-based Permissions". TODO: We want to make Permissions extendable by plugins.


Enum Constant Summary
ADMINISTER
           
ASSIGN_ISSUE
           
ASSIGNABLE_USER
           
ATTACHMENT_DELETE_ALL
           
ATTACHMENT_DELETE_OWN
           
BROWSE
           
BULK_CHANGE
           
CLOSE_ISSUE
           
COMMENT_DELETE_ALL
           
COMMENT_DELETE_OWN
           
COMMENT_EDIT_ALL
           
COMMENT_EDIT_OWN
           
COMMENT_ISSUE
           
CREATE_ATTACHMENT
           
CREATE_ISSUE
           
CREATE_SHARED_OBJECTS
           
DELETE_ISSUE
           
EDIT_ISSUE
           
LINK_ISSUE
           
MANAGE_GROUP_FILTER_SUBSCRIPTIONS
           
MANAGE_WATCHER_LIST
           
MODIFY_REPORTER
           
MOVE_ISSUE
           
PROJECT_ADMIN
           
RESOLVE_ISSUE
           
SCHEDULE_ISSUE
           
SET_ISSUE_SECURITY
           
SYSTEM_ADMIN
           
USE
           
USER_PICKER
           
VIEW_VERSION_CONTROL
           
VIEW_VOTERS_AND_WATCHERS
           
VIEW_WORKFLOW_READONLY
           
WORK_ISSUE
           
WORKLOG_DELETE_ALL
           
WORKLOG_DELETE_OWN
           
WORKLOG_EDIT_ALL
           
WORKLOG_EDIT_OWN
           
 
Method Summary
 String getDescription()
          This method returns the description of the permission in user selected language.
 String getDescriptionKey()
           
 int getId()
           
 String getName()
          This method returns the name of the permission in English (ignoring user locale).
 String getNameKey()
           
static Permission valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Permission[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADMINISTER

public static final Permission ADMINISTER

USE

public static final Permission USE

SYSTEM_ADMIN

public static final Permission SYSTEM_ADMIN

CREATE_SHARED_OBJECTS

public static final Permission CREATE_SHARED_OBJECTS

MANAGE_GROUP_FILTER_SUBSCRIPTIONS

public static final Permission MANAGE_GROUP_FILTER_SUBSCRIPTIONS

BULK_CHANGE

public static final Permission BULK_CHANGE

USER_PICKER

public static final Permission USER_PICKER

PROJECT_ADMIN

public static final Permission PROJECT_ADMIN

BROWSE

public static final Permission BROWSE

VIEW_VERSION_CONTROL

public static final Permission VIEW_VERSION_CONTROL

VIEW_WORKFLOW_READONLY

public static final Permission VIEW_WORKFLOW_READONLY

CREATE_ISSUE

public static final Permission CREATE_ISSUE

EDIT_ISSUE

public static final Permission EDIT_ISSUE

ASSIGN_ISSUE

public static final Permission ASSIGN_ISSUE

RESOLVE_ISSUE

public static final Permission RESOLVE_ISSUE

DELETE_ISSUE

public static final Permission DELETE_ISSUE

ASSIGNABLE_USER

public static final Permission ASSIGNABLE_USER

CLOSE_ISSUE

public static final Permission CLOSE_ISSUE

LINK_ISSUE

public static final Permission LINK_ISSUE

MOVE_ISSUE

public static final Permission MOVE_ISSUE

SET_ISSUE_SECURITY

public static final Permission SET_ISSUE_SECURITY

SCHEDULE_ISSUE

public static final Permission SCHEDULE_ISSUE

MODIFY_REPORTER

public static final Permission MODIFY_REPORTER

VIEW_VOTERS_AND_WATCHERS

public static final Permission VIEW_VOTERS_AND_WATCHERS

MANAGE_WATCHER_LIST

public static final Permission MANAGE_WATCHER_LIST

COMMENT_ISSUE

public static final Permission COMMENT_ISSUE

COMMENT_EDIT_ALL

public static final Permission COMMENT_EDIT_ALL

COMMENT_EDIT_OWN

public static final Permission COMMENT_EDIT_OWN

COMMENT_DELETE_ALL

public static final Permission COMMENT_DELETE_ALL

COMMENT_DELETE_OWN

public static final Permission COMMENT_DELETE_OWN

CREATE_ATTACHMENT

public static final Permission CREATE_ATTACHMENT

ATTACHMENT_DELETE_ALL

public static final Permission ATTACHMENT_DELETE_ALL

ATTACHMENT_DELETE_OWN

public static final Permission ATTACHMENT_DELETE_OWN

WORK_ISSUE

public static final Permission WORK_ISSUE

WORKLOG_EDIT_OWN

public static final Permission WORKLOG_EDIT_OWN

WORKLOG_EDIT_ALL

public static final Permission WORKLOG_EDIT_ALL

WORKLOG_DELETE_OWN

public static final Permission WORKLOG_DELETE_OWN

WORKLOG_DELETE_ALL

public static final Permission WORKLOG_DELETE_ALL
Method Detail

values

public static Permission[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Permission c : Permission.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Permission valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getId

public int getId()

getName

public String getName()
This method returns the name of the permission in English (ignoring user locale).

Returns:
name of the permission

getNameKey

public String getNameKey()

getDescription

public String getDescription()
This method returns the description of the permission in user selected language.

Returns:
description of the permission

getDescriptionKey

public String getDescriptionKey()


Copyright © 2002-2014 Atlassian. All Rights Reserved.