public class CompanyThreadLocal
extends Object
Constructor and Description |
---|
CompanyThreadLocal() |
Modifier and Type | Method and Description |
---|---|
static User |
fetchGuestUser() |
static Long |
getCompanyId() |
static boolean |
isInitializingPortalInstance() |
static boolean |
isLocked() |
static com.liferay.petra.lang.SafeCloseable |
lock(long companyId) |
static void |
setCompanyId(Long companyId) |
static com.liferay.petra.lang.SafeCloseable |
setInitializingCompanyIdWithSafeCloseable(long companyId) |
static com.liferay.petra.lang.SafeCloseable |
setInitializingPortalInstance(boolean initializingPortalInstance) |
static com.liferay.petra.lang.SafeCloseable |
setWithSafeCloseable(Long companyId) |
static com.liferay.petra.lang.SafeCloseable |
setWithSafeCloseable(Long companyId,
Long ctCollectionId) |
public static User fetchGuestUser()
public static Long getCompanyId()
public static boolean isInitializingPortalInstance()
public static boolean isLocked()
public static com.liferay.petra.lang.SafeCloseable lock(long companyId)
public static void setCompanyId(Long companyId)
public static com.liferay.petra.lang.SafeCloseable setInitializingCompanyIdWithSafeCloseable(long companyId)
public static com.liferay.petra.lang.SafeCloseable setInitializingPortalInstance(boolean initializingPortalInstance)
public static com.liferay.petra.lang.SafeCloseable setWithSafeCloseable(Long companyId)
public static com.liferay.petra.lang.SafeCloseable setWithSafeCloseable(Long companyId, Long ctCollectionId)