Class FixedTenantResolver
java.lang.Object
io.stargate.sgv2.api.common.tenant.impl.FixedTenantResolver
- All Implemented Interfaces:
TenantResolver
The
TenantResolver that uses a fixed tenant ID supplied by the configuration.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
-
Constructor Details
-
FixedTenantResolver
public FixedTenantResolver(MultiTenancyConfig.TenantResolverConfig.FixedTenantResolverConfig config)
-
-
Method Details
-
resolve
public Optional<String> resolve(io.vertx.ext.web.RoutingContext context, javax.ws.rs.core.SecurityContext securityContext) Returns a tenant identifier given aRoutingContextand aSecurityContext.- Specified by:
resolvein interfaceTenantResolver- Parameters:
context- the routing contextsecurityContext- the security context- Returns:
- The tenant identifier. If empty, indicates that the multi-tenancy is disabled.
-