Class MultitenantUtils
java.lang.Object
org.wso2.carbon.utils.multitenancy.MultitenantUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAxis2RepositoryPath(int tenantId) Get the Axis2 repository path of a particular tenantstatic StringgetDomainNameFromOpenId(String openId) Obtain the domain name from an OpenIDstatic StringgetTenantAwareUsername(String username) static StringgetTenantDomain(String username) static StringgetTenantDomain(javax.servlet.http.HttpServletRequest request) static StringgetTenantDomainFromRequestURL(String requestURI) static Stringstatic intgetTenantId(org.apache.axis2.context.ConfigurationContext configCtx) Get tenant ID from config contextstatic boolean
-
Constructor Details
-
MultitenantUtils
public MultitenantUtils()
-
-
Method Details
-
getTenantAwareUsername
-
getTenantDomain
-
getTenantDomain
-
getDomainNameFromOpenId
Obtain the domain name from an OpenID- Parameters:
openId- the OpenID.- Returns:
- domain name
-
getTenantDomainFromRequestURL
-
getTenantDomainFromUrl
-
getTenantId
public static int getTenantId(org.apache.axis2.context.ConfigurationContext configCtx) Get tenant ID from config context- Parameters:
configCtx- The config context- Returns:
- The tenant ID
-
getAxis2RepositoryPath
Get the Axis2 repository path of a particular tenant- Parameters:
tenantId- The tenant ID- Returns:
- The absolute path of the Axis2 repository used by the tenant
-
isEmailUserName
public static boolean isEmailUserName()
-