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 java.lang.Object implements FixedTenantResolverConfigurationConfigurationPropertiesimplementation ofFixedTenantResolverConfiguration.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEThe default enable value.static java.lang.StringPREFIXConfiguration Properties Prefix.
-
Constructor Summary
Constructors Constructor Description FixedTenantResolverConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetTenantId()Returns the fixed Tenant ID.booleanisEnabled()voidsetEnabled(boolean enabled)EnablesFixedTenantResolver.voidsetTenantId(java.lang.String tenantId)The fixed tenant ID.
-
-
-
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
-
setTenantId
public void setTenantId(java.lang.String tenantId)
The fixed tenant ID. Default value to ("DEFAULT").- Parameters:
tenantId- the fixed Tenant ID.
-
getTenantId
public java.lang.String 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
-
-