Class SessionTenantResolverConfigurationProperties

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

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

  • Constructor Details

    • SessionTenantResolverConfigurationProperties

      public SessionTenantResolverConfigurationProperties()
  • Method Details

    • isEnabled

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

      public void setEnabled(boolean enabled)
      Enables SessionTenantResolver. The default value (false).
      Parameters:
      enabled - True or false.
    • setAttribute

      public void setAttribute(String attribute)
      Session Attribute name. Default value ("tenantId")
      Parameters:
      attribute - session attribute name
    • getAttribute

      public String getAttribute()
      Specified by:
      getAttribute in interface SessionTenantResolverConfiguration
      Returns:
      Session Attribute name.