Class MultitenantUtils


  • public class MultitenantUtils
    extends Object
    • Constructor Detail

      • MultitenantUtils

        public MultitenantUtils()
    • Method Detail

      • 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()