Package | Description |
---|---|
com.sap.cloud.sdk.cloudplatform.auditlog | |
com.sap.cloud.sdk.cloudplatform.tenant | |
com.sap.cloud.sdk.testutil |
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 | Class and Description |
---|---|
class |
AbstractTenant |
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 |
---|---|
Tenant |
TenantFacade.getCurrentTenant()
Returns the current
Tenant . |
static Tenant |
TenantAccessor.getCurrentTenant()
Returns the current
Tenant . |
Tenant |
AbstractTenantFacade.getCurrentTenant()
Returns the current
Tenant . |
protected abstract Tenant |
AbstractTenantFacade.newMockedTenant()
Instantiates a mocked
Tenant . |
protected Tenant |
ScpCfTenantFacade.newMockedTenant()
Instantiates a mocked
Tenant . |
protected Tenant |
ScpNeoTenantFacade.newMockedTenant()
Instantiates a mocked
Tenant . |
Modifier and Type | Method and Description |
---|---|
Optional<Tenant> |
TenantFacade.getCurrentTenantIfAvailable()
Returns the current
Tenant , if available. |
static Optional<Tenant> |
TenantAccessor.getCurrentTenantIfAvailable()
Returns the current
Tenant , if available. |
Optional<Tenant> |
AbstractTenantFacade.getCurrentTenantIfAvailable()
Returns the current
Tenant , if available. |
Optional<Tenant> |
AbstractTenantFacade.getMockedTenant()
Returns a mocked
Tenant , if the environment variable "USE_MOCKED_TENANT" is set to "true". |
protected Optional<Tenant> |
ScpCfTenantFacade.getMockedTenantAsFallback()
Returns a mocked
Tenant as fallback, if the environment variable "ALLOW_MOCKED_AUTH_HEADER" is set to
"true". |
Class<? extends Tenant> |
TenantFacade.getTenantClass()
Returns the platform-specific implementation class of
Tenant . |
Optional<Tenant> |
TenantFacade.resolveCurrentTenant()
Resolves the current
Tenant using the platform-specific lookup. |
Optional<Tenant> |
ScpCfTenantFacade.resolveCurrentTenant()
Resolves the current
Tenant using the platform-specific lookup. |
Optional<Tenant> |
ScpNeoTenantFacade.resolveCurrentTenant()
Resolves the current
Tenant using the platform-specific lookup. |
io.vavr.control.Try<Tenant> |
TenantFacade.tryGetCurrentTenant()
Returns a
Try for the current Tenant . |
static io.vavr.control.Try<Tenant> |
TenantAccessor.tryGetCurrentTenant()
Returns a
Try for the current Tenant . |
io.vavr.control.Try<Tenant> |
AbstractTenantFacade.tryGetCurrentTenant()
Returns a
Try for the current Tenant . |
Modifier and Type | Method and Description |
---|---|
Tenant |
MockUtil.mockCurrentTenant()
Mocks the current
Tenant with tenant identifier MockUtil.MOCKED_TENANT . |
Tenant |
MockUtil.mockCurrentTenant(String tenantId)
Mocks a
Tenant with the given identifier. |
Tenant |
MockUtil.mockTenant(String tenantId)
Mocks a
Tenant with the given identifier. |
Copyright © 2019 SAP SE. All rights reserved.