Class BrowseDetailsRequest
- All Implemented Interfaces:
CatalogEntityDetailsRequest,Serializable
CatalogProvider or
ContentProvider to retrieve a browse entity's details such as for a Product,
Category, ContentItem. This is used when the caller does not know the type of
entity to request but has some parameters like a URI to match against. The service will
dynamically determine the correct entity to respond with.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBrowseDetailsRequest(org.springframework.util.MultiValueMap<String, String> parameters, boolean hydrateCategoryProductsFromSearch, boolean hydrateCategoryProductsOntoContentItems, ContentContext contentContext, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, boolean skipPricing, boolean skipInventory, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAny contextual information needed to resolve targeted content.com.broadleafcommerce.data.tracking.core.context.ContextInfoThe 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.PriceInfoContextinthashCode()booleanIf the browse entity resolves to a category, this flag indicates that the category's products should be hydrated from Search Services rather than Catalog.booleanIf any content items reference categories, this flag indicates that the categories' products should be hydrated.booleanWhether to skip inventory for the products.booleanWhether to skip pricing for the products.voidsetContentContext(ContentContext contentContext) Any contextual information needed to resolve targeted content.voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) voidsetHydrateCategoryProductsFromSearch(boolean hydrateCategoryProductsFromSearch) If the browse entity resolves to a category, this flag indicates that the category's products should be hydrated from Search Services rather than Catalog.voidsetHydrateCategoryProductsOntoContentItems(boolean hydrateCategoryProductsOntoContentItems) If any content items reference categories, this flag indicates that the categories' products should be hydrated.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) voidsetSkipInventory(boolean skipInventory) Whether to skip inventory for the products.voidsetSkipPricing(boolean skipPricing) Whether to skip pricing for the products.toString()
-
Constructor Details
-
BrowseDetailsRequest
public BrowseDetailsRequest() -
BrowseDetailsRequest
public BrowseDetailsRequest(org.springframework.util.MultiValueMap<String, String> parameters, boolean hydrateCategoryProductsFromSearch, boolean hydrateCategoryProductsOntoContentItems, ContentContext contentContext, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, boolean skipPricing, boolean skipInventory, 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
-
isHydrateCategoryProductsFromSearch
public boolean isHydrateCategoryProductsFromSearch()If the browse entity resolves to a category, this flag indicates that the category's products should be hydrated from Search Services rather than Catalog.This is only used in Catalog Browse Service and not passed downstream as a parameter.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
isHydrateCategoryProductsOntoContentItems
public boolean isHydrateCategoryProductsOntoContentItems()If any content items reference categories, this flag indicates that the categories' products should be hydrated.This is only used in Catalog Browse Service and not passed downstream as a parameter, instead it will be translated in the appropriate pagination params or trigger relevant business logic.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getContentContext
Any contextual information needed to resolve targeted content.If present, this information is used during content zone resolution.
-
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()- Specified by:
getPriceInfoContextin interfaceCatalogEntityDetailsRequest
-
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.
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()- Specified by:
getContextInfoin interfaceCatalogEntityDetailsRequest
-
setParameters
The parameters included in the original request that don't need to be enumerated in this service but passed along to the provider. -
setHydrateCategoryProductsFromSearch
public void setHydrateCategoryProductsFromSearch(boolean hydrateCategoryProductsFromSearch) If the browse entity resolves to a category, this flag indicates that the category's products should be hydrated from Search Services rather than Catalog.This is only used in Catalog Browse Service and not passed downstream as a parameter.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setHydrateCategoryProductsOntoContentItems
public void setHydrateCategoryProductsOntoContentItems(boolean hydrateCategoryProductsOntoContentItems) If any content items reference categories, this flag indicates that the categories' products should be hydrated.This is only used in Catalog Browse Service and not passed downstream as a parameter, instead it will be translated in the appropriate pagination params or trigger relevant business logic.
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setContentContext
Any contextual information needed to resolve targeted content.If present, this information is used during content zone resolution.
-
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) -
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.
-
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-