com.atlassian.confluence.security
Class ThreadLocalPermissionsCache

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

public class ThreadLocalPermissionsCache
extends Object

Wrapper around the ThreadLocalCache to deal with caching space permissions and application access.


Constructor Summary
ThreadLocalPermissionsCache()
           
 
Method Summary
static void cacheCanUseConfluence(com.atlassian.user.User user, boolean canUse)
           
static void cachePermissionExemption(com.atlassian.user.User user, boolean exempt)
           
static void cacheSpacePermission(com.atlassian.user.User user, String permission, Space space, boolean hasPermission)
           
static Boolean canUseConfluence(com.atlassian.user.User user)
           
static Boolean hasPermissionExemption(com.atlassian.user.User user)
           
static Boolean hasSpacePermission(String permission, Space space, com.atlassian.user.User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalPermissionsCache

public ThreadLocalPermissionsCache()
Method Detail

hasSpacePermission

public static Boolean hasSpacePermission(String permission,
                                         Space space,
                                         com.atlassian.user.User user)

cacheSpacePermission

public static void cacheSpacePermission(com.atlassian.user.User user,
                                        String permission,
                                        Space space,
                                        boolean hasPermission)

canUseConfluence

public static Boolean canUseConfluence(com.atlassian.user.User user)

cacheCanUseConfluence

public static void cacheCanUseConfluence(com.atlassian.user.User user,
                                         boolean canUse)

hasPermissionExemption

public static Boolean hasPermissionExemption(com.atlassian.user.User user)

cachePermissionExemption

public static void cachePermissionExemption(com.atlassian.user.User user,
                                            boolean exempt)


Copyright © 2003-2013 Atlassian. All Rights Reserved.