Class FixedTenantResolverConfigurationProperties

java.lang.Object
io.micronaut.multitenancy.tenantresolver.FixedTenantResolverConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, FixedTenantResolverConfiguration

@ConfigurationProperties("micronaut.multitenancy.tenantresolver.fixed") public class FixedTenantResolverConfigurationProperties extends Object implements FixedTenantResolverConfiguration
ConfigurationProperties implementation of FixedTenantResolverConfiguration.
Since:
1.0.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • FixedTenantResolverConfigurationProperties

      public FixedTenantResolverConfigurationProperties()
  • Method Details

    • setTenantId

      public void setTenantId(String tenantId)
      The fixed tenant ID. Default value to ("DEFAULT").
      Parameters:
      tenantId - the fixed Tenant ID.
    • getTenantId

      public String getTenantId()
      Description copied from interface: FixedTenantResolverConfiguration
      Returns the fixed Tenant ID.
      Specified by:
      getTenantId in interface FixedTenantResolverConfiguration
      Returns:
      A tenant ID
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Enables FixedTenantResolver. Default value (false).
      Parameters:
      enabled - true or false