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 |
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 |
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.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 |
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) |
public static final String PERMISSION_CACHE_NAME
public static final String PERMISSION_CHECKER_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 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.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 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)