Package com.liferay.portal.util
Class PortalInstances
Object
com.liferay.portal.util.PortalInstances
- Author:
- Brian Wing Shun Chan, Jose Oliver, Atul Patel, Mika Koivisto
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.model.Company
addCompany
(String siteInitializerKey, com.liferay.petra.function.UnsafeSupplier<com.liferay.portal.kernel.model.Company, com.liferay.portal.kernel.exception.PortalException> unsafeSupplier) static long
getCompanyId
(javax.servlet.http.HttpServletRequest httpServletRequest) static long
getCompanyId
(javax.servlet.http.HttpServletRequest httpServletRequest, boolean strict) static long[]
Deprecated.static long[]
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getCompanyIds()
static Long
static long
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getDefaultCompanyId()
static long
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getDefaultCompanyId()
static Long
static String[]
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getWebIds()
}static long
initCompany
(com.liferay.portal.kernel.model.Company company) static long
initCompany
(com.liferay.portal.kernel.model.Company company, boolean skipCheck) static boolean
isAutoLoginIgnoreHost
(String host) static boolean
isAutoLoginIgnorePath
(String path) static boolean
isCompanyActive
(long companyId) static boolean
static boolean
isCompanyInDeletionProcess
(long companyId) static boolean
static boolean
static boolean
static boolean
static void
removeCompany
(long companyId) static com.liferay.petra.lang.SafeCloseable
setCompanyInDeletionProcessWithSafeCloseable
(long companyId) static com.liferay.petra.lang.SafeCloseable
setCopyInProcessCompanyIdWithSafeCloseable
(long companyId) static com.liferay.petra.lang.SafeCloseable
setInsertionInProcessCompanyIdWithSafeCloseable
(long companyId)
-
Method Details
-
addCompany
public static com.liferay.portal.kernel.model.Company addCompany(String siteInitializerKey, com.liferay.petra.function.UnsafeSupplier<com.liferay.portal.kernel.model.Company, com.liferay.portal.kernel.exception.PortalException> unsafeSupplier) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCompanyId
public static long getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest) -
getCompanyId
public static long getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest, boolean strict) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException - Throws:
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
-
getCompanyIds
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getCompanyIds()
-
getCompanyIdsBySQL
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getCompanyIds()
- Throws:
SQLException
-
getCopyInProcessCompanyId
-
getDefaultCompanyId
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getDefaultCompanyId()
-
getDefaultCompanyIdBySQL
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getDefaultCompanyId()
- Throws:
SQLException
-
getInsertionInProcessCompanyId
-
getWebIds
Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getWebIds()
} -
initCompany
public static long initCompany(com.liferay.portal.kernel.model.Company company) -
initCompany
public static long initCompany(com.liferay.portal.kernel.model.Company company, boolean skipCheck) -
isAutoLoginIgnoreHost
-
isAutoLoginIgnorePath
-
isCompanyActive
public static boolean isCompanyActive(long companyId) -
isCompanyInCopyProcess
public static boolean isCompanyInCopyProcess() -
isCompanyInDeletionProcess
public static boolean isCompanyInDeletionProcess(long companyId) -
isCompanyInInsertionProcess
public static boolean isCompanyInInsertionProcess() -
isCurrentCompanyInDeletionProcess
public static boolean isCurrentCompanyInDeletionProcess() -
isVirtualHostsIgnoreHost
-
isVirtualHostsIgnorePath
-
removeCompany
public static void removeCompany(long companyId) -
setCompanyInDeletionProcessWithSafeCloseable
public static com.liferay.petra.lang.SafeCloseable setCompanyInDeletionProcessWithSafeCloseable(long companyId) -
setCopyInProcessCompanyIdWithSafeCloseable
public static com.liferay.petra.lang.SafeCloseable setCopyInProcessCompanyIdWithSafeCloseable(long companyId) -
setInsertionInProcessCompanyIdWithSafeCloseable
public static com.liferay.petra.lang.SafeCloseable setInsertionInProcessCompanyIdWithSafeCloseable(long companyId)
-
PortalInstancePool.getCompanyIds()