Class TenantInfo

java.lang.Object
de.hybris.bootstrap.config.TenantInfo

public class TenantInfo extends Object
  • Field Details

    • TENANT_WEBROOT_CONFIG_REGEXP_PATTERN

      public static final String TENANT_WEBROOT_CONFIG_REGEXP_PATTERN
      RegExp pattern to lookup tenant web root mapping config paramerers.
      See Also:
  • Constructor Details

  • Method Details

    • getTenantId

      public String getTenantId()
    • getTenantProperties

      public Properties getTenantProperties()
    • getWebMapping

      public String getWebMapping(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 String getExtensionForWebroot(String webroot)
    • isWebrootOwner

      public boolean isWebrootOwner(String webroot)