@ConfigurationProperties(value="micronaut.multitenancy.tenantresolver.fixed") public class FixedTenantResolverConfigurationProperties extends Object implements FixedTenantResolverConfiguration
ConfigurationProperties
implementation of FixedTenantResolverConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLE
The default enable value.
|
static String |
PREFIX |
Constructor and Description |
---|
FixedTenantResolverConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getTenantId()
Returns the fixed Tenant ID.
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enables
FixedTenantResolver . |
void |
setTenantId(String tenantId)
The fixed tenant ID.
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLE
public FixedTenantResolverConfigurationProperties()
public void setTenantId(String tenantId)
tenantId
- the fixed Tenant ID.public String getTenantId()
FixedTenantResolverConfiguration
getTenantId
in interface FixedTenantResolverConfiguration
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
FixedTenantResolver
. Default value (false).enabled
- true or false