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()voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.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.
-
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.
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-