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 Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe default enable value.static final StringConfiguration Properties Prefix. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturns the fixed Tenant ID.booleanvoidsetEnabled(boolean enabled) EnablesFixedTenantResolver.voidsetTenantId(String tenantId) The fixed tenant ID. 
- 
Field Details
- 
PREFIX
Configuration Properties Prefix.- See Also:
 
 - 
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLEThe default enable value.- See Also:
 
 
 - 
 - 
Constructor Details
- 
FixedTenantResolverConfigurationProperties
public FixedTenantResolverConfigurationProperties() 
 - 
 - 
Method Details
- 
setTenantId
The fixed tenant ID. Default value to ("DEFAULT").- Parameters:
 tenantId- the fixed Tenant ID.
 - 
getTenantId
Description copied from interface:FixedTenantResolverConfigurationReturns the fixed Tenant ID.- Specified by:
 getTenantIdin interfaceFixedTenantResolverConfiguration- Returns:
 - A tenant ID
 
 - 
isEnabled
public boolean isEnabled()- Specified by:
 isEnabledin interfaceio.micronaut.core.util.Toggleable
 - 
setEnabled
public void setEnabled(boolean enabled) EnablesFixedTenantResolver. Default value (false).- Parameters:
 enabled- true or false
 
 -