Class PromotionalCategoryProductSummary
java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.PromotionalCategoryProductSummary
- All Implemented Interfaces:
Serializable
A structure containing the most used subset of promotional category product information that can
be used in commerce-facing product list pages or components (as opposed to a PIM UI).
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorDescriptionPromotionalCategoryProductSummary
(PromotionalCategoryProduct promotionalCategoryProduct, ProductSummary promotionalProduct) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
getId()
The product to promote.getType()
int
hashCode()
void
setCategory
(CategoryRef category) void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) void
void
setPromotionalCategoryProduct
(PromotionalCategoryProduct promotionalCategoryProduct) void
setPromotionalProduct
(ProductSummary promotionalProduct) The product to promote.void
setPromotionMessage
(String promotionMessage) void
toString()
-
Constructor Details
-
PromotionalCategoryProductSummary
public PromotionalCategoryProductSummary() -
PromotionalCategoryProductSummary
public PromotionalCategoryProductSummary(PromotionalCategoryProduct promotionalCategoryProduct, ProductSummary promotionalProduct)
-
-
Method Details
-
getType
- Returns:
- the type of relation between the category and the related product
-
getPromotionalCategoryProduct
-
getPromotionalProduct
The product to promote.- Returns:
- the promotional product
-
setPromotionalCategoryProduct
-
setPromotionalProduct
The product to promote.- Parameters:
promotionalProduct
- the promotional product
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getId
-
getCategory
-
getSorted
-
getPromotionMessage
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState() -
setId
-
setCategory
-
setSorted
-
setPromotionMessage
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-