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 java.lang.Object implements SessionTenantResolverConfigurationConfigurationPropertiesimplementation ofSessionTenantResolverConfiguration.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEThe default enable value.static java.lang.StringPREFIXConfiguration Properties prefix.-
Fields inherited from interface io.micronaut.multitenancy.tenantresolver.SessionTenantResolverConfiguration
DEFAULT_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description SessionTenantResolverConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttribute()booleanisEnabled()voidsetAttribute(java.lang.String attribute)Session Attribute name.voidsetEnabled(boolean enabled)EnablesSessionTenantResolver.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
Configuration Properties prefix.- See Also:
- Constant Field Values
-
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLE
The default enable value.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled)
EnablesSessionTenantResolver. The default value (false).- Parameters:
enabled- True or false.
-
setAttribute
public void setAttribute(java.lang.String attribute)
Session Attribute name. Default value ("tenantId")- Parameters:
attribute- session attribute name
-
getAttribute
public java.lang.String getAttribute()
- Specified by:
getAttributein interfaceSessionTenantResolverConfiguration- Returns:
- Session Attribute name.
-
-