public class PermissionCacheUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PERMISSION_CACHE_NAME |
static String |
PERMISSION_CHECKER_BAG_CACHE_NAME |
static String |
RESOURCE_BLOCK_IDS_BAG_CACHE_NAME |
static String |
USER_BAG_CACHE_NAME |
static String |
USER_PRIMARY_KEY_ROLE_CACHE_NAME |
static String |
USER_ROLE_CACHE_NAME |
Constructor and Description |
---|
PermissionCacheUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache() |
static void |
clearCache(long... userIds) |
static void |
clearPrimaryKeyRoleCache() |
static void |
clearResourceBlockCache(long companyId,
long groupId,
String name) |
static void |
clearResourceCache() |
static void |
clearResourcePermissionCache(int scope,
String name,
String primKey) |
static Boolean |
getPermission(long groupId,
String name,
String primKey,
long[] roleIds,
String actionId) |
static com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag |
getResourceBlockIdsBag(long companyId,
long groupId,
long userId,
String name) |
static com.liferay.portal.kernel.security.permission.UserBag |
getUserBag(long userId) |
static long[] |
getUserGroupRoleIds(long userId,
long groupId) |
static Boolean |
getUserPrimaryKeyRole(long userId,
long primaryKey,
String roleName) |
static Boolean |
getUserRole(long userId,
com.liferay.portal.kernel.model.Role role) |
static void |
putPermission(long groupId,
String name,
String primKey,
long[] roleIds,
String actionId,
Boolean value) |
static void |
putResourceBlockIdsBag(long companyId,
long groupId,
long userId,
String name,
com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag resourceBlockIdsBag) |
static void |
putUserBag(long userId,
com.liferay.portal.kernel.security.permission.UserBag userBag) |
static void |
putUserGroupRoleIds(long userId,
long groupId,
long[] roleIds) |
static void |
putUserPrimaryKeyRole(long userId,
long primaryKey,
String roleName,
Boolean value) |
static void |
putUserRole(long userId,
com.liferay.portal.kernel.model.Role role,
Boolean value) |
static void |
removePermission(long groupId,
String name,
String primKey,
long[] roleIds,
String actionId) |
static void |
removeResourceBlockIdsBag(long companyId,
long groupId,
long userId,
String name) |
static void |
removeUserBag(long userId) |
static void |
removeUserGroupRoleIds(long userId,
long groupId) |
static void |
removeUserPrimaryKeyRole(long userId,
long primaryKey,
String roleName) |
public static final String PERMISSION_CACHE_NAME
public static final String PERMISSION_CHECKER_BAG_CACHE_NAME
public static final String RESOURCE_BLOCK_IDS_BAG_CACHE_NAME
public static final String USER_BAG_CACHE_NAME
public static final String USER_PRIMARY_KEY_ROLE_CACHE_NAME
public static final String USER_ROLE_CACHE_NAME
public static void clearCache()
public static void clearCache(long... userIds)
public static void clearPrimaryKeyRoleCache()
public static void clearResourceBlockCache(long companyId, long groupId, String name)
public static void clearResourceCache()
public static void clearResourcePermissionCache(int scope, String name, String primKey)
public static Boolean getPermission(long groupId, String name, String primKey, long[] roleIds, String actionId)
public static com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, long userId, String name)
public static com.liferay.portal.kernel.security.permission.UserBag getUserBag(long userId)
public static long[] getUserGroupRoleIds(long userId, long groupId)
public static Boolean getUserPrimaryKeyRole(long userId, long primaryKey, String roleName)
public static Boolean getUserRole(long userId, com.liferay.portal.kernel.model.Role role)
public static void putPermission(long groupId, String name, String primKey, long[] roleIds, String actionId, Boolean value)
public static void putResourceBlockIdsBag(long companyId, long groupId, long userId, String name, com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
public static void putUserBag(long userId, com.liferay.portal.kernel.security.permission.UserBag userBag)
public static void putUserGroupRoleIds(long userId, long groupId, long[] roleIds)
public static void putUserPrimaryKeyRole(long userId, long primaryKey, String roleName, Boolean value)
public static void putUserRole(long userId, com.liferay.portal.kernel.model.Role role, Boolean value)
public static void removePermission(long groupId, String name, String primKey, long[] roleIds, String actionId)
public static void removeResourceBlockIdsBag(long companyId, long groupId, long userId, String name)
public static void removeUserBag(long userId)
public static void removeUserGroupRoleIds(long userId, long groupId)
public static void removeUserPrimaryKeyRole(long userId, long primaryKey, String roleName)