com.liferay.portal.security.permission
Class PermissionThreadLocal
java.lang.Object
com.liferay.portal.security.permission.PermissionThreadLocal
public class PermissionThreadLocal
- extends Object
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 |
PermissionThreadLocal
public PermissionThreadLocal()
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)