public class CompanyThreadLocal
extends Object
Constructor and Description |
---|
CompanyThreadLocal() |
Modifier and Type | Method and Description |
---|---|
static Long |
getCompanyId() |
static boolean |
isDeleteInProcess() |
static boolean |
isInitializingPortalInstance() |
static boolean |
isLocked() |
static com.liferay.petra.lang.SafeCloseable |
lock(long companyId) |
static void |
setCompanyId(Long companyId) |
static void |
setDeleteInProcess(boolean deleteInProcess) |
static com.liferay.petra.lang.SafeClosable |
setInitializingCompanyId(long companyId)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
setInitializingCompanyIdWithSafeCloseable(long) |
static com.liferay.petra.lang.SafeCloseable |
setInitializingCompanyIdWithSafeCloseable(long companyId) |
static com.liferay.petra.lang.SafeCloseable |
setInitializingPortalInstance(boolean initializingPortalInstance) |
static com.liferay.petra.lang.SafeClosable |
setWithSafeClosable(Long companyId)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
setWithSafeCloseable(Long) |
static com.liferay.petra.lang.SafeCloseable |
setWithSafeCloseable(Long companyId) |
public static Long getCompanyId()
public static boolean isDeleteInProcess()
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 void setDeleteInProcess(boolean deleteInProcess)
@Deprecated public static com.liferay.petra.lang.SafeClosable setInitializingCompanyId(long companyId)
setInitializingCompanyIdWithSafeCloseable(long)
public static com.liferay.petra.lang.SafeCloseable setInitializingCompanyIdWithSafeCloseable(long companyId)
public static com.liferay.petra.lang.SafeCloseable setInitializingPortalInstance(boolean initializingPortalInstance)
@Deprecated public static com.liferay.petra.lang.SafeClosable setWithSafeClosable(Long companyId)
setWithSafeCloseable(Long)
public static com.liferay.petra.lang.SafeCloseable setWithSafeCloseable(Long companyId)