Class PromotionalProductSummary
java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.PromotionalProductSummary
- All Implemented Interfaces:
Serializable
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
ConstructorDescriptionPromotionalProductSummary
(PromotionalProduct promotionalProduct, ProductDetails relatedProduct) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
getId()
The product to promote.Returns the ID of the underlyingrelated product
, which is the actual product being promoted.getType()
int
hashCode()
void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) void
void
setProductId
(String productId) void
setPromotionalProduct
(PromotionalProduct promotionalProduct) void
setPromotionMessage
(String promotionMessage) void
setRelatedProduct
(ProductDetails relatedProduct) The product to promote.void
void
toString()
-
Constructor Details
-
PromotionalProductSummary
public PromotionalProductSummary() -
PromotionalProductSummary
public PromotionalProductSummary(PromotionalProduct promotionalProduct, ProductDetails relatedProduct)
-
-
Method Details
-
getRelatedProductId
Returns the ID of the underlyingrelated product
, which is the actual product being promoted.- Returns:
- The ID of the underlying
related product
.
-
getPromotionalProduct
-
getRelatedProduct
The product to promote.- Returns:
- the promotional product
-
setPromotionalProduct
-
setRelatedProduct
The product to promote.- Parameters:
promotionalProduct
- the promotional product
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getId
-
getProductId
-
getType
-
getPromotionMessage
-
getSorted
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState() -
setId
-
setProductId
-
setType
-
setPromotionMessage
-
setSorted
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-