Class Permissions

java.lang.Object
com.atlassian.jira.security.Permissions

@Deprecated public final class Permissions extends Object
Deprecated.
Use fields and utility methods defined in ProjectPermissions and GlobalPermissionKey. Since v6.3.
  • Field Details

    • ADMINISTER

      public static final int ADMINISTER
      Deprecated.
      Permission to administer JIRA
      See Also:
    • USE

      @Deprecated public static final int USE
      Deprecated.
      Use ApplicationAuthorizationService instead.Since v7.0.
      Permission to use JIRA
      See Also:
    • SYSTEM_ADMIN

      public static final int SYSTEM_ADMIN
      Deprecated.
      Permission to be a System Admin of JIRA
      See Also:
    • PROJECT_ADMIN

      public static final int PROJECT_ADMIN
      Deprecated.
      Permission to administer a Project
      See Also:
    • BROWSE

      public static final int BROWSE
      Deprecated.
      Permission to browse projects and issues.

      This includes filtering using the Issue Navigator.

      See Also:
    • CREATE_ISSUE

      public static final int CREATE_ISSUE
      Deprecated.
      Permission to create issues.
      See Also:
    • EDIT_ISSUE

      public static final int EDIT_ISSUE
      Deprecated.
      Permission to edit issues.

      This includes managing attachments and adding them.

      See Also:
    • ASSIGN_ISSUE

      public static final int ASSIGN_ISSUE
      Deprecated.
      Permission to assign issues to other users.
      See Also:
    • RESOLVE_ISSUE

      public static final int RESOLVE_ISSUE
      Deprecated.
      Permission to resolve issues.
      See Also:
    • COMMENT_ISSUE

      public static final int COMMENT_ISSUE
      Deprecated.
      Permission to comment on issues
      See Also:
    • DELETE_ISSUE

      public static final int DELETE_ISSUE
      Deprecated.
      Permission to delete issues and comments.
      See Also:
    • ASSIGNABLE_USER

      public static final int ASSIGNABLE_USER
      Deprecated.
      Permission to be assigned issues.
      See Also:
    • CLOSE_ISSUE

      public static final int CLOSE_ISSUE
      Deprecated.
      Permission to close issues.
      See Also:
    • TRANSITION_ISSUE

      @ExperimentalApi public static final int TRANSITION_ISSUE
      Deprecated.
      Permission to perform workflow action (transition).

      For 6.2.x release it's partially used. It was introduced for veto transition but the actual permission check is performed against the BROWSE permission. This permission is not visible in UI or REST.

      In 6.3 release this will be full-fledged permission.

      Since:
      6.2.2
      See Also:
    • CREATE_ATTACHMENT

      public static final int CREATE_ATTACHMENT
      Deprecated.
      Permission to create attachments.
      See Also:
    • WORK_ISSUE

      public static final int WORK_ISSUE
      Deprecated.
      Permission to log work done on an issue.
      See Also:
    • CREATE_SHARED_OBJECTS

      public static final int CREATE_SHARED_OBJECTS
      Deprecated.
      Permission to created shared objects
      See Also:
    • MANAGE_GROUP_FILTER_SUBSCRIPTIONS

      public static final int MANAGE_GROUP_FILTER_SUBSCRIPTIONS
      Deprecated.
      Permission to manage group filter subscriptions
      See Also:
    • COMMENT_EDIT_ALL

      public static final int COMMENT_EDIT_ALL
      Deprecated.
      Permission to modify all comments
      See Also:
    • COMMENT_EDIT_OWN

      public static final int COMMENT_EDIT_OWN
      Deprecated.
      Permission to modify only your own comments
      See Also:
    • MOVE_ISSUE

      public static final int MOVE_ISSUE
      Deprecated.
      Permission to move issues between projects
      See Also:
    • SET_ISSUE_SECURITY

      public static final int SET_ISSUE_SECURITY
      Deprecated.
      See Also:
    • USER_PICKER

      public static final int USER_PICKER
      Deprecated.
      See Also:
    • SCHEDULE_ISSUE

      public static final int SCHEDULE_ISSUE
      Deprecated.
      See Also:
    • VIEW_VERSION_CONTROL

      public static final int VIEW_VERSION_CONTROL
      Deprecated.
      See Also:
    • MODIFY_REPORTER

      public static final int MODIFY_REPORTER
      Deprecated.
      See Also:
    • VIEW_VOTERS_AND_WATCHERS

      public static final int VIEW_VOTERS_AND_WATCHERS
      Deprecated.
      See Also:
    • MANAGE_WATCHER_LIST

      public static final int MANAGE_WATCHER_LIST
      Deprecated.
      See Also:
    • BULK_CHANGE

      public static final int BULK_CHANGE
      Deprecated.
      Permission to modify a collection of issues (global)
      See Also:
    • COMMENT_DELETE_ALL

      public static final int COMMENT_DELETE_ALL
      Deprecated.
      Permission to delete all comments
      See Also:
    • COMMENT_DELETE_OWN

      public static final int COMMENT_DELETE_OWN
      Deprecated.
      Permission to delete own comments
      See Also:
    • ATTACHMENT_DELETE_ALL

      public static final int ATTACHMENT_DELETE_ALL
      Deprecated.
      Permission to delete all attachments
      See Also:
    • ATTACHMENT_DELETE_OWN

      public static final int ATTACHMENT_DELETE_OWN
      Deprecated.
      Permission to delete own attachments
      See Also:
    • WORKLOG_EDIT_OWN

      public static final int WORKLOG_EDIT_OWN
      Deprecated.
      Permission to edit/remove worklogs
      See Also:
    • WORKLOG_EDIT_ALL

      public static final int WORKLOG_EDIT_ALL
      Deprecated.
      See Also:
    • WORKLOG_DELETE_OWN

      public static final int WORKLOG_DELETE_OWN
      Deprecated.
      See Also:
    • WORKLOG_DELETE_ALL

      public static final int WORKLOG_DELETE_ALL
      Deprecated.
      See Also:
    • VIEW_WORKFLOW_READONLY

      public static final int VIEW_WORKFLOW_READONLY
      Deprecated.
      See Also:
    • MAX_PERMISSION

      @Deprecated public static final int MAX_PERMISSION
      Deprecated.
      Do not use MAX_PERMISSION - it is unsafe due to the way that Java compiles constant ints, and no longer relevant. Since v6.2.3
      This constant should not be used for a number of reasons.
      • Because of the way that Java compiles public static final int, a plugin will not be able to detect changes in this value if we add new permissions.
      • Global Permissions have been made pluggable, so they are now keyed by String rather than int.
        The ints will continued to work for compatibility reasons for some time, but the ideas of a "max permission ID" no longer makes sense. See GlobalPermissionManager.getAllGlobalPermissions().
      • There are plans to make Project Permissions pluggable as well in the near future.
        For now, using the Permissions.Permission enum is preferred over MAX_PERMISSION.
      See Also:
  • Constructor Details

    • Permissions

      public Permissions()
      Deprecated.
  • Method Details

    • getUsePermissions

      public static Set<Integer> getUsePermissions()
      Deprecated.
      Log in permission will be changing significantly in JIRA 7.0 ... if you are using this method, then you will need to watch out for announcements in 7.0 Developer upgrade guide. Since v6.2.5
      Returns a Set of all the permissions that grant a user the permission to log into JIRA (i.e. 'Use' JIRA).
      Returns:
      A set containing all the permissions or an empty set otherwise
      Since:
      3.13
    • getType

      public static int getType(String permName)
      Deprecated.
      Given a string approximation, try to guess the type If permName is null then -1 is returned If the permName is not recognised then -1 is returned
      Parameters:
      permName - permission name
      Returns:
      permission type
    • getShortName

      public static String getShortName(int id)
      Deprecated.
    • getDescription

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

      Returns an empty string if the permission with given type cannot be found.

      Parameters:
      permType - permission type
      Returns:
      description of a permission
    • isGlobalPermission

      public static boolean isGlobalPermission(int permType)
      Deprecated.
      This method is a shim. call GlobalPermissionManager.isGlobalPermission(int) instead.
    • isAdministrativePermission

      public static boolean isAdministrativePermission(int permType)
      Deprecated.
      No longer used. Also you should be using GlobalPermissionKey now instead of int.
      Parameters:
      permType - permission Type
      Returns:
      true if the permission type is a SYSTEM_ADMIN or a has ADMINISTER privileges