Class PromotionalCategoryProduct
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.PromotionalCategoryProduct
- All Implemented Interfaces:
Priceable,Serializable
A structure containing all of the info necessary for a category's related promotional products
shown on a commerce-facing app (as opposed to a PIM UI).
- Author:
- Marie Standeven (marieStandeven)
- 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.com.broadleafcommerce.pricing.client.domain.PriceInfoRetrieves thePriceInfoon the entity.The product to promote.inthashCode()voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo) Sets thePriceInfoon the entity.voidsetPromotionalProduct(Product promotionalProduct) The product to promote.toString()
-
Constructor Details
-
PromotionalCategoryProduct
public PromotionalCategoryProduct()
-
-
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.
-
getPriceInfo
public com.broadleafcommerce.pricing.client.domain.PriceInfo getPriceInfo()Description copied from interface:PriceableRetrieves thePriceInfoon the entity.- Specified by:
getPriceInfoin interfacePriceable- Returns:
- The
PriceInfoon the entity.
-
setPriceInfo
public void setPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo) Description copied from interface:PriceableSets thePriceInfoon the entity.- Specified by:
setPriceInfoin interfacePriceable- Parameters:
priceInfo- ThePriceInfoto set.
-
getPromotionalProduct
The product to promote.- Returns:
- the promotional product
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setPromotionalProduct
The product to promote.- Parameters:
promotionalProduct- the promotional product
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-