public class PermissionThreadLocal
extends Object
Constructor and Description |
---|
PermissionThreadLocal() |
Modifier and Type | Method and Description |
---|---|
static PermissionChecker |
getPermissionChecker() |
static boolean |
isAddResource() |
static boolean |
isFlushResourceBlockEnabled(long companyId,
long groupId,
String name) |
static boolean |
isFlushResourcePermissionEnabled(String resourceName,
String primKey) |
static void |
setAddResource(boolean addResource) |
static void |
setFlushResourceBlockEnabled(long companyId,
long groupId,
String name,
boolean enabled) |
static void |
setFlushResourcePermissionEnabled(String resourceName,
String primKey,
boolean enabled) |
static void |
setPermissionChecker(PermissionChecker permissionChecker) |
public static PermissionChecker getPermissionChecker()
public static boolean isAddResource()
public static boolean isFlushResourceBlockEnabled(long companyId, long groupId, String name)
public static boolean isFlushResourcePermissionEnabled(String resourceName, String primKey)
public static void setAddResource(boolean addResource)
public static void setFlushResourceBlockEnabled(long companyId, long groupId, String name, boolean enabled)
public static void setFlushResourcePermissionEnabled(String resourceName, String primKey, boolean enabled)
public static void setPermissionChecker(PermissionChecker permissionChecker)