Class FixedTenantResolver

java.lang.Object
io.stargate.sgv2.api.common.tenant.impl.FixedTenantResolver
All Implemented Interfaces:
TenantResolver

public class FixedTenantResolver extends Object implements TenantResolver
The TenantResolver that uses a fixed tenant ID supplied by the configuration.
  • Constructor Details

  • Method Details

    • resolve

      public Optional<String> resolve(io.vertx.ext.web.RoutingContext context, javax.ws.rs.core.SecurityContext securityContext)
      Returns a tenant identifier given a RoutingContext and a SecurityContext.
      Specified by:
      resolve in interface TenantResolver
      Parameters:
      context - the routing context
      securityContext - the security context
      Returns:
      The tenant identifier. If empty, indicates that the multi-tenancy is disabled.