public class GlobalPermissionsCache extends Object implements GroupConfigurable
When constructed, or when you call refresh() - it will find and cache all permissions
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
Set<GlobalPermissionEntry> |
getPermissions() |
Collection<GlobalPermissionEntry> |
getPermissions(String permissionType)
Get a Collection of permission based on a permissionType
|
boolean |
hasPermission(GlobalPermissionEntry jiraPermission) |
boolean |
isGroupUsed(com.atlassian.crowd.embedded.api.Group group)
Determine whether configuration exists for the specified
Group . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isGroupUsed
public void clearCache()
public boolean hasPermission(GlobalPermissionEntry jiraPermission)
public Set<GlobalPermissionEntry> getPermissions()
public Collection<GlobalPermissionEntry> getPermissions(String permissionType)
permissionType
- must be global permission typepublic boolean isGroupUsed(@Nonnull com.atlassian.crowd.embedded.api.Group group)
GroupConfigurable
Group
.isGroupUsed
in interface GroupConfigurable
group
- that may or may not exist.Copyright © 2002-2015 Atlassian. All Rights Reserved.