Class CompanyThreadLocal
Object
com.liferay.portal.kernel.security.auth.CompanyThreadLocal
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Userstatic Longstatic longstatic booleanstatic booleanisLocked()static booleanstatic com.liferay.petra.lang.SafeCloseablelock(long companyId) static voidsetCompanyId(Long companyId) static com.liferay.petra.lang.SafeCloseablesetCompanyIdWithSafeCloseable(Long companyId) static com.liferay.petra.lang.SafeCloseablesetCompanyIdWithSafeCloseable(Long companyId, Long ctCollectionId) static com.liferay.petra.lang.SafeCloseablesetInitializingCompanyIdWithSafeCloseable(long companyId) static com.liferay.petra.lang.SafeCloseablesetInitializingPortalInstanceWithSafeCloseable(boolean initializingPortalInstance) static com.liferay.petra.lang.SafeCloseablesetUpgradingPortalInstanceWithSafeCloseable(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)
-