public interface

ProjectPermissionTypesManager

com.atlassian.jira.security.plugin.ProjectPermissionTypesManager
Known Indirect Subclasses

Class Overview

Manages project permissions defined by plugins (including system project permissions).

Summary

Public Methods
Collection<ProjectPermission> all()
boolean exists(ProjectPermissionKey permissionKey)
Returns a boolean value indicating whether a project permission with the given key exists.
Collection<ProjectPermission> withCategory(ProjectPermissionCategory category)
Option<ProjectPermission> withKey(ProjectPermissionKey permissionKey)
Returns a project permission matching the specified key.

Public Methods

public Collection<ProjectPermission> all ()

Returns
  • all project permissions.

public boolean exists (ProjectPermissionKey permissionKey)

Returns a boolean value indicating whether a project permission with the given key exists.

Parameters
permissionKey A project permission key.
Returns
  • true if the permission with the given key exists, otherwise false.

public Collection<ProjectPermission> withCategory (ProjectPermissionCategory category)

Parameters
category project permission category.
Returns
  • all project permissions of the specified category.

public Option<ProjectPermission> withKey (ProjectPermissionKey permissionKey)

Returns a project permission matching the specified key.

Parameters
permissionKey A project permission key.
Returns
  • a project permission for the given permission key. none() if there is no permission with this key.