Class DefaultIndexerTenantService

    • Constructor Detail

      • DefaultIndexerTenantService

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

      • readLocalesByTenantId

        @Cacheable(cacheNames="localesCacheByTenantId",
                   sync=true)
        public Set<String> readLocalesByTenantId​(String tenantId)
        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"