public class DefaultTenantsFacade extends Object implements TenantsFacade
TenantsFacade. Delegates partially to underlying TenantService and
MasterTenant.| Constructor and Description |
|---|
DefaultTenantsFacade() |
| Modifier and Type | Method and Description |
|---|---|
List<TenantData> |
getAllSlaveTenants()
Returns a list of
TenantDatas containing the most important information about slave tenants. |
String |
getCurrentTenantID()
returns the current tenantID
|
Map<String,ConfiguredExtensionData> |
getExtensionsForMasterTenant()
Gets the Map of all extension names for master tenant, where key is the name of extension and value is data object
which determines whether particular extension is configured for master tenant or not , whether
extension has a web module and what is the given context name for current tenant (if applicable).
|
Map<String,ConfiguredExtensionData> |
getExtensionsForSlaveTenant(String slaveTenantId)
Gets the Map of all extension names for slave tenant, where key is the name of extension and value is data object
which determines whether particular extension is configured for
slaveTenantId or not , whether
extension has a web module and what is the given context name for current tenant (if applicable). |
TenantData |
getMasterTenant()
Gets the master
TenantData. |
TenantData |
getSlaveTenant(String slaveTenantId)
Gets the slave
TenantData for given slaveTenantId. |
boolean |
isCurrentTenantMaster()
Checks if the current tenant is master tenant.
|
public List<TenantData> getAllSlaveTenants()
TenantsFacadeTenantDatas containing the most important information about slave tenants. If master
tenant is not the currently used tenant - an empty list will always be returned.getAllSlaveTenants in interface TenantsFacadepublic String getCurrentTenantID()
TenantsFacadegetCurrentTenantID in interface TenantsFacadepublic Map<String,ConfiguredExtensionData> getExtensionsForSlaveTenant(String slaveTenantId)
TenantsFacadeslaveTenantId or not , whether
extension has a web module and what is the given context name for current tenant (if applicable).getExtensionsForSlaveTenant in interface TenantsFacadeslaveTenantId - the slave tenant idpublic Map<String,ConfiguredExtensionData> getExtensionsForMasterTenant()
TenantsFacadegetExtensionsForMasterTenant in interface TenantsFacadepublic TenantData getMasterTenant()
TenantsFacadeTenantData.getMasterTenant in interface TenantsFacadepublic TenantData getSlaveTenant(String slaveTenantId)
TenantsFacadeTenantData for given slaveTenantId.getSlaveTenant in interface TenantsFacadeslaveTenantId - the slave tenant idpublic boolean isCurrentTenantMaster()
TenantsFacadeisCurrentTenantMaster in interface TenantsFacadeCopyright © 2017 SAP SE. All Rights Reserved.