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)
TenantLookupService
Returns the tenant id for the specified tenant name.
getTenantIdByName
in interface TenantLookupService
tenantName
- the name of the tenant to return its id@Cacheable(value="edorasOne-tenantNameById") public String getTenantNameById(String tenantId)
TenantLookupService
Returns the tenant name for the specified tenant ID.
getTenantNameById
in interface TenantLookupService
tenantId
- the id of the tenant to return its nameCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.