public class ScpNeoTenantFacade extends Object implements TenantFacade
Constructor and Description |
---|
ScpNeoTenantFacade() |
Modifier and Type | Method and Description |
---|---|
Tenant |
getCurrentTenant()
Returns the current
Tenant . |
ScpNeoTenant |
lookupCurrentTenant()
Performs a JNDI lookup to retrieve the current tenant.
|
public ScpNeoTenant lookupCurrentTenant() throws TenantAccessException
TenantAccessException
- If there is an issue while performing the lookup.public Tenant getCurrentTenant() throws TenantNotAvailableException, TenantAccessException
Tenant
.getCurrentTenant
in interface TenantFacade
TenantNotAvailableException
- If there is currently no Tenant
available. This typically occurs when trying to access the
tenant within code that is running outside any tenant context, e.g., within a background task.TenantAccessException
- If there is an issue while accessing the Tenant
.Copyright © 2018 SAP SE. All rights reserved.