Class GlobalPermissionsCache

java.lang.Object
com.atlassian.jira.security.GlobalPermissionsCache
All Implemented Interfaces:
GroupConfigurable

public class GlobalPermissionsCache extends Object implements GroupConfigurable
This is a very basic cache that stores permissions

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

  • Method Details

    • clearCache

      public void clearCache()
    • hasPermission

      public boolean hasPermission(GlobalPermissionEntry jiraPermission)
    • getPermissions

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

      public boolean isGroupUsed(@Nonnull com.atlassian.crowd.embedded.api.Group group)
      Description copied from interface: GroupConfigurable
      Determine whether configuration exists for the specified Group.
      Specified by:
      isGroupUsed in interface GroupConfigurable
      Parameters:
      group - that may or may not exist.
      Returns:
      true if the group is used in the components configuration.