public class

MockGlobalPermissionTypeManager

extends Object
implements GlobalPermissionTypesManager
java.lang.Object
   ↳ com.atlassian.jira.security.MockGlobalPermissionTypeManager

Class Overview

Pretends we only have system global permissions

Summary

Fields
public static List<GlobalPermissionType> SYSTEM_PERMISSIONS
Public Constructors
MockGlobalPermissionTypeManager()
Public Methods
Collection<GlobalPermissionType> getAll()
Returns all global permissions defined in this JIRA instance.
Option<GlobalPermissionType> getGlobalPermission(String permissionKey)
Returns the details of the given Global Permission.
Option<GlobalPermissionType> getGlobalPermission(GlobalPermissionKey permissionKey)
Returns the details of the given Global Permission.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.security.plugin.GlobalPermissionTypesManager

Fields

public static List<GlobalPermissionType> SYSTEM_PERMISSIONS

Public Constructors

public MockGlobalPermissionTypeManager ()

Public Methods

public Collection<GlobalPermissionType> getAll ()

Returns all global permissions defined in this JIRA instance.

Returns
  • all global permissions defined by plugins including system permissions.

public Option<GlobalPermissionType> getGlobalPermission (String permissionKey)

Returns the details of the given Global Permission.

Parameters
permissionKey the String based permission key
Returns
  • the global permission object for the provided permissionKey.

public Option<GlobalPermissionType> getGlobalPermission (GlobalPermissionKey permissionKey)

Returns the details of the given Global Permission.

Parameters
permissionKey the GlobalPermissionKey representing this Global Permission.
Returns
  • the global permission object for the provided permissionKey.