public class PortalInstances
extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addCompanyId(long companyId) |
static long |
getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest) |
static long |
getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest,
boolean strict) |
static long[] |
getCompanyIds() |
static long[] |
getCompanyIdsBySQL() |
static long |
getDefaultCompanyId() |
static long |
getDefaultCompanyIdBySQL() |
static String[] |
getWebIds() |
static long |
initCompany(javax.servlet.ServletContext servletContext,
String webId) |
static long |
initCompany(javax.servlet.ServletContext servletContext,
String webId,
boolean skipCheck) |
static boolean |
isAutoLoginIgnoreHost(String host) |
static boolean |
isAutoLoginIgnorePath(String path) |
static boolean |
isCompanyActive(long companyId) |
static boolean |
isVirtualHostsIgnoreHost(String host) |
static boolean |
isVirtualHostsIgnorePath(String path) |
static void |
reload(javax.servlet.ServletContext servletContext) |
static void |
removeCompany(long companyId) |
public static void addCompanyId(long companyId)
public static long getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest)
public static long getCompanyId(javax.servlet.http.HttpServletRequest httpServletRequest, boolean strict) throws com.liferay.portal.kernel.exception.NoSuchVirtualHostException
com.liferay.portal.kernel.exception.NoSuchVirtualHostException
public static long[] getCompanyIds()
public static long[] getCompanyIdsBySQL() throws SQLException
SQLException
public static long getDefaultCompanyId()
public static long getDefaultCompanyIdBySQL() throws SQLException
SQLException
public static String[] getWebIds()
public static long initCompany(javax.servlet.ServletContext servletContext, String webId)
public static long initCompany(javax.servlet.ServletContext servletContext, String webId, boolean skipCheck)
public static boolean isAutoLoginIgnoreHost(String host)
public static boolean isAutoLoginIgnorePath(String path)
public static boolean isCompanyActive(long companyId)
public static boolean isVirtualHostsIgnoreHost(String host)
public static boolean isVirtualHostsIgnorePath(String path)
public static void reload(javax.servlet.ServletContext servletContext)
public static void removeCompany(long companyId)