Class CatalogSearchRequest
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.CatalogSearchRequest
- All Implemented Interfaces:
CatalogEntityDetailsRequest,Serializable
public class CatalogSearchRequest
extends Object
implements Serializable, CatalogEntityDetailsRequest
DTO containing information pertaining to a request to be sent to the
CatalogSearchProvider to retrieve search results.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCatalogSearchRequest(org.springframework.util.MultiValueMap<String, String> parameters, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.com.broadleafcommerce.pricing.client.domain.context.PriceContextThePriceContextfrom the original request containing general pricing info.com.broadleafcommerce.pricing.client.domain.context.PriceInfoContextThePriceInfoContextfrom the original request containing info specific for gettingPriceInfossuch as prefetchedPriceLists.inthashCode()voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetParameters(org.springframework.util.MultiValueMap<String, String> parameters) The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.voidsetPriceContext(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext) ThePriceContextfrom the original request containing general pricing info.voidsetPriceInfoContext(com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext) ThePriceInfoContextfrom the original request containing info specific for gettingPriceInfossuch as prefetchedPriceLists.booleantoString()
-
Field Details
-
HYDRATE_FULLY_PARAM
- See Also:
-
ASSET_FILTERS_PARAM
- See Also:
-
TAG_FILTERS_PARAM
- See Also:
-
-
Constructor Details
-
CatalogSearchRequest
public CatalogSearchRequest() -
CatalogSearchRequest
public CatalogSearchRequest(org.springframework.util.MultiValueMap<String, String> parameters, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
Method Details
-
shouldHydrateFully
public boolean shouldHydrateFully()- Returns:
- Whether products retrieved from Search should have their full product details hydrated.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getAssetFilters
- Returns:
- RSQL filters to use when hydrating product assets.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getTagFilters
- Returns:
- RSQL filters to use when hydrating product tags.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getParameters
The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider.- Specified by:
getParametersin interfaceCatalogEntityDetailsRequest- Returns:
- The parameters included in the original request
-
getPriceContext
public com.broadleafcommerce.pricing.client.domain.context.PriceContext getPriceContext()ThePriceContextfrom the original request containing general pricing info.- Specified by:
getPriceContextin interfaceCatalogEntityDetailsRequest- Returns:
PriceContextfrom the original request
-
getPriceInfoContext
public com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext getPriceInfoContext()ThePriceInfoContextfrom the original request containing info specific for gettingPriceInfossuch as prefetchedPriceLists.- Specified by:
getPriceInfoContextin interfaceCatalogEntityDetailsRequest- Returns:
- The
PriceInfoContextfrom the original request
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Specified by:
getContextInfoin interfaceCatalogEntityDetailsRequest- Returns:
- The
ContextInfoderived from the original request
-
setParameters
The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider. -
setPriceContext
public void setPriceContext(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext) ThePriceContextfrom the original request containing general pricing info. -
setPriceInfoContext
public void setPriceInfoContext(com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext) ThePriceInfoContextfrom the original request containing info specific for gettingPriceInfossuch as prefetchedPriceLists. -
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-