Modifier and Type | Method and Description |
---|---|
static AccessRequester |
AccessRequester.of(javax.servlet.http.HttpServletRequest request,
Tenant tenant)
Creates a request based on the given, nullable request and tenant.
|
Constructor and Description |
---|
AccessRequester(javax.servlet.http.HttpServletRequest request,
Tenant tenant)
Creates an AccessRequester based on the given request and tenant.
|
Modifier and Type | Method and Description |
---|---|
static SerializableCacheKey |
SerializableCacheKey.of(Tenant tenant,
Principal principal)
Constructs a
CacheKey for the given tenant and principal identifier, independent of whether they are
null or not. |
static CacheKey |
CacheKey.of(Tenant tenant,
Principal principal)
Constructs a
CacheKey for the given tenant and principal identifier, independent of whether they are
null or not. |
Modifier and Type | Method and Description |
---|---|
Tenant |
ResilienceIsolationKey.getTenant() |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTenant |
class |
ScpCfTenant
Implementation of
Tenant for SAP Cloud Platform Cloud Foundry. |
class |
ScpNeoTenant
Implementation of
Tenant for SAP Cloud Platform Neo. |
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> |
ScpCfTenantFacade.tryGetAuthTokenTenant()
|
io.vavr.control.Try<Tenant> |
ScpCfTenantFacade.tryGetCurrentTenant()
Returns a
Try of the current Tenant . |
io.vavr.control.Try<Tenant> |
ScpNeoTenantFacade.tryGetCurrentTenant()
Returns a
Try of the current Tenant . |
static io.vavr.control.Try<Tenant> |
TenantAccessor.tryGetCurrentTenant()
|
io.vavr.control.Try<Tenant> |
TenantFacade.tryGetCurrentTenant()
Returns a
Try of the current Tenant . |
io.vavr.control.Try<Tenant> |
DefaultTenantFacade.tryGetCurrentTenant()
Returns a
Try of the current Tenant . |
io.vavr.control.Try<Tenant> |
ScpCfTenantFacade.tryGetXsuaaServiceTenant()
|
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. |
Modifier and Type | Method and Description |
---|---|
Tenant |
MockUtil.mockCurrentTenant() |
Tenant |
MockUtil.mockCurrentTenant(String tenantId) |
Tenant |
MockUtil.mockTenant(String tenantId) |
Copyright © 2020 SAP SE. All rights reserved.