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 Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
Configuration Properties prefix.Fields inherited from interface io.micronaut.multitenancy.tenantresolver.SessionTenantResolverConfiguration
DEFAULT_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setAttribute
(String attribute) Session Attribute name.void
setEnabled
(boolean enabled) EnablesSessionTenantResolver
.
-
Field Details
-
PREFIX
Configuration Properties prefix.- See Also:
-
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLEThe default enable value.- See Also:
-
-
Constructor Details
-
SessionTenantResolverConfigurationProperties
public SessionTenantResolverConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) EnablesSessionTenantResolver
. The default value (false).- Parameters:
enabled
- True or false.
-
setAttribute
Session Attribute name. Default value ("tenantId")- Parameters:
attribute
- session attribute name
-
getAttribute
- Specified by:
getAttribute
in interfaceSessionTenantResolverConfiguration
- Returns:
- Session Attribute name.
-