Liferay 6.2-ce-ga5

com.liferay.portal.security.permission
Class PermissionThreadLocal

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

public class PermissionThreadLocal
extends Object


Constructor Summary
PermissionThreadLocal()
           
 
Method Summary
static PermissionChecker getPermissionChecker()
           
static boolean isAddResource()
           
static boolean isFlushEnabled()
          Deprecated. As of 7.0.0, replaced by isFlushResourceBlockEnabled(long, long, String) and isFlushResourcePermissionEnabled(String, String)
static boolean isFlushResourceBlockEnabled(long companyId, long groupId, String name)
           
static boolean isFlushResourcePermissionEnabled(String resourceName, String primKey)
           
static void setAddResource(boolean addResource)
           
static void setFlushResourceBlockEnabled(long companyId, long groupId, String name, boolean enabled)
           
static void setFlushResourcePermissionEnabled(String resourceName, String primKey, boolean enabled)
           
static void setIndexEnabled(boolean indexEnabled)
          Deprecated. As of 7.0.0, replaced by setFlushResourceBlockEnabled(long, long, String, boolean) and setFlushResourcePermissionEnabled( String, String, boolean)
static void setPermissionChecker(PermissionChecker permissionChecker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionThreadLocal

public PermissionThreadLocal()
Method Detail

getPermissionChecker

public static PermissionChecker getPermissionChecker()

isAddResource

public static boolean isAddResource()

isFlushEnabled

@Deprecated
public static boolean isFlushEnabled()
Deprecated. As of 7.0.0, replaced by isFlushResourceBlockEnabled(long, long, String) and isFlushResourcePermissionEnabled(String, String)


isFlushResourceBlockEnabled

public static boolean isFlushResourceBlockEnabled(long companyId,
                                                  long groupId,
                                                  String name)

isFlushResourcePermissionEnabled

public static boolean isFlushResourcePermissionEnabled(String resourceName,
                                                       String primKey)

setAddResource

public static void setAddResource(boolean addResource)

setFlushResourceBlockEnabled

public static void setFlushResourceBlockEnabled(long companyId,
                                                long groupId,
                                                String name,
                                                boolean enabled)

setFlushResourcePermissionEnabled

public static void setFlushResourcePermissionEnabled(String resourceName,
                                                     String primKey,
                                                     boolean enabled)

setIndexEnabled

@Deprecated
public static void setIndexEnabled(boolean indexEnabled)
Deprecated. As of 7.0.0, replaced by setFlushResourceBlockEnabled(long, long, String, boolean) and setFlushResourcePermissionEnabled( String, String, boolean)


setPermissionChecker

public static void setPermissionChecker(PermissionChecker permissionChecker)

Liferay 6.2-ce-ga5