Class ExternalSearchTenantProvider
java.lang.Object
com.broadleafcommerce.search.core.service.provider.external.ExternalSearchTenantProvider
- All Implemented Interfaces:
SearchTenantProvider
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalSearchTenantProvider
(org.springframework.web.reactive.function.client.WebClient webClient, ExternalSearchTenantProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCache
(String tenantId) Clear any cached default locale for the tenant ID.protected ExternalSearchTenantProperties
protected String
protected org.springframework.web.reactive.function.client.WebClient
readDefaultLocaleByTenantId
(String tenantId) Returns the default locale for the tenant with the given ID.
-
Field Details
-
DEFAULT_LOCALE_CACHE_BY_TENANT_ID
- See Also:
-
-
Constructor Details
-
ExternalSearchTenantProvider
public ExternalSearchTenantProvider(org.springframework.web.reactive.function.client.WebClient webClient, ExternalSearchTenantProperties properties)
-
-
Method Details
-
readDefaultLocaleByTenantId
@Cacheable(cacheNames="defaultLocaleCacheByTenantId") public Locale readDefaultLocaleByTenantId(String tenantId) Description copied from interface:SearchTenantProvider
Returns the default locale for the tenant with the given ID.- Specified by:
readDefaultLocaleByTenantId
in interfaceSearchTenantProvider
- Parameters:
tenantId
- The tenant ID to get default locale for- Returns:
- Default locale for the tenant ID
-
clearCache
Description copied from interface:SearchTenantProvider
Clear any cached default locale for the tenant ID.- Specified by:
clearCache
in interfaceSearchTenantProvider
- Parameters:
tenantId
- The tenant ID to clear
-
getServiceClient
-
getWebClient
protected org.springframework.web.reactive.function.client.WebClient getWebClient() -
getProperties
-