Uses of Interface
com.sap.cloud.sdk.cloudplatform.tenant.Tenant
Package
Description
-
Uses of Tenant in com.sap.cloud.sdk.cloudplatform.cache
Modifier and TypeMethodDescriptionstatic CacheKey
Constructs aCacheKey
for the given tenant and principal identifier, independent of whether they arenull
or not.static SerializableCacheKey
Constructs aCacheKey
for the given tenant and principal identifier, independent of whether they arenull
or not. -
Uses of Tenant in com.sap.cloud.sdk.cloudplatform.resilience
Modifier and TypeMethodDescriptionstatic CacheFilter
CacheFilter.keyMatchesTenant
(Tenant tenant) Creates aCacheFilter
, which includes all cache entries associated withGenericCacheKey
s that are accessible with respect to the passedTenant
. -
Uses of Tenant in com.sap.cloud.sdk.cloudplatform.tenant
Modifier and TypeInterfaceDescriptioninterface
Represents a {@link Tenant) that can be accessed through a subdomain.Modifier and TypeClassDescriptionclass
Implementation ofTenant
which can be used on SAP Business Technology Platform Cloud Foundry.Modifier and TypeMethodDescriptionstatic Tenant
TenantAccessor.getCurrentTenant()
Returns the currentTenant
.Modifier and TypeMethodDescriptionTenantAccessor.getFallbackTenant()
Global fallbackTenant
.io.vavr.control.Try<Tenant>
DefaultTenantFacade.tryGetCurrentTenant()
io.vavr.control.Try<Tenant>
DwcTenantFacade.tryGetCurrentTenant()
static io.vavr.control.Try<Tenant>
TenantAccessor.tryGetCurrentTenant()
io.vavr.control.Try<Tenant>
TenantFacade.tryGetCurrentTenant()
Returns aTry
of the currentTenant
.Modifier and TypeMethodDescriptionstatic void
TenantAccessor.executeWithTenant
(Tenant tenant, Executable executable) Execute the givenExecutable
on behalf of a given tenant.static <T> T
TenantAccessor.executeWithTenant
(Tenant tenant, Callable<T> callable) Execute the givenCallable
on behalf of a given tenant.Modifier and TypeMethodDescriptionstatic void
TenantAccessor.executeWithFallbackTenant
(Supplier<Tenant> fallbackTenant, Executable executable) Execute the givenExecutable
, using the given tenant as fallback if there is no other tenant available.static <T> T
TenantAccessor.executeWithFallbackTenant
(Supplier<Tenant> fallbackTenant, Callable<T> callable) Execute the givenCallable
, using the given tenant as fallback if there is no other tenant available.static void
TenantAccessor.setFallbackTenant
(Supplier<Tenant> fallbackTenant) Global fallbackTenant
.ModifierConstructorDescriptionTenantThreadContextListener
(Tenant tenant) Constructor for providing aTenant
to be returned by this listener.