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 TypeMethodDescriptionvoidgetPermissions(String permissionType) Get a Collection of permission based on a permissionTypebooleanhasPermission(GlobalPermissionEntry jiraPermission) booleanisGroupUsed(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, waitMethods 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:GroupConfigurableDetermine whether configuration exists for the specifiedGroup.- Specified by:
isGroupUsedin interfaceGroupConfigurable- Parameters:
group- that may or may not exist.- Returns:
- true if the group is used in the components configuration.
-