public class CompanyThreadLocal
extends Object
| Constructor and Description |
|---|
CompanyThreadLocal() |
| Modifier and Type | Method and Description |
|---|---|
static User |
fetchGuestUser() |
static Long |
getCompanyId() |
static long |
getNonsystemCompanyId() |
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 |
setCompanyIdWithSafeCloseable(Long companyId) |
static com.liferay.petra.lang.SafeCloseable |
setCompanyIdWithSafeCloseable(Long companyId,
Long ctCollectionId) |
static com.liferay.petra.lang.SafeCloseable |
setInitializingCompanyIdWithSafeCloseable(long companyId) |
static com.liferay.petra.lang.SafeCloseable |
setInitializingPortalInstanceWithSafeCloseable(boolean initializingPortalInstance) |
public static User fetchGuestUser()
public static Long getCompanyId()
public static long getNonsystemCompanyId()
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 setCompanyIdWithSafeCloseable(Long companyId)
public static com.liferay.petra.lang.SafeCloseable setCompanyIdWithSafeCloseable(Long companyId,
Long ctCollectionId)
public static com.liferay.petra.lang.SafeCloseable setInitializingCompanyIdWithSafeCloseable(long companyId)
public static com.liferay.petra.lang.SafeCloseable setInitializingPortalInstanceWithSafeCloseable(boolean initializingPortalInstance)