org.wso2.carbon.utils.multitenancy
Class MultitenantUtils
java.lang.Object
org.wso2.carbon.utils.multitenancy.MultitenantUtils
public class MultitenantUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultitenantUtils
public MultitenantUtils()
getTenantAwareUsername
public static String getTenantAwareUsername(String username)
getTenantDomain
public static String getTenantDomain(javax.servlet.http.HttpServletRequest request)
getTenantDomain
public static String getTenantDomain(String username)
getDomainNameFromOpenId
public static String getDomainNameFromOpenId(String openId)
- Obtain the domain name from an OpenID
- Parameters:
openId - the OpenID.
- Returns:
- domain name
getTenantDomainFromRequestURL
public static String getTenantDomainFromRequestURL(String requestURI)
getTenantDomainFromUrl
public static String getTenantDomainFromUrl(String url)
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
public static String getAxis2RepositoryPath(int tenantId)
- 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()
Copyright © 2014 WSO2 Inc. All rights reserved.