Class DefaultIndexerTenantService
java.lang.Object
com.broadleafcommerce.search.index.core.service.DefaultIndexerTenantService
- All Implemented Interfaces:
IndexerTenantService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Basic tenant representation used only to retrieve locales. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultIndexerTenantService
(org.springframework.web.reactive.function.client.WebClient webClient, String tenantServiceEndpoint, String readTenantsPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCache
(String tenantId) Clear any cached locales for the tenant ID.protected String
The service client to use when calling inventory services.protected String
protected org.springframework.web.reactive.function.client.WebClient
readLocalesByTenantId
(String tenantId) Deprecated.readLocalesByTenantId
(String tenantId, boolean indexLanguagesForTenantDefaultLocale) Returns a list of locales for the tenant with the given ID.void
setServiceClient
(String serviceClient) The service client to use when calling inventory services.
-
Field Details
-
LOCALES_CACHE_BY_TENANT_ID
- See Also:
-
CLIENT_REGISTRATION_ID
Deprecated.- See Also:
-
-
Constructor Details
-
DefaultIndexerTenantService
-
-
Method Details
-
readLocalesByTenantId
Deprecated.Description copied from interface:IndexerTenantService
Returns a list of locales for the tenant with the given ID.- Specified by:
readLocalesByTenantId
in interfaceIndexerTenantService
- Parameters:
tenantId
- The tenant ID to get locales for- Returns:
- Locales for the tenant ID
-
readLocalesByTenantId
@Cacheable(cacheNames="localesCacheByTenantId", sync=true) public Set<String> readLocalesByTenantId(String tenantId, boolean indexLanguagesForTenantDefaultLocale) Description copied from interface:IndexerTenantService
Returns a list of locales for the tenant with the given ID.- Specified by:
readLocalesByTenantId
in interfaceIndexerTenantService
- Parameters:
tenantId
- The tenant ID to get locales for- Returns:
- Locales for the tenant ID
-
clearCache
Description copied from interface:IndexerTenantService
Clear any cached locales for the tenant ID.- Specified by:
clearCache
in interfaceIndexerTenantService
- Parameters:
tenantId
- The tenant ID to clear
-
getWebClient
protected org.springframework.web.reactive.function.client.WebClient getWebClient() -
getTenantServiceEndpoint
-
getReadTenantsPath
-
getServiceClient
The service client to use when calling inventory services. Default is "indexerclient" -
setServiceClient
The service client to use when calling inventory services. Default is "indexerclient"
-
getServiceClient()