Class PromotionalProductSummary

java.lang.Object
com.broadleafcommerce.catalog.domain.product.commerce.PromotionalProductSummary
All Implemented Interfaces:
Serializable

public class PromotionalProductSummary extends Object implements Serializable
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • PromotionalProductSummary

      public PromotionalProductSummary()
    • PromotionalProductSummary

      public PromotionalProductSummary(PromotionalProduct promotionalProduct, ProductDetails relatedProduct)
  • Method Details

    • getRelatedProductId

      public String getRelatedProductId()
      Returns the ID of the underlying related product, which is the actual product being promoted.
      Returns:
      The ID of the underlying related product.
    • getPromotionalProduct

      public PromotionalProduct getPromotionalProduct()
    • getRelatedProduct

      public ProductDetails getRelatedProduct()
      The product to promote.
      Returns:
      the promotional product
    • setPromotionalProduct

      public void setPromotionalProduct(PromotionalProduct promotionalProduct)
    • setRelatedProduct

      public void setRelatedProduct(ProductDetails relatedProduct)
      The product to promote.
      Parameters:
      promotionalProduct - the promotional product
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public String getId()
    • getProductId

      public String getProductId()
    • getType

      public String getType()
    • getPromotionMessage

      public String getPromotionMessage()
    • getSorted

      public Boolean getSorted()
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
    • setId

      public void setId(String id)
    • setProductId

      public void setProductId(String productId)
    • setType

      public void setType(String type)
    • setPromotionMessage

      public void setPromotionMessage(String promotionMessage)
    • setSorted

      public void setSorted(Boolean sorted)
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)