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