Class TenantInfo


  • public class TenantInfo
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TENANT_WEBROOT_CONFIG_REGEXP_PATTERN
      RegExp pattern to lookup tenant web root mapping config paramerers.
    • Constructor Summary

      Constructors 
      Constructor Description
      TenantInfo​(java.lang.String tenantId, java.util.Map<java.lang.String,​java.lang.String> tenantProperties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getExtensionForWebroot​(java.lang.String webroot)  
      java.lang.String getTenantId()  
      java.util.Properties getTenantProperties()  
      java.lang.String getWebMapping​(java.lang.String extName)
      Retrieves the web mapping for the extension starting with slash("/").
      boolean isWebrootOwner​(java.lang.String webroot)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TENANT_WEBROOT_CONFIG_REGEXP_PATTERN

        public static final java.lang.String TENANT_WEBROOT_CONFIG_REGEXP_PATTERN
        RegExp pattern to lookup tenant web root mapping config paramerers.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TenantInfo

        public TenantInfo​(java.lang.String tenantId,
                          java.util.Map<java.lang.String,​java.lang.String> tenantProperties)
    • Method Detail

      • getTenantId

        public java.lang.String getTenantId()
      • getTenantProperties

        public java.util.Properties getTenantProperties()
      • getWebMapping

        public java.lang.String getWebMapping​(java.lang.String extName)
        Retrieves the web mapping for the extension starting with slash("/"). For example, the tenant_junit.properties has the following setting:
         hmc.webroot=/hmc_junit
         hac.webroot=hac_junit
         

        so the web mapping for hmc is /hmc_junit, and for hac is /hac_junit.

        Parameters:
        extName - name of the extension
        Returns:
        found web mapping starting with slash("/"), or null if no mapping can be found
      • getExtensionForWebroot

        public java.lang.String getExtensionForWebroot​(java.lang.String webroot)
      • isWebrootOwner

        public boolean isWebrootOwner​(java.lang.String webroot)