Liferay 7.0-ce-b4

com.liferay.portal.security.permission
Class PermissionCacheUtil

java.lang.Object
  extended by com.liferay.portal.security.permission.PermissionCacheUtil

public class PermissionCacheUtil
extends Object


Field Summary
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 Summary
PermissionCacheUtil()
           
 
Method Summary
static void clearCache()
           
static void clearCache(long... userIds)
           
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 userId, boolean signedIn, long groupId, String name, String primKey, String actionId)
           
static ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, long userId, String name)
           
static 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, Role role)
           
static void putPermission(long userId, boolean signedIn, long groupId, String name, String primKey, String actionId, Boolean value)
           
static void putResourceBlockIdsBag(long companyId, long groupId, long userId, String name, ResourceBlockIdsBag resourceBlockIdsBag)
           
static void putUserBag(long userId, 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, Role role, Boolean value)
           
static void removePermission(long userId, boolean signedIn, long groupId, String name, String primKey, 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERMISSION_CACHE_NAME

public static final String PERMISSION_CACHE_NAME

PERMISSION_CHECKER_BAG_CACHE_NAME

public static final String PERMISSION_CHECKER_BAG_CACHE_NAME

RESOURCE_BLOCK_IDS_BAG_CACHE_NAME

public static final String RESOURCE_BLOCK_IDS_BAG_CACHE_NAME

USER_BAG_CACHE_NAME

public static final String USER_BAG_CACHE_NAME

USER_PRIMARY_KEY_ROLE_CACHE_NAME

public static final String USER_PRIMARY_KEY_ROLE_CACHE_NAME

USER_ROLE_CACHE_NAME

public static final String USER_ROLE_CACHE_NAME
Constructor Detail

PermissionCacheUtil

public PermissionCacheUtil()
Method Detail

clearCache

public static void clearCache()

clearCache

public static void clearCache(long... userIds)

clearResourceBlockCache

public static void clearResourceBlockCache(long companyId,
                                           long groupId,
                                           String name)

clearResourceCache

public static void clearResourceCache()

clearResourcePermissionCache

public static void clearResourcePermissionCache(int scope,
                                                String name,
                                                String primKey)

getPermission

public static Boolean getPermission(long userId,
                                    boolean signedIn,
                                    long groupId,
                                    String name,
                                    String primKey,
                                    String actionId)

getResourceBlockIdsBag

public static ResourceBlockIdsBag getResourceBlockIdsBag(long companyId,
                                                         long groupId,
                                                         long userId,
                                                         String name)

getUserBag

public static UserBag getUserBag(long userId)

getUserGroupRoleIds

public static long[] getUserGroupRoleIds(long userId,
                                         long groupId)

getUserPrimaryKeyRole

public static Boolean getUserPrimaryKeyRole(long userId,
                                            long primaryKey,
                                            String roleName)

getUserRole

public static Boolean getUserRole(long userId,
                                  Role role)

putPermission

public static void putPermission(long userId,
                                 boolean signedIn,
                                 long groupId,
                                 String name,
                                 String primKey,
                                 String actionId,
                                 Boolean value)

putResourceBlockIdsBag

public static void putResourceBlockIdsBag(long companyId,
                                          long groupId,
                                          long userId,
                                          String name,
                                          ResourceBlockIdsBag resourceBlockIdsBag)

putUserBag

public static void putUserBag(long userId,
                              UserBag userBag)

putUserGroupRoleIds

public static void putUserGroupRoleIds(long userId,
                                       long groupId,
                                       long[] roleIds)

putUserPrimaryKeyRole

public static void putUserPrimaryKeyRole(long userId,
                                         long primaryKey,
                                         String roleName,
                                         Boolean value)

putUserRole

public static void putUserRole(long userId,
                               Role role,
                               Boolean value)

removePermission

public static void removePermission(long userId,
                                    boolean signedIn,
                                    long groupId,
                                    String name,
                                    String primKey,
                                    String actionId)

removeResourceBlockIdsBag

public static void removeResourceBlockIdsBag(long companyId,
                                             long groupId,
                                             long userId,
                                             String name)

removeUserBag

public static void removeUserBag(long userId)

removeUserGroupRoleIds

public static void removeUserGroupRoleIds(long userId,
                                          long groupId)

removeUserPrimaryKeyRole

public static void removeUserPrimaryKeyRole(long userId,
                                            long primaryKey,
                                            String roleName)

Liferay 7.0-ce-b4