Class ProductDetailsRequest
java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.ProductDetailsRequest
- All Implemented Interfaces:
Serializable
A structure representing a request for a commerce-facing product details page including
identifying information for the product for which to get details and interesting context
information.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected boolean
boolean
Return any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.TheProduct.getId()
product IDs} matching the products for whichProductDetails
are requested.Theproduct uris
matching the products for whichProductDetails
are requested.int
hashCode()
boolean
Whether to hydrate category products ontocategories
belonging toItemChoice
ProductOptions
if the entity is a product.boolean
Whether to hydrate non-primary product assets onto theProductDetails
response if the entity is a product.boolean
Whether to hydrate theCharacteristics
for the main requested products' related products if the entity is a product.void
setAttributes
(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.void
setHydrateCategoryChoiceProducts
(boolean hydrateCategoryChoiceProducts) Whether to hydrate category products ontocategories
belonging toItemChoice
ProductOptions
if the entity is a product.void
setHydrateProductAssets
(boolean hydrateProductAssets) Whether to hydrate non-primary product assets onto theProductDetails
response if the entity is a product.void
setHydrateRelatedProductCharacteristics
(boolean hydrateRelatedProductCharacteristics) Whether to hydrate theCharacteristics
for the main requested products' related products if the entity is a product.void
setProductIds
(Set<String> productIds) TheProduct.getId()
product IDs} matching the products for whichProductDetails
are requested.void
setProductUris
(Set<String> productUris) Theproduct uris
matching the products for whichProductDetails
are requested.toString()
-
Constructor Details
-
ProductDetailsRequest
-
ProductDetailsRequest
public ProductDetailsRequest()
-
-
Method Details
-
addAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name
- Name of the additional attributevalue
- Value of the additional attribute
-
getAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getProductUris
Theproduct uris
matching the products for whichProductDetails
are requested. IfproductIds
is non-null, then it is used instead of this field.- Returns:
- The
product uri
matching the product for whichProductDetails
are requested.
-
getProductIds
TheProduct.getId()
product IDs} matching the products for whichProductDetails
are requested. If this field is non-null, then it is used instead ofproductUris
.- Returns:
- The
Product.getId()
product ID} matching the product for whichProductDetails
are requested.
-
isHydrateCategoryChoiceProducts
public boolean isHydrateCategoryChoiceProducts()Whether to hydrate category products ontocategories
belonging toItemChoice
ProductOptions
if the entity is a product.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
-
isHydrateProductAssets
public boolean isHydrateProductAssets()Whether to hydrate non-primary product assets onto theProductDetails
response if the entity is a product.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
-
isHydrateRelatedProductCharacteristics
public boolean isHydrateRelatedProductCharacteristics()Whether to hydrate theCharacteristics
for the main requested products' related products if the entity is a product. The main requested products' characteristics are always hydrated.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setProductUris
Theproduct uris
matching the products for whichProductDetails
are requested. IfproductIds
is non-null, then it is used instead of this field.- Parameters:
uri
- Theproduct uri
matching the product for whichProductDetails
are requested.
-
setProductIds
TheProduct.getId()
product IDs} matching the products for whichProductDetails
are requested. If this field is non-null, then it is used instead ofproductUris
.- Parameters:
uri
- TheProduct.getId()
product ID} matching the product for whichProductDetails
are requested.
-
setHydrateCategoryChoiceProducts
public void setHydrateCategoryChoiceProducts(boolean hydrateCategoryChoiceProducts) Whether to hydrate category products ontocategories
belonging toItemChoice
ProductOptions
if the entity is a product.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
-
setHydrateProductAssets
public void setHydrateProductAssets(boolean hydrateProductAssets) Whether to hydrate non-primary product assets onto theProductDetails
response if the entity is a product.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
-
setHydrateRelatedProductCharacteristics
public void setHydrateRelatedProductCharacteristics(boolean hydrateRelatedProductCharacteristics) Whether to hydrate theCharacteristics
for the main requested products' related products if the entity is a product. The main requested products' characteristics are always hydrated.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-