| Package | Description |
|---|---|
| com.sap.cloud.sdk.cloudplatform.tenant |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TenantWithSubdomain
Represents a {@link Tenant) that can be accessed through a subdomain.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTenant |
| Modifier and Type | Method and Description |
|---|---|
static Tenant |
TenantAccessor.getCurrentTenant()
Returns the current
Tenant. |
| Modifier and Type | Method and Description |
|---|---|
static Supplier<Tenant> |
TenantAccessor.getFallbackTenant()
Global fallback
Tenant. |
io.vavr.control.Try<Tenant> |
DefaultTenantFacade.tryGetCurrentTenant() |
static io.vavr.control.Try<Tenant> |
TenantAccessor.tryGetCurrentTenant()
|
io.vavr.control.Try<Tenant> |
TenantFacade.tryGetCurrentTenant()
Returns a
Try of the current Tenant. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
TenantAccessor.executeWithTenant(Tenant tenant,
Callable<T> callable)
Execute the given
Callable on behalf of a given tenant. |
static void |
TenantAccessor.executeWithTenant(Tenant tenant,
Executable executable)
Execute the given
Executable on behalf of a given tenant. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
TenantAccessor.executeWithFallbackTenant(Supplier<Tenant> fallbackTenant,
Callable<T> callable)
Execute the given
Callable, using the given tenant as fallback if there is no other tenant available. |
static void |
TenantAccessor.executeWithFallbackTenant(Supplier<Tenant> fallbackTenant,
Executable executable)
Execute the given
Executable, using the given tenant as fallback if there is no other tenant available. |
static void |
TenantAccessor.setFallbackTenant(Supplier<Tenant> fallbackTenant)
Global fallback
Tenant. |
| Constructor and Description |
|---|
TenantThreadContextListener(Tenant tenant)
Constructor for providing a
Tenant to be returned by this listener. |
Copyright © 2022 SAP SE. All rights reserved.