public class DefaultTenantLookupService extends Object implements TenantLookupService
Default implementation of the TenantLookupService interface.
| Constructor and Description |
|---|
DefaultTenantLookupService(AnyWorkObjectService readService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getTenantIdByName(String tenantName)
Returns the tenant id for the specified tenant name.
|
String |
getTenantNameById(String tenantId)
Returns the tenant name for the specified tenant ID.
|
public DefaultTenantLookupService(AnyWorkObjectService readService)
@Cacheable(value="edorasOne-tenantIdByName") public String getTenantIdByName(String tenantName)
TenantLookupServiceReturns the tenant id for the specified tenant name.
getTenantIdByName in interface TenantLookupServicetenantName - the name of the tenant to return its id@Cacheable(value="edorasOne-tenantNameById") public String getTenantNameById(String tenantId)
TenantLookupServiceReturns the tenant name for the specified tenant ID.
getTenantNameById in interface TenantLookupServicetenantId - the id of the tenant to return its nameCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.