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 TypeMethodDescriptionvoidaddAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanReturn 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 whichProductDetailsare requested.Theproduct urismatching the products for whichProductDetailsare requested.inthashCode()booleanWhether to hydrate category products ontocategoriesbelonging toItemChoiceProductOptionsif the entity is a product.booleanWhether to hydrate non-primary product assets onto theProductDetailsresponse if the entity is a product.booleanWhether to hydrate theCharacteristicsfor the main requested products' related products if the entity is a product.voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetHydrateCategoryChoiceProducts(boolean hydrateCategoryChoiceProducts) Whether to hydrate category products ontocategoriesbelonging toItemChoiceProductOptionsif the entity is a product.voidsetHydrateProductAssets(boolean hydrateProductAssets) Whether to hydrate non-primary product assets onto theProductDetailsresponse if the entity is a product.voidsetHydrateRelatedProductCharacteristics(boolean hydrateRelatedProductCharacteristics) Whether to hydrate theCharacteristicsfor the main requested products' related products if the entity is a product.voidsetProductIds(Set<String> productIds) TheProduct.getId()product IDs} matching the products for whichProductDetailsare requested.voidsetProductUris(Set<String> productUris) Theproduct urismatching the products for whichProductDetailsare 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 urismatching the products for whichProductDetailsare requested. IfproductIdsis non-null, then it is used instead of this field.- Returns:
- The
product urimatching the product for whichProductDetailsare requested.
-
getProductIds
TheProduct.getId()product IDs} matching the products for whichProductDetailsare requested. If this field is non-null, then it is used instead ofproductUris.- Returns:
- The
Product.getId()product ID} matching the product for whichProductDetailsare requested.
-
isHydrateCategoryChoiceProducts
public boolean isHydrateCategoryChoiceProducts()Whether to hydrate category products ontocategoriesbelonging toItemChoiceProductOptionsif 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 theProductDetailsresponse if the entity is a product.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
-
isHydrateRelatedProductCharacteristics
public boolean isHydrateRelatedProductCharacteristics()Whether to hydrate theCharacteristicsfor 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 urismatching the products for whichProductDetailsare requested. IfproductIdsis non-null, then it is used instead of this field.- Parameters:
uri- Theproduct urimatching the product for whichProductDetailsare requested.
-
setProductIds
TheProduct.getId()product IDs} matching the products for whichProductDetailsare requested. If this field is non-null, then it is used instead ofproductUris.- Parameters:
uri- TheProduct.getId()product ID} matching the product for whichProductDetailsare requested.
-
setHydrateCategoryChoiceProducts
public void setHydrateCategoryChoiceProducts(boolean hydrateCategoryChoiceProducts) Whether to hydrate category products ontocategoriesbelonging toItemChoiceProductOptionsif 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 theProductDetailsresponse 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 theCharacteristicsfor 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
-