Class ProductDetailsRequest
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ProductDetailsRequest
- All Implemented Interfaces:
CatalogEntityDetailsRequest,Serializable
public class ProductDetailsRequest
extends Object
implements Serializable, CatalogEntityDetailsRequest
DTO containing information pertaining to a request to be sent to the
CatalogProvider to
retrieve a product's details.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProductDetailsRequest(org.springframework.util.MultiValueMap<String, String> parameters, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, boolean skipPricing, boolean skipInventory, boolean hydrateProductAssets, 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()booleanWhether to hydrate the product's non-primary assets.booleanWhether to skip inventory for the products.booleanWhether to skip pricing for the products.voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetHydrateProductAssets(boolean hydrateProductAssets) Whether to hydrate the product's non-primary assets.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.voidsetSkipInventory(boolean skipInventory) Whether to skip inventory for the products.voidsetSkipPricing(boolean skipPricing) Whether to skip pricing for the products.toString()
-
Constructor Details
-
ProductDetailsRequest
public ProductDetailsRequest() -
ProductDetailsRequest
public ProductDetailsRequest(org.springframework.util.MultiValueMap<String, String> parameters, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, boolean skipPricing, boolean skipInventory, boolean hydrateProductAssets, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
Method Details
-
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
-
isSkipPricing
public boolean isSkipPricing()Whether to skip pricing for the products.Pricing may be skipped if the calling service prices the products separately.
-
isSkipInventory
public boolean isSkipInventory()Whether to skip inventory for the products.Inventory may be skipped and the returned products will not contain inventory availability details.
-
isHydrateProductAssets
public boolean isHydrateProductAssets()Whether to hydrate the product's non-primary assets.- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
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. -
setSkipPricing
public void setSkipPricing(boolean skipPricing) Whether to skip pricing for the products.Pricing may be skipped if the calling service prices the products separately.
-
setSkipInventory
public void setSkipInventory(boolean skipInventory) Whether to skip inventory for the products.Inventory may be skipped and the returned products will not contain inventory availability details.
-
setHydrateProductAssets
public void setHydrateProductAssets(boolean hydrateProductAssets) Whether to hydrate the product's non-primary assets.- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
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
-