Package com.atlassian.jira.security
Class GlobalPermissionsCache
java.lang.Object
com.atlassian.jira.security.GlobalPermissionsCache
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionvoid
getPermissions
(String permissionType) Get a Collection of permission based on a permissionTypeboolean
hasPermission
(GlobalPermissionEntry jiraPermission) boolean
isGroupUsed
(com.atlassian.crowd.embedded.api.Group group) Determine whether configuration exists for the specifiedGroup
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.config.group.GroupConfigurable
isGroupUsed
-
Method Details
-
clearCache
public void clearCache() -
hasPermission
-
getPermissions
-
getPermissions
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 specifiedGroup
.- Specified by:
isGroupUsed
in interfaceGroupConfigurable
- Parameters:
group
- that may or may not exist.- Returns:
- true if the group is used in the components configuration.
-