PermissionManager
or ConfluenceAccessManager
instead,
which will automatically use the appropriate thread-local caching.@Deprecated public class ThreadLocalPermissionsCache extends Object
Plugin code shouldn't use this cache at all. See alternatives in deprecation comments on each method.
Core permissions system caching code should use
ThreadLocalPermissionsCacheInternal
instead.
Constructor and Description |
---|
ThreadLocalPermissionsCache()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
cacheCanUseConfluence(com.atlassian.user.User user,
boolean canUse)
Deprecated.
since 5.9, no replacement. This method is a no-op and does nothing.
|
static void |
cachePermissionExemption(com.atlassian.user.User user,
boolean exempt)
Deprecated.
since 5.9, no replacement. This method is a no-op and does nothing.
|
static void |
cacheSpacePermission(com.atlassian.user.User user,
String permission,
Space space,
boolean hasPermission)
Deprecated.
since 5.9, no replacement. This method is a no-op and does nothing.
|
static Boolean |
canUseConfluence(com.atlassian.user.User user)
Deprecated.
since 5.9. Users can have different types of access to Confluence, use
ConfluenceAccessManager.getUserAccessStatus(com.atlassian.user.User) instead. |
static void |
disableTemporaryPermissionExemption()
Deprecated.
since 5.9. Use
PermissionManager.withExemption(Runnable) or
OperationService.withExemption(Supplier) instead. |
static void |
enableTemporaryPermissionExemption()
Deprecated.
since 5.9. Use
PermissionManager.withExemption(Runnable) or
OperationService.withExemption(Supplier) instead. |
static Boolean |
hasPermissionExemption(com.atlassian.user.User user)
Deprecated.
since 5.9. Use
PermissionManager , ConfluenceAccessManager
or OperationService instead, which will
automatically check the appropriate exemptions. |
static Boolean |
hasSpacePermission(String permission,
Space space,
com.atlassian.user.User user)
Deprecated.
since 5.9. Use
PermissionManager.hasPermission(User, Permission, Object) instead. |
static boolean |
hasTemporaryPermissionExemption()
Deprecated.
since 5.9. Use
PermissionManager , ConfluenceAccessManager
or OperationService instead, which will
automatically check the appropriate exemptions when used within
PermissionManager.withExemption(Runnable)
or OperationService.withExemption(Supplier) . |
@Deprecated public static Boolean hasSpacePermission(String permission, Space space, com.atlassian.user.User user)
PermissionManager.hasPermission(User, Permission, Object)
instead.@Deprecated public static void cacheSpacePermission(com.atlassian.user.User user, String permission, Space space, boolean hasPermission)
@Deprecated public static Boolean canUseConfluence(com.atlassian.user.User user)
ConfluenceAccessManager.getUserAccessStatus(com.atlassian.user.User)
instead.@Deprecated public static void cacheCanUseConfluence(com.atlassian.user.User user, boolean canUse)
@Deprecated public static Boolean hasPermissionExemption(com.atlassian.user.User user)
PermissionManager
, ConfluenceAccessManager
or OperationService
instead, which will
automatically check the appropriate exemptions.@Deprecated public static void cachePermissionExemption(com.atlassian.user.User user, boolean exempt)
@Deprecated public static boolean hasTemporaryPermissionExemption()
PermissionManager
, ConfluenceAccessManager
or OperationService
instead, which will
automatically check the appropriate exemptions when used within
PermissionManager.withExemption(Runnable)
or OperationService.withExemption(Supplier)
.@Deprecated public static void enableTemporaryPermissionExemption()
PermissionManager.withExemption(Runnable)
or
OperationService.withExemption(Supplier)
instead.@Deprecated public static void disableTemporaryPermissionExemption()
PermissionManager.withExemption(Runnable)
or
OperationService.withExemption(Supplier)
instead.Copyright © 2003–2016 Atlassian. All rights reserved.