public class

GlobalPermissionsCache

extends Object
java.lang.Object
   ↳ com.atlassian.jira.security.GlobalPermissionsCache

Class Overview

This is a very basic cache that stores permissions

When constructed, or when you call refresh() - it will find and cache all permissions

Summary

Public Methods
void clearCache()
Set<GlobalPermissionEntry> getPermissions()
Collection<GlobalPermissionEntry> getPermissions(String permissionType)
Get a Collection of permission based on a permissionType
boolean hasPermission(GlobalPermissionEntry jiraPermission)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void clearCache ()

public Set<GlobalPermissionEntry> getPermissions ()

public Collection<GlobalPermissionEntry> getPermissions (String permissionType)

Get a Collection of permission based on a permissionType

Parameters
permissionType must be global permission type
Returns
  • Collction of Permission objects

public boolean hasPermission (GlobalPermissionEntry jiraPermission)