Class DefaultIndexerTenantService

java.lang.Object
com.broadleafcommerce.search.index.core.service.DefaultIndexerTenantService
All Implemented Interfaces:
IndexerTenantService

public class DefaultIndexerTenantService extends Object implements IndexerTenantService
  • Field Details

  • Constructor Details

    • DefaultIndexerTenantService

      public DefaultIndexerTenantService(org.springframework.web.reactive.function.client.WebClient webClient, String tenantServiceEndpoint, String readTenantsPath)
  • Method Details

    • readLocalesByTenantId

      @Deprecated public Set<String> readLocalesByTenantId(String tenantId)
      Deprecated.
      Description copied from interface: IndexerTenantService
      Returns a list of locales for the tenant with the given ID.
      Specified by:
      readLocalesByTenantId in interface IndexerTenantService
      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 interface IndexerTenantService
      Parameters:
      tenantId - The tenant ID to get locales for
      Returns:
      Locales for the tenant ID
    • clearCache

      @CacheEvict("localesCacheByTenantId") public void clearCache(String tenantId)
      Description copied from interface: IndexerTenantService
      Clear any cached locales for the tenant ID.
      Specified by:
      clearCache in interface IndexerTenantService
      Parameters:
      tenantId - The tenant ID to clear
    • getWebClient

      protected org.springframework.web.reactive.function.client.WebClient getWebClient()
    • getTenantServiceEndpoint

      protected String getTenantServiceEndpoint()
    • getReadTenantsPath

      protected String getReadTenantsPath()
    • getServiceClient

      public String getServiceClient()
      The service client to use when calling inventory services. Default is "indexerclient"
    • setServiceClient

      public void setServiceClient(String serviceClient)
      The service client to use when calling inventory services. Default is "indexerclient"