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>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalSearchProvider(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) getProductMembershipSearchResults(String productMembershipRule, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Performs a search for the provided product membership rule.protected ExternalSearchPropertiesprotected ProviderUtilsprotected @NotNull SearchResponse<I>getSearchResponse(org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.util.MultiValueMap<String, String> searchParams) 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 Stringprotected com.broadleafcommerce.common.extension.TypeFactoryprotected org.springframework.web.reactive.function.client.WebClient
-
Field Details
-
MEMBERSHIP_FILTERS_RULE
- See Also:
-
-
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:SearchProviderPerforms a search for the provided request.- Specified by:
getSearchResultsin interfaceSearchProvider<I extends CatalogItem>- Parameters:
request- All of the relevant information to be used to retrieve search results.- Returns:
- The
SearchResponsewith results for the request.
-
getProductMembershipSearchResults
public SearchResponse<I> getProductMembershipSearchResults(String productMembershipRule, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SearchProviderPerforms a search for the provided product membership rule.- Specified by:
getProductMembershipSearchResultsin interfaceSearchProvider<I extends CatalogItem>- Parameters:
productMembershipRule- The rule to use for the search.pageable- The pageable to use for the search.contextInfo- The context info to use for the search.- Returns:
- The
SearchResponsewith results for the request.
-
getSearchResponse
@NotNull protected @NotNull SearchResponse<I> getSearchResponse(org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.util.MultiValueMap<String, String> searchParams) -
buildSearchParamsFromRequest
-
getServiceClient
-
getWebClient
protected org.springframework.web.reactive.function.client.WebClient getWebClient() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getProviderUtils
-
getProperties
-