Class ExternalSearchProvider<I extends CatalogItem>
java.lang.Object
com.broadleafcommerce.bulkoperations.service.provider.external.ExternalSearchProvider<I>
- All Implemented Interfaces:
SearchProvider<I>
public class ExternalSearchProvider<I extends CatalogItem>
extends Object
implements SearchProvider<I>
-
Constructor Summary
ConstructorDescriptionExternalSearchProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ProviderUtils providerUtils, ExternalSearchProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionbuildSearchParamsFromRequest
(com.broadleafcommerce.bulk.v2.domain.BulkOperationRequest request) protected ExternalSearchProperties
protected ProviderUtils
getSearchResults
(com.broadleafcommerce.bulk.v2.domain.BulkOperationRequest request, com.broadleafcommerce.bulk.v2.domain.BulkOperationResponse bulkOperationResponse, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Performs a search for the provided request.protected String
protected com.broadleafcommerce.common.extension.TypeFactory
protected org.springframework.web.reactive.function.client.WebClient
-
Constructor Details
-
ExternalSearchProvider
public ExternalSearchProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ProviderUtils providerUtils, ExternalSearchProperties properties)
-
-
Method Details
-
getSearchResults
public SearchResponse<I> getSearchResults(com.broadleafcommerce.bulk.v2.domain.BulkOperationRequest request, com.broadleafcommerce.bulk.v2.domain.BulkOperationResponse bulkOperationResponse, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SearchProvider
Performs a search for the provided request.- Specified by:
getSearchResults
in interfaceSearchProvider<I extends CatalogItem>
- Parameters:
request
- All of the relevant information to be used to retrieve search results.- Returns:
- The
SearchResponse
with results for the request.
-
buildSearchParamsFromRequest
-
getServiceClient
-
getWebClient
protected org.springframework.web.reactive.function.client.WebClient getWebClient() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getProviderUtils
-
getProperties
-