com.atlassian.confluence.security
Class SpacePermissionGroupNamesCache

java.lang.Object
  extended by com.atlassian.confluence.security.SpacePermissionGroupNamesCache

@Internal
@ParametersAreNonnullByDefault
public class SpacePermissionGroupNamesCache
extends Object

Maintains a cache of [space-key]/[permission-type] pairs to user group names. In other words, for a given space permission type and space, it caches which user groups have that permission. It also works for global permissions, i.e. null space.

Since:
5.6

Method Summary
static SpacePermissionGroupNamesCache create(SpacePermissionDao spacePermissionDao, com.atlassian.cache.CacheFactory cacheFactory)
           
 Set<String> getGroupNamesWithPermission(Space space, String permissionType)
           
 void invalidate(String permissionType, Space space)
           
 void invalidateAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static SpacePermissionGroupNamesCache create(SpacePermissionDao spacePermissionDao,
                                                    com.atlassian.cache.CacheFactory cacheFactory)

getGroupNamesWithPermission

@Nonnull
public Set<String> getGroupNamesWithPermission(@Nullable
                                                       Space space,
                                                       String permissionType)

invalidate

public void invalidate(String permissionType,
                       @Nullable
                       Space space)

invalidateAll

public void invalidateAll()


Copyright © 2003–2015 Atlassian. All rights reserved.