public class

GlobalPermissionsCache

extends Object
implements GroupConfigurable
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()
Collection<GlobalPermissionEntry> getPermissions(String permissionType)
Get a Collection of permission based on a permissionType
Set<GlobalPermissionEntry> getPermissions()
boolean hasPermission(GlobalPermissionEntry jiraPermission)
boolean isGroupUsed(Group group)
Determine whether configuration exists for the specified Group.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.config.group.GroupConfigurable

Public Methods

public void clearCache ()

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 Set<GlobalPermissionEntry> getPermissions ()

public boolean hasPermission (GlobalPermissionEntry jiraPermission)

public boolean isGroupUsed (Group group)

Determine whether configuration exists for the specified Group.

Parameters
group that may or may not exist.
Returns
  • true if the group is used in the components configuration.