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 voidstatic voidclearCache(long... userIds) static voidstatic voidstatic voidclearResourcePermissionCache(int scope, String name, String primKey) static BooleangetPermission(long groupId, String name, String primKey, long[] roleIds, String actionId) static com.liferay.portal.kernel.security.permission.UserBaggetUserBag(long userId) static long[]getUserGroupRoleIds(long userId, long groupId) static BooleangetUserPrimaryKeyRole(long userId, long primaryKey, String roleName) static BooleangetUserRole(long userId, com.liferay.portal.kernel.model.Role role) static voidputPermission(long groupId, String name, String primKey, long[] roleIds, String actionId, Boolean value) static voidputUserBag(long userId, com.liferay.portal.kernel.security.permission.UserBag userBag) static voidputUserGroupRoleIds(long userId, long groupId, long[] roleIds) static voidputUserPrimaryKeyRole(long userId, long primaryKey, String roleName, Boolean value) static voidputUserRole(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)
-