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
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
Configuration Properties Prefix. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the fixed Tenant ID.boolean
void
setEnabled
(boolean enabled) EnablesFixedTenantResolver
.void
setTenantId
(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:FixedTenantResolverConfiguration
Returns the fixed Tenant ID.- Specified by:
getTenantId
in interfaceFixedTenantResolverConfiguration
- Returns:
- A tenant ID
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) EnablesFixedTenantResolver
. Default value (false).- Parameters:
enabled
- true or false
-