Class PermissionCacheUtil
Object
com.liferay.portal.security.permission.PermissionCacheUtil
- Author:
- Charles May, Michael Young, Shuyang Zhou, Connor McKay, László Csontos
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
clearCache
(long... userIds) static void
static void
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)
-
Field Details
-
PERMISSION_CACHE_NAME
-
PERMISSION_CHECKER_BAG_CACHE_NAME
-
USER_BAG_CACHE_NAME
-
USER_PRIMARY_KEY_ROLE_CACHE_NAME
-
USER_ROLE_CACHE_NAME
-
-
Constructor Details
-
PermissionCacheUtil
public PermissionCacheUtil()
-
-
Method Details
-
clearCache
public static void clearCache() -
clearCache
public static void clearCache(long... userIds) -
clearPrimaryKeyRoleCache
public static void clearPrimaryKeyRoleCache() -
clearResourceCache
public static void clearResourceCache() -
clearResourcePermissionCache
-
getPermission
-
getUserBag
public static com.liferay.portal.kernel.security.permission.UserBag getUserBag(long userId) -
getUserGroupRoleIds
public static long[] getUserGroupRoleIds(long userId, long groupId) -
getUserPrimaryKeyRole
-
getUserRole
-
putPermission
-
putUserBag
public static void putUserBag(long userId, com.liferay.portal.kernel.security.permission.UserBag userBag) -
putUserGroupRoleIds
public static void putUserGroupRoleIds(long userId, long groupId, long[] roleIds) -
putUserPrimaryKeyRole
-
putUserRole
public static void putUserRole(long userId, com.liferay.portal.kernel.model.Role role, Boolean value)
-