com.atlassian.jira.security
Class GlobalPermissionsCache

java.lang.Object
  extended by com.atlassian.jira.security.GlobalPermissionsCache

public class GlobalPermissionsCache
extends Object

This is a very basic cache that stores permissions

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


Method Summary
 void clearCache()
           
 Set<GlobalPermissionEntry> getPermissions()
           
 Collection<GlobalPermissionEntry> getPermissions(String permissionType)
          Get a Collection of permission based on a permissionType
 boolean hasPermission(GlobalPermissionEntry jiraPermission)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.