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.CompanyaddCompany(String siteInitializerKey, com.liferay.petra.function.UnsafeSupplier<com.liferay.portal.kernel.model.Company, com.liferay.portal.kernel.exception.PortalException> unsafeSupplier) static longgetCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest) static longgetCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest, boolean strict) static long[]Deprecated.static long[]Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getCompanyIds()static Longstatic longDeprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getDefaultCompanyId()static longDeprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getDefaultCompanyId()static Longstatic String[]Deprecated.As of Cavanaugh (7.4.x), replaced byPortalInstancePool.getWebIds()}static longinitCompany(com.liferay.portal.kernel.model.Company company) static longinitCompany(com.liferay.portal.kernel.model.Company company, boolean skipCheck) static booleanisAutoLoginIgnoreHost(String host) static booleanisAutoLoginIgnorePath(String path) static booleanisCompanyActive(long companyId) static booleanstatic booleanisCompanyInDeletionProcess(long companyId) static booleanstatic booleanstatic booleanstatic booleanstatic voidremoveCompany(long companyId) static com.liferay.petra.lang.SafeCloseablesetCompanyInDeletionProcessWithSafeCloseable(long companyId) static com.liferay.petra.lang.SafeCloseablesetCopyInProcessCompanyIdWithSafeCloseable(long companyId) static com.liferay.petra.lang.SafeCloseablesetInsertionInProcessCompanyIdWithSafeCloseable(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()