Class CompanyThreadLocal
Object
com.liferay.portal.kernel.security.auth.CompanyThreadLocal
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic User
static Long
static long
static boolean
static boolean
isLocked()
static boolean
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) static com.liferay.petra.lang.SafeCloseable
setUpgradingPortalInstanceWithSafeCloseable
(boolean upgradingPortalInstance)
-
Constructor Details
-
CompanyThreadLocal
public CompanyThreadLocal()
-
-
Method Details
-
fetchGuestUser
-
getCompanyId
-
getNonsystemCompanyId
public static long getNonsystemCompanyId() -
isInitializingPortalInstance
public static boolean isInitializingPortalInstance() -
isLocked
public static boolean isLocked() -
isUpgradingPortalInstance
public static boolean isUpgradingPortalInstance() -
lock
public static com.liferay.petra.lang.SafeCloseable lock(long companyId) -
setCompanyId
-
setCompanyIdWithSafeCloseable
-
setCompanyIdWithSafeCloseable
-
setInitializingCompanyIdWithSafeCloseable
public static com.liferay.petra.lang.SafeCloseable setInitializingCompanyIdWithSafeCloseable(long companyId) -
setInitializingPortalInstanceWithSafeCloseable
public static com.liferay.petra.lang.SafeCloseable setInitializingPortalInstanceWithSafeCloseable(boolean initializingPortalInstance) -
setUpgradingPortalInstanceWithSafeCloseable
public static com.liferay.petra.lang.SafeCloseable setUpgradingPortalInstanceWithSafeCloseable(boolean upgradingPortalInstance)
-