public class MultitenantUtils extends Object
Constructor and Description |
---|
MultitenantUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getAxis2RepositoryPath(int tenantId)
Get the Axis2 repository path of a particular tenant
|
static String |
getDomainNameFromOpenId(String openId)
Obtain the domain name from an OpenID
|
static String |
getTenantAwareUsername(String username) |
static String |
getTenantDomain(javax.servlet.http.HttpServletRequest request) |
static String |
getTenantDomain(String username) |
static String |
getTenantDomainFromRequestURL(String requestURI) |
static String |
getTenantDomainFromUrl(String url) |
static int |
getTenantId(org.apache.axis2.context.ConfigurationContext configCtx)
Get tenant ID from config context
|
static boolean |
isEmailUserName() |
public static String getTenantDomain(javax.servlet.http.HttpServletRequest request)
public static String getDomainNameFromOpenId(String openId)
openId
- the OpenID.public static int getTenantId(org.apache.axis2.context.ConfigurationContext configCtx)
configCtx
- The config contextpublic static String getAxis2RepositoryPath(int tenantId)
tenantId
- The tenant IDpublic static boolean isEmailUserName()
Copyright © 2016 WSO2 Inc. All rights reserved.